1 =====================================================================
2 SEC 4 Device Tree Binding
3 Copyright (C) 2008-2011 Freescale Semiconductor Inc.
9 -Run Time Integrity Check (RTIC) Node
10 -Run Time Integrity Check (RTIC) Memory Node
11 -Secure Non-Volatile Storage (SNVS) Node
12 -Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node
15 NOTE: the SEC 4 is also known as Freescale's Cryptographic Accelerator
16 Accelerator and Assurance Module (CAAM).
18 =====================================================================
23 SEC 4 h/w can process requests from 2 types of sources.
24 1. DPAA Queue Interface (HW interface between Queue Manager & SEC 4).
25 2. Job Rings (HW interface between cores & SEC 4 registers).
27 High Speed Data Path Configuration:
29 HW interface between QM & SEC 4 and also BM & SEC 4, on DPAA-enabled parts
30 such as the P4080. The number of simultaneous dequeues the QI can make is
31 equal to the number of Descriptor Controller (DECO) engines in a particular
32 SEC version. E.g., the SEC 4.0 in the P4080 has 5 DECOs and can thus
33 dequeue from 5 subportals simultaneously.
35 Job Ring Data Path Configuration:
37 Each JR is located on a separate 4k page, they may (or may not) be made visible
38 in the memory partition devoted to a particular core. The P4080 has 4 JRs, so
39 up to 4 JRs can be configured; and all 4 JRs process requests in parallel.
41 =====================================================================
46 Node defines the base address of the SEC 4 block.
47 This block specifies the address range of all global
48 configuration registers for the SEC 4 block. It
49 also receives interrupts from the Run Time Integrity Check
50 (RTIC) function within the SEC 4 block.
57 Definition: Must include "fsl,sec-v4.0"
62 Definition: A standard property. Define the 'ERA' of the SEC
68 Definition: A standard property. Defines the number of cells
69 for representing physical addresses in child nodes.
74 Definition: A standard property. Defines the number of cells
75 for representing the size of physical addresses in
80 Value type: <prop-encoded-array>
81 Definition: A standard property. Specifies the physical
82 address and length of the SEC4 configuration registers.
87 Value type: <prop-encoded-array>
88 Definition: A standard property. Specifies the physical address
89 range of the SEC 4.0 register space (-SNVS not included). A
90 triplet that includes the child address, parent address, &
95 Value type: <prop_encoded-array>
96 Definition: Specifies the interrupts generated by this
97 device. The value of the interrupts property
98 consists of one interrupt specifier. The format
99 of the specifier is defined by the binding document
100 describing the node's interrupt parent.
103 Usage: (required if interrupt property is defined)
104 Value type: <phandle>
105 Definition: A single <phandle> value that points
106 to the interrupt parent to which the child domain
109 Note: All other standard properties (see the ePAPR) are allowed
115 compatible = "fsl,sec-v4.0";
117 #address-cells = <1>;
119 reg = <0x300000 0x10000>;
120 ranges = <0 0x300000 0x10000>;
121 interrupt-parent = <&mpic>;
125 =====================================================================
128 Child of the crypto node defines data processing interface to SEC 4
129 across the peripheral bus for purposes of processing
130 cryptographic descriptors. The specified address
131 range can be made visible to one (or more) cores.
132 The interrupt defined for this node is controlled within
133 the address range of this node.
138 Definition: Must include "fsl,sec-v4.0-job-ring"
142 Value type: <prop-encoded-array>
143 Definition: Specifies a two JR parameters: an offset from
144 the parent physical address and the length the JR registers.
147 Usage: optional-but-recommended
148 Value type: <prop-encoded-array>
150 Specifies the LIODN to be used in conjunction with
151 the ppid-to-liodn table that specifies the PPID to LIODN mapping.
152 Needed if the PAMU is used. Value is a 12 bit value
153 where value is a LIODN ID for this JR. This property is
154 normally set by boot firmware.
158 Value type: <prop_encoded-array>
159 Definition: Specifies the interrupts generated by this
160 device. The value of the interrupts property
161 consists of one interrupt specifier. The format
162 of the specifier is defined by the binding document
163 describing the node's interrupt parent.
166 Usage: (required if interrupt property is defined)
167 Value type: <phandle>
168 Definition: A single <phandle> value that points
169 to the interrupt parent to which the child domain
174 compatible = "fsl,sec-v4.0-job-ring";
175 reg = <0x1000 0x1000>;
177 interrupt-parent = <&mpic>;
182 =====================================================================
183 Run Time Integrity Check (RTIC) Node
185 Child node of the crypto node. Defines a register space that
186 contains up to 5 sets of addresses and their lengths (sizes) that
187 will be checked at run time. After an initial hash result is
188 calculated, these addresses are checked by HW to monitor any
189 change. If any memory is modified, a Security Violation is
190 triggered (see SNVS definition).
196 Definition: Must include "fsl,sec-v4.0-rtic".
201 Definition: A standard property. Defines the number of cells
202 for representing physical addresses in child nodes. Must
208 Definition: A standard property. Defines the number of cells
209 for representing the size of physical addresses in
210 child nodes. Must have a value of 1.
214 Value type: <prop-encoded-array>
215 Definition: A standard property. Specifies a two parameters:
216 an offset from the parent physical address and the length
221 Value type: <prop-encoded-array>
222 Definition: A standard property. Specifies the physical address
223 range of the SEC 4 register space (-SNVS not included). A
224 triplet that includes the child address, parent address, &
229 compatible = "fsl,sec-v4.0-rtic";
230 #address-cells = <1>;
232 reg = <0x6000 0x100>;
233 ranges = <0x0 0x6100 0xe00>;
236 =====================================================================
237 Run Time Integrity Check (RTIC) Memory Node
238 A child node that defines individual RTIC memory regions that are used to
239 perform run-time integrity check of memory areas that should not modified.
240 The node defines a register that contains the memory address &
241 length (combined) and a second register that contains the hash result
242 in big endian format.
247 Definition: Must include "fsl,sec-v4.0-rtic-memory".
251 Value type: <prop-encoded-array>
252 Definition: A standard property. Specifies two parameters:
253 an offset from the parent physical address and the length:
255 1. The location of the RTIC memory address & length registers.
256 2. The location RTIC hash result.
259 Usage: optional-but-recommended
260 Value type: <prop-encoded-array>
262 Specifies the HW address (36 bit address) for this region
263 followed by the length of the HW partition to be checked;
264 the address is represented as a 64 bit quantity followed
268 Usage: optional-but-recommended
269 Value type: <prop-encoded-array>
271 Specifies the LIODN to be used in conjunction with
272 the ppid-to-liodn table that specifies the PPID to LIODN
273 mapping. Needed if the PAMU is used. Value is a 12 bit value
274 where value is a LIODN ID for this RTIC memory region. This
275 property is normally set by boot firmware.
279 compatible = "fsl,sec-v4.0-rtic-memory";
280 reg = <0x00 0x20 0x100 0x80>;
282 fsl,rtic-region = <0x12345678 0x12345678 0x12345678>;
285 =====================================================================
286 Secure Non-Volatile Storage (SNVS) Node
288 Node defines address range and the associated
289 interrupt for the SNVS function. This function
290 monitors security state information & reports
296 Definition: Must include "fsl,sec-v4.0-mon".
300 Value type: <prop-encoded-array>
301 Definition: A standard property. Specifies the physical
302 address and length of the SEC4 configuration
308 Definition: A standard property. Defines the number of cells
309 for representing physical addresses in child nodes. Must
315 Definition: A standard property. Defines the number of cells
316 for representing the size of physical addresses in
317 child nodes. Must have a value of 1.
321 Value type: <prop-encoded-array>
322 Definition: A standard property. Specifies the physical address
323 range of the SNVS register space. A triplet that includes
324 the child address, parent address, & length.
328 Value type: <prop_encoded-array>
329 Definition: Specifies the interrupts generated by this
330 device. The value of the interrupts property
331 consists of one interrupt specifier. The format
332 of the specifier is defined by the binding document
333 describing the node's interrupt parent.
336 Usage: (required if interrupt property is defined)
337 Value type: <phandle>
338 Definition: A single <phandle> value that points
339 to the interrupt parent to which the child domain
344 compatible = "fsl,sec-v4.0-mon";
345 reg = <0x314000 0x1000>;
346 ranges = <0 0x314000 0x1000>;
347 interrupt-parent = <&mpic>;
351 =====================================================================
352 Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node
354 A SNVS child node that defines SNVS LP RTC.
359 Definition: Must include "fsl,sec-v4.0-mon-rtc-lp".
363 Value type: <prop-encoded-array>
364 Definition: A standard property. Specifies the physical
365 address and length of the SNVS LP configuration registers.
368 sec_mon_rtc_lp@314000 {
369 compatible = "fsl,sec-v4.0-mon-rtc-lp";
373 =====================================================================
376 crypto: crypto@300000 {
377 compatible = "fsl,sec-v4.0";
378 #address-cells = <1>;
380 reg = <0x300000 0x10000>;
381 ranges = <0 0x300000 0x10000>;
382 interrupt-parent = <&mpic>;
386 compatible = "fsl,sec-v4.0-job-ring";
387 reg = <0x1000 0x1000>;
388 interrupt-parent = <&mpic>;
393 compatible = "fsl,sec-v4.0-job-ring";
394 reg = <0x2000 0x1000>;
395 interrupt-parent = <&mpic>;
400 compatible = "fsl,sec-v4.0-job-ring";
401 reg = <0x3000 0x1000>;
402 interrupt-parent = <&mpic>;
407 compatible = "fsl,sec-v4.0-job-ring";
408 reg = <0x4000 0x1000>;
409 interrupt-parent = <&mpic>;
414 compatible = "fsl,sec-v4.0-rtic";
415 #address-cells = <1>;
417 reg = <0x6000 0x100>;
418 ranges = <0x0 0x6100 0xe00>;
421 compatible = "fsl,sec-v4.0-rtic-memory";
422 reg = <0x00 0x20 0x100 0x80>;
426 compatible = "fsl,sec-v4.0-rtic-memory";
427 reg = <0x20 0x20 0x200 0x80>;
431 compatible = "fsl,sec-v4.0-rtic-memory";
432 reg = <0x40 0x20 0x300 0x80>;
436 compatible = "fsl,sec-v4.0-rtic-memory";
437 reg = <0x60 0x20 0x500 0x80>;
442 sec_mon: sec_mon@314000 {
443 compatible = "fsl,sec-v4.0-mon";
444 reg = <0x314000 0x1000>;
445 ranges = <0 0x314000 0x1000>;
446 interrupt-parent = <&mpic>;
450 compatible = "fsl,sec-v4.0-mon-rtc-lp";
455 =====================================================================