Path: blob/main/sys/contrib/device-tree/Bindings/crypto/fsl,sec-v4.0.yaml
48375 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- const: fsl,sec-v5.441- const: fsl,sec-v5.042- const: fsl,sec-v4.043- items:44- enum:45- fsl,imx6ul-caam46- fsl,sec-v5.047- const: fsl,sec-v4.048- const: fsl,sec-v4.04950reg:51maxItems: 15253ranges:54maxItems: 15556'#address-cells':57enum: [1, 2]5859'#size-cells':60enum: [1, 2]6162clocks:63minItems: 164maxItems: 46566clock-names:67minItems: 168maxItems: 469items:70enum: [mem, aclk, ipg, emi_slow]7172dma-coherent: true7374interrupts:75maxItems: 17677fsl,sec-era:78description: Defines the 'ERA' of the SEC device.79$ref: /schemas/types.yaml#/definitions/uint328081patternProperties:82'^jr@[0-9a-f]+$':83type: object84additionalProperties: false85description:86Job Ring (JR) Node. Defines data processing interface to SEC 4 across the87peripheral bus for purposes of processing cryptographic descriptors. The88specified address range can be made visible to one (or more) cores. The89interrupt defined for this node is controlled within the address range of90this node.9192properties:93compatible:94oneOf:95- items:96- const: fsl,sec-v5.4-job-ring97- const: fsl,sec-v5.0-job-ring98- const: fsl,sec-v4.0-job-ring99- items:100- const: fsl,sec-v5.0-job-ring101- const: fsl,sec-v4.0-job-ring102- const: fsl,sec-v4.0-job-ring103104reg:105maxItems: 1106107interrupts:108maxItems: 1109110fsl,liodn:111description:112Specifies the LIODN to be used in conjunction with the ppid-to-liodn113table that specifies the PPID to LIODN mapping. Needed if the PAMU is114used. Value is a 12 bit value where value is a LIODN ID for this JR.115This property is normally set by boot firmware.116$ref: /schemas/types.yaml#/definitions/uint32117maximum: 0xfff118119'^rtic@[0-9a-f]+$':120type: object121additionalProperties: false122description:123Run Time Integrity Check (RTIC) Node. Defines a register space that124contains up to 5 sets of addresses and their lengths (sizes) that will be125checked at run time. After an initial hash result is calculated, these126addresses are checked by HW to monitor any change. If any memory is127modified, a Security Violation is triggered (see SNVS definition).128129properties:130compatible:131oneOf:132- items:133- const: fsl,sec-v5.4-rtic134- const: fsl,sec-v5.0-rtic135- const: fsl,sec-v4.0-rtic136- const: fsl,sec-v4.0-rtic137138reg:139items:140- description: RTIC control and status register space.141- description: RTIC recoverable error indication register space.142minItems: 1143144ranges:145maxItems: 1146147interrupts:148maxItems: 1149150'#address-cells':151const: 1152153'#size-cells':154const: 1155156patternProperties:157'^rtic-[a-z]@[0-9a-f]+$':158type: object159additionalProperties: false160description:161Run Time Integrity Check (RTIC) Memory Node defines individual RTIC162memory regions that are used to perform run-time integrity check of163memory areas that should not modified. The node defines a register164that contains the memory address & length (combined) and a second165register that contains the hash result in big endian format.166167properties:168compatible:169oneOf:170- items:171- const: fsl,sec-v5.4-rtic-memory172- const: fsl,sec-v5.0-rtic-memory173- const: fsl,sec-v4.0-rtic-memory174- const: fsl,sec-v4.0-rtic-memory175176reg:177items:178- description: RTIC memory address179- description: RTIC hash result180181fsl,liodn:182description:183Specifies the LIODN to be used in conjunction with the184ppid-to-liodn table that specifies the PPID to LIODN mapping.185Needed if the PAMU is used. Value is a 12 bit value where value186is a LIODN ID for this JR. This property is normally set by boot187firmware.188$ref: /schemas/types.yaml#/definitions/uint32189maximum: 0xfff190191fsl,rtic-region:192description:193Specifies the HW address (36 bit address) for this region194followed by the length of the HW partition to be checked;195the address is represented as a 64 bit quantity followed196by a 32 bit length.197$ref: /schemas/types.yaml#/definitions/uint32-array198199required:200- compatible201- reg202- ranges203204additionalProperties: false205206examples:207- |208crypto@300000 {209compatible = "fsl,sec-v4.0";210#address-cells = <1>;211#size-cells = <1>;212reg = <0x300000 0x10000>;213ranges = <0 0x300000 0x10000>;214interrupts = <92 2>;215216jr@1000 {217compatible = "fsl,sec-v4.0-job-ring";218reg = <0x1000 0x1000>;219interrupts = <88 2>;220};221222jr@2000 {223compatible = "fsl,sec-v4.0-job-ring";224reg = <0x2000 0x1000>;225interrupts = <89 2>;226};227228jr@3000 {229compatible = "fsl,sec-v4.0-job-ring";230reg = <0x3000 0x1000>;231interrupts = <90 2>;232};233234jr@4000 {235compatible = "fsl,sec-v4.0-job-ring";236reg = <0x4000 0x1000>;237interrupts = <91 2>;238};239240rtic@6000 {241compatible = "fsl,sec-v4.0-rtic";242#address-cells = <1>;243#size-cells = <1>;244reg = <0x6000 0x100>;245ranges = <0x0 0x6100 0xe00>;246247rtic-a@0 {248compatible = "fsl,sec-v4.0-rtic-memory";249reg = <0x00 0x20>, <0x100 0x80>;250};251252rtic-b@20 {253compatible = "fsl,sec-v4.0-rtic-memory";254reg = <0x20 0x20>, <0x200 0x80>;255};256257rtic-c@40 {258compatible = "fsl,sec-v4.0-rtic-memory";259reg = <0x40 0x20>, <0x300 0x80>;260};261262rtic-d@60 {263compatible = "fsl,sec-v4.0-rtic-memory";264reg = <0x60 0x20>, <0x500 0x80>;265};266};267};268...269270271