1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2008-2011 Freescale Semiconductor Inc.
5 $id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - '"Horia Geantă" <horia.geanta@nxp.com>'
12 - Pankaj Gupta <pankaj.gupta@nxp.com>
13 - Gaurav Jain <gaurav.jain@nxp.com>
16 NOTE: the SEC 4 is also known as Freescale's Cryptographic Accelerator
17 Accelerator and Assurance Module (CAAM).
19 SEC 4 h/w can process requests from 2 types of sources.
20 1. DPAA Queue Interface (HW interface between Queue Manager & SEC 4).
21 2. Job Rings (HW interface between cores & SEC 4 registers).
23 High Speed Data Path Configuration:
25 HW interface between QM & SEC 4 and also BM & SEC 4, on DPAA-enabled parts
26 such as the P4080. The number of simultaneous dequeues the QI can make is
27 equal to the number of Descriptor Controller (DECO) engines in a particular
28 SEC version. E.g., the SEC 4.0 in the P4080 has 5 DECOs and can thus
29 dequeue from 5 subportals simultaneously.
31 Job Ring Data Path Configuration:
33 Each JR is located on a separate 4k page, they may (or may not) be made visible
34 in the memory partition devoted to a particular core. The P4080 has 4 JRs, so
35 up to 4 JRs can be configured; and all 4 JRs process requests in parallel.
71 enum: [mem, aclk, ipg, emi_slow]
79 description: Defines the 'ERA' of the SEC device.
80 $ref: /schemas/types.yaml#/definitions/uint32
85 additionalProperties: false
87 Job Ring (JR) Node. Defines data processing interface to SEC 4 across the
88 peripheral bus for purposes of processing cryptographic descriptors. The
89 specified address range can be made visible to one (or more) cores. The
90 interrupt defined for this node is controlled within the address range of
97 - const: fsl,sec-v5.4-job-ring
98 - const: fsl,sec-v5.0-job-ring
99 - const: fsl,sec-v4.0-job-ring
101 - const: fsl,sec-v5.0-job-ring
102 - const: fsl,sec-v4.0-job-ring
103 - const: fsl,sec-v4.0-job-ring
113 Specifies the LIODN to be used in conjunction with the ppid-to-liodn
114 table that specifies the PPID to LIODN mapping. Needed if the PAMU is
115 used. Value is a 12 bit value where value is a LIODN ID for this JR.
116 This property is normally set by boot firmware.
117 $ref: /schemas/types.yaml#/definitions/uint32
122 additionalProperties: false
124 Run Time Integrity Check (RTIC) Node. Defines a register space that
125 contains up to 5 sets of addresses and their lengths (sizes) that will be
126 checked at run time. After an initial hash result is calculated, these
127 addresses are checked by HW to monitor any change. If any memory is
128 modified, a Security Violation is triggered (see SNVS definition).
134 - const: fsl,sec-v5.4-rtic
135 - const: fsl,sec-v5.0-rtic
136 - const: fsl,sec-v4.0-rtic
137 - const: fsl,sec-v4.0-rtic
155 '^rtic-[a-z]@[0-9a-f]+$':
157 additionalProperties: false
159 Run Time Integrity Check (RTIC) Memory Node defines individual RTIC
160 memory regions that are used to perform run-time integrity check of
161 memory areas that should not modified. The node defines a register
162 that contains the memory address & length (combined) and a second
163 register that contains the hash result in big endian format.
169 - const: fsl,sec-v5.4-rtic-memory
170 - const: fsl,sec-v5.0-rtic-memory
171 - const: fsl,sec-v4.0-rtic-memory
172 - const: fsl,sec-v4.0-rtic-memory
176 - description: RTIC memory address
177 - description: RTIC hash result
181 Specifies the LIODN to be used in conjunction with the
182 ppid-to-liodn table that specifies the PPID to LIODN mapping.
183 Needed if the PAMU is used. Value is a 12 bit value where value
184 is a LIODN ID for this JR. This property is normally set by boot
186 $ref: /schemas/types.yaml#/definitions/uint32
191 Specifies the HW address (36 bit address) for this region
192 followed by the length of the HW partition to be checked;
193 the address is represented as a 64 bit quantity followed
195 $ref: /schemas/types.yaml#/definitions/uint32-array
202 additionalProperties: false
207 compatible = "fsl,sec-v4.0";
208 #address-cells = <1>;
210 reg = <0x300000 0x10000>;
211 ranges = <0 0x300000 0x10000>;
215 compatible = "fsl,sec-v4.0-job-ring";
216 reg = <0x1000 0x1000>;
221 compatible = "fsl,sec-v4.0-job-ring";
222 reg = <0x2000 0x1000>;
227 compatible = "fsl,sec-v4.0-job-ring";
228 reg = <0x3000 0x1000>;
233 compatible = "fsl,sec-v4.0-job-ring";
234 reg = <0x4000 0x1000>;
239 compatible = "fsl,sec-v4.0-rtic";
240 #address-cells = <1>;
242 reg = <0x6000 0x100>;
243 ranges = <0x0 0x6100 0xe00>;
246 compatible = "fsl,sec-v4.0-rtic-memory";
247 reg = <0x00 0x20>, <0x100 0x80>;
251 compatible = "fsl,sec-v4.0-rtic-memory";
252 reg = <0x20 0x20>, <0x200 0x80>;
256 compatible = "fsl,sec-v4.0-rtic-memory";
257 reg = <0x40 0x20>, <0x300 0x80>;
261 compatible = "fsl,sec-v4.0-rtic-memory";
262 reg = <0x60 0x20>, <0x500 0x80>;