Path: blob/master/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
26308 views
# SPDX-License-Identifier: GPL-2.01# Copyright (C) 2008-2011 Freescale Semiconductor Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Freescale SEC 489maintainers:10- '"Horia Geantă" <[email protected]>'11- Pankaj Gupta <pankaj.gupta@nxp.com>12- Gaurav Jain <gaurav.jain@nxp.com>1314description: |15NOTE: the SEC 4 is also known as Freescale's Cryptographic Accelerator16Accelerator and Assurance Module (CAAM).1718SEC 4 h/w can process requests from 2 types of sources.191. DPAA Queue Interface (HW interface between Queue Manager & SEC 4).202. Job Rings (HW interface between cores & SEC 4 registers).2122High Speed Data Path Configuration:2324HW interface between QM & SEC 4 and also BM & SEC 4, on DPAA-enabled parts25such as the P4080. The number of simultaneous dequeues the QI can make is26equal to the number of Descriptor Controller (DECO) engines in a particular27SEC version. E.g., the SEC 4.0 in the P4080 has 5 DECOs and can thus28dequeue from 5 subportals simultaneously.2930Job Ring Data Path Configuration:3132Each JR is located on a separate 4k page, they may (or may not) be made visible33in the memory partition devoted to a particular core. The P4080 has 4 JRs, so34up to 4 JRs can be configured; and all 4 JRs process requests in parallel.3536properties:37compatible:38oneOf:39- items:40- enum:41- fsl,sec-v5.442- fsl,sec-v6.043- const: fsl,sec-v5.044- const: fsl,sec-v4.045- items:46- enum:47- fsl,imx6ul-caam48- fsl,imx8qm-caam49- fsl,imx8qxp-caam50- fsl,sec-v5.051- const: fsl,sec-v4.052- const: fsl,sec-v4.05354reg:55maxItems: 15657ranges:58maxItems: 15960'#address-cells':61enum: [1, 2]6263'#size-cells':64enum: [1, 2]6566clocks:67minItems: 168maxItems: 46970clock-names:71minItems: 172maxItems: 473items:74enum: [mem, aclk, ipg, emi_slow]7576dma-coherent: true7778interrupts:79maxItems: 18081power-domains:82maxItems: 18384fsl,sec-era:85description: Defines the 'ERA' of the SEC device.86$ref: /schemas/types.yaml#/definitions/uint328788patternProperties:89'^jr@[0-9a-f]+$':90type: object91additionalProperties: false92description:93Job Ring (JR) Node. Defines data processing interface to SEC 4 across the94peripheral bus for purposes of processing cryptographic descriptors. The95specified address range can be made visible to one (or more) cores. The96interrupt defined for this node is controlled within the address range of97this node.9899properties:100compatible:101oneOf:102- items:103- const: fsl,sec-v6.0-job-ring104- const: fsl,sec-v5.2-job-ring105- const: fsl,sec-v5.0-job-ring106- const: fsl,sec-v4.4-job-ring107- const: fsl,sec-v4.0-job-ring108- items:109- const: fsl,sec-v5.4-job-ring110- const: fsl,sec-v5.0-job-ring111- const: fsl,sec-v4.0-job-ring112- items:113- enum:114- fsl,imx8qm-job-ring115- fsl,imx8qxp-job-ring116- fsl,sec-v5.0-job-ring117- const: fsl,sec-v4.0-job-ring118- const: fsl,sec-v4.0-job-ring119120reg:121maxItems: 1122123interrupts:124maxItems: 1125126power-domains:127maxItems: 1128129fsl,liodn:130description:131Specifies the LIODN to be used in conjunction with the ppid-to-liodn132table that specifies the PPID to LIODN mapping. Needed if the PAMU is133used. Value is a 12 bit value where value is a LIODN ID for this JR.134This property is normally set by boot firmware.135$ref: /schemas/types.yaml#/definitions/uint32-array136items:137- maximum: 0xfff138allOf:139- if:140properties:141compatible:142contains:143enum:144- fsl,imx8qm-job-ring145- fsl,imx8qxp-job-ring146then:147required:148- power-domains149else:150properties:151power-domains: false152153'^rtic@[0-9a-f]+$':154type: object155additionalProperties: false156description:157Run Time Integrity Check (RTIC) Node. Defines a register space that158contains up to 5 sets of addresses and their lengths (sizes) that will be159checked at run time. After an initial hash result is calculated, these160addresses are checked by HW to monitor any change. If any memory is161modified, a Security Violation is triggered (see SNVS definition).162163properties:164compatible:165oneOf:166- items:167- const: fsl,sec-v5.4-rtic168- const: fsl,sec-v5.0-rtic169- const: fsl,sec-v4.0-rtic170- const: fsl,sec-v4.0-rtic171172reg:173items:174- description: RTIC control and status register space.175- description: RTIC recoverable error indication register space.176minItems: 1177178ranges:179maxItems: 1180181interrupts:182maxItems: 1183184'#address-cells':185const: 1186187'#size-cells':188const: 1189190patternProperties:191'^rtic-[a-z]@[0-9a-f]+$':192type: object193additionalProperties: false194description:195Run Time Integrity Check (RTIC) Memory Node defines individual RTIC196memory regions that are used to perform run-time integrity check of197memory areas that should not modified. The node defines a register198that contains the memory address & length (combined) and a second199register that contains the hash result in big endian format.200201properties:202compatible:203oneOf:204- items:205- const: fsl,sec-v5.4-rtic-memory206- const: fsl,sec-v5.0-rtic-memory207- const: fsl,sec-v4.0-rtic-memory208- const: fsl,sec-v4.0-rtic-memory209210reg:211items:212- description: RTIC memory address213- description: RTIC hash result214215fsl,liodn:216description:217Specifies the LIODN to be used in conjunction with the218ppid-to-liodn table that specifies the PPID to LIODN mapping.219Needed if the PAMU is used. Value is a 12 bit value where value220is a LIODN ID for this JR. This property is normally set by boot221firmware.222$ref: /schemas/types.yaml#/definitions/uint32-array223items:224- maximum: 0xfff225226fsl,rtic-region:227description:228Specifies the HW address (36 bit address) for this region229followed by the length of the HW partition to be checked;230the address is represented as a 64 bit quantity followed231by a 32 bit length.232$ref: /schemas/types.yaml#/definitions/uint32-array233234required:235- compatible236- reg237- ranges238239if:240properties:241compatible:242contains:243enum:244- fsl,imx8qm-caam245- fsl,imx8qxp-caam246then:247required:248- power-domains249else:250properties:251power-domains: false252253additionalProperties: false254255examples:256- |257crypto@300000 {258compatible = "fsl,sec-v4.0";259#address-cells = <1>;260#size-cells = <1>;261reg = <0x300000 0x10000>;262ranges = <0 0x300000 0x10000>;263interrupts = <92 2>;264265jr@1000 {266compatible = "fsl,sec-v4.0-job-ring";267reg = <0x1000 0x1000>;268interrupts = <88 2>;269};270271jr@2000 {272compatible = "fsl,sec-v4.0-job-ring";273reg = <0x2000 0x1000>;274interrupts = <89 2>;275};276277jr@3000 {278compatible = "fsl,sec-v4.0-job-ring";279reg = <0x3000 0x1000>;280interrupts = <90 2>;281};282283jr@4000 {284compatible = "fsl,sec-v4.0-job-ring";285reg = <0x4000 0x1000>;286interrupts = <91 2>;287};288289rtic@6000 {290compatible = "fsl,sec-v4.0-rtic";291#address-cells = <1>;292#size-cells = <1>;293reg = <0x6000 0x100>;294ranges = <0x0 0x6100 0xe00>;295296rtic-a@0 {297compatible = "fsl,sec-v4.0-rtic-memory";298reg = <0x00 0x20>, <0x100 0x80>;299};300301rtic-b@20 {302compatible = "fsl,sec-v4.0-rtic-memory";303reg = <0x20 0x20>, <0x200 0x80>;304};305306rtic-c@40 {307compatible = "fsl,sec-v4.0-rtic-memory";308reg = <0x40 0x20>, <0x300 0x80>;309};310311rtic-d@60 {312compatible = "fsl,sec-v4.0-rtic-memory";313reg = <0x60 0x20>, <0x500 0x80>;314};315};316};317...318319320