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
110 Usage: required if SEC 4.0 requires explicit enablement of clocks
111 Value type: <prop_encoded-array>
112 Definition: A list of phandle and clock specifier pairs describing
113 the clocks required for enabling and disabling SEC 4.0.
116 Usage: required if SEC 4.0 requires explicit enablement of clocks
118 Definition: A list of clock name strings in the same order as the
121 Note: All other standard properties (see the ePAPR) are allowed
127 compatible = "fsl,sec-v4.0";
129 #address-cells = <1>;
131 reg = <0x300000 0x10000>;
132 ranges = <0 0x300000 0x10000>;
133 interrupt-parent = <&mpic>;
135 clocks = <&clks IMX6QDL_CLK_CAAM_MEM>,
136 <&clks IMX6QDL_CLK_CAAM_ACLK>,
137 <&clks IMX6QDL_CLK_CAAM_IPG>,
138 <&clks IMX6QDL_CLK_EIM_SLOW>;
139 clock-names = "mem", "aclk", "ipg", "emi_slow";
142 =====================================================================
145 Child of the crypto node defines data processing interface to SEC 4
146 across the peripheral bus for purposes of processing
147 cryptographic descriptors. The specified address
148 range can be made visible to one (or more) cores.
149 The interrupt defined for this node is controlled within
150 the address range of this node.
155 Definition: Must include "fsl,sec-v4.0-job-ring"
159 Value type: <prop-encoded-array>
160 Definition: Specifies a two JR parameters: an offset from
161 the parent physical address and the length the JR registers.
164 Usage: optional-but-recommended
165 Value type: <prop-encoded-array>
167 Specifies the LIODN to be used in conjunction with
168 the ppid-to-liodn table that specifies the PPID to LIODN mapping.
169 Needed if the PAMU is used. Value is a 12 bit value
170 where value is a LIODN ID for this JR. This property is
171 normally set by boot firmware.
175 Value type: <prop_encoded-array>
176 Definition: Specifies the interrupts generated by this
177 device. The value of the interrupts property
178 consists of one interrupt specifier. The format
179 of the specifier is defined by the binding document
180 describing the node's interrupt parent.
183 Usage: (required if interrupt property is defined)
184 Value type: <phandle>
185 Definition: A single <phandle> value that points
186 to the interrupt parent to which the child domain
191 compatible = "fsl,sec-v4.0-job-ring";
192 reg = <0x1000 0x1000>;
194 interrupt-parent = <&mpic>;
199 =====================================================================
200 Run Time Integrity Check (RTIC) Node
202 Child node of the crypto node. Defines a register space that
203 contains up to 5 sets of addresses and their lengths (sizes) that
204 will be checked at run time. After an initial hash result is
205 calculated, these addresses are checked by HW to monitor any
206 change. If any memory is modified, a Security Violation is
207 triggered (see SNVS definition).
213 Definition: Must include "fsl,sec-v4.0-rtic".
218 Definition: A standard property. Defines the number of cells
219 for representing physical addresses in child nodes. Must
225 Definition: A standard property. Defines the number of cells
226 for representing the size of physical addresses in
227 child nodes. Must have a value of 1.
231 Value type: <prop-encoded-array>
232 Definition: A standard property. Specifies a two parameters:
233 an offset from the parent physical address and the length
238 Value type: <prop-encoded-array>
239 Definition: A standard property. Specifies the physical address
240 range of the SEC 4 register space (-SNVS not included). A
241 triplet that includes the child address, parent address, &
246 compatible = "fsl,sec-v4.0-rtic";
247 #address-cells = <1>;
249 reg = <0x6000 0x100>;
250 ranges = <0x0 0x6100 0xe00>;
253 =====================================================================
254 Run Time Integrity Check (RTIC) Memory Node
255 A child node that defines individual RTIC memory regions that are used to
256 perform run-time integrity check of memory areas that should not modified.
257 The node defines a register that contains the memory address &
258 length (combined) and a second register that contains the hash result
259 in big endian format.
264 Definition: Must include "fsl,sec-v4.0-rtic-memory".
268 Value type: <prop-encoded-array>
269 Definition: A standard property. Specifies two parameters:
270 an offset from the parent physical address and the length:
272 1. The location of the RTIC memory address & length registers.
273 2. The location RTIC hash result.
276 Usage: optional-but-recommended
277 Value type: <prop-encoded-array>
279 Specifies the HW address (36 bit address) for this region
280 followed by the length of the HW partition to be checked;
281 the address is represented as a 64 bit quantity followed
285 Usage: optional-but-recommended
286 Value type: <prop-encoded-array>
288 Specifies the LIODN to be used in conjunction with
289 the ppid-to-liodn table that specifies the PPID to LIODN
290 mapping. Needed if the PAMU is used. Value is a 12 bit value
291 where value is a LIODN ID for this RTIC memory region. This
292 property is normally set by boot firmware.
296 compatible = "fsl,sec-v4.0-rtic-memory";
297 reg = <0x00 0x20 0x100 0x80>;
299 fsl,rtic-region = <0x12345678 0x12345678 0x12345678>;
302 =====================================================================
303 Secure Non-Volatile Storage (SNVS) Node
305 Node defines address range and the associated
306 interrupt for the SNVS function. This function
307 monitors security state information & reports
308 security violations. This also included rtc,
309 system power off and ON/OFF key.
314 Definition: Must include "fsl,sec-v4.0-mon" and "syscon".
318 Value type: <prop-encoded-array>
319 Definition: A standard property. Specifies the physical
320 address and length of the SEC4 configuration
326 Definition: A standard property. Defines the number of cells
327 for representing physical addresses in child nodes. Must
333 Definition: A standard property. Defines the number of cells
334 for representing the size of physical addresses in
335 child nodes. Must have a value of 1.
339 Value type: <prop-encoded-array>
340 Definition: A standard property. Specifies the physical address
341 range of the SNVS register space. A triplet that includes
342 the child address, parent address, & length.
346 Value type: <prop_encoded-array>
347 Definition: Specifies the interrupts generated by this
348 device. The value of the interrupts property
349 consists of one interrupt specifier. The format
350 of the specifier is defined by the binding document
351 describing the node's interrupt parent.
354 Usage: (required if interrupt property is defined)
355 Value type: <phandle>
356 Definition: A single <phandle> value that points
357 to the interrupt parent to which the child domain
362 compatible = "fsl,sec-v4.0-mon", "syscon";
363 reg = <0x314000 0x1000>;
364 ranges = <0 0x314000 0x1000>;
365 interrupt-parent = <&mpic>;
369 =====================================================================
370 Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node
372 A SNVS child node that defines SNVS LP RTC.
377 Definition: Must include "fsl,sec-v4.0-mon-rtc-lp".
381 Value type: <prop_encoded-array>
382 Definition: Specifies the interrupts generated by this
383 device. The value of the interrupts property
384 consists of one interrupt specifier. The format
385 of the specifier is defined by the binding document
386 describing the node's interrupt parent.
390 Value type: <phandle>
391 Definition: this is phandle to the register map node.
396 Definition: LP register offset. default it is 0x34.
400 compatible = "fsl,sec-v4.0-mon-rtc-lp";
406 =====================================================================
407 System ON/OFF key driver
409 The snvs-pwrkey is designed to enable POWER key function which controlled
410 by SNVS ONOFF, the driver can report the status of POWER key and wakeup
411 system if pressed after system suspend.
416 Definition: Mush include "fsl,sec-v4.0-pwrkey".
420 Value type: <prop_encoded-array>
421 Definition: The SNVS ON/OFF interrupt number to the CPU(s).
426 Definition: Keycode to emit, KEY_POWER by default.
431 Definition: Button can wake-up the system.
435 Value type: <phandle>
436 Definition: this is phandle to the register map node.
439 snvs-pwrkey@0x020cc000 {
440 compatible = "fsl,sec-v4.0-pwrkey";
442 interrupts = <0 4 0x4>
443 linux,keycode = <116>; /* KEY_POWER */
447 =====================================================================
450 crypto: crypto@300000 {
451 compatible = "fsl,sec-v4.0";
452 #address-cells = <1>;
454 reg = <0x300000 0x10000>;
455 ranges = <0 0x300000 0x10000>;
456 interrupt-parent = <&mpic>;
460 compatible = "fsl,sec-v4.0-job-ring";
461 reg = <0x1000 0x1000>;
462 interrupt-parent = <&mpic>;
467 compatible = "fsl,sec-v4.0-job-ring";
468 reg = <0x2000 0x1000>;
469 interrupt-parent = <&mpic>;
474 compatible = "fsl,sec-v4.0-job-ring";
475 reg = <0x3000 0x1000>;
476 interrupt-parent = <&mpic>;
481 compatible = "fsl,sec-v4.0-job-ring";
482 reg = <0x4000 0x1000>;
483 interrupt-parent = <&mpic>;
488 compatible = "fsl,sec-v4.0-rtic";
489 #address-cells = <1>;
491 reg = <0x6000 0x100>;
492 ranges = <0x0 0x6100 0xe00>;
495 compatible = "fsl,sec-v4.0-rtic-memory";
496 reg = <0x00 0x20 0x100 0x80>;
500 compatible = "fsl,sec-v4.0-rtic-memory";
501 reg = <0x20 0x20 0x200 0x80>;
505 compatible = "fsl,sec-v4.0-rtic-memory";
506 reg = <0x40 0x20 0x300 0x80>;
510 compatible = "fsl,sec-v4.0-rtic-memory";
511 reg = <0x60 0x20 0x500 0x80>;
516 sec_mon: sec_mon@314000 {
517 compatible = "fsl,sec-v4.0-mon";
518 reg = <0x314000 0x1000>;
519 ranges = <0 0x314000 0x1000>;
522 compatible = "fsl,sec-v4.0-mon-rtc-lp";
528 snvs-pwrkey@0x020cc000 {
529 compatible = "fsl,sec-v4.0-pwrkey";
531 interrupts = <0 4 0x4>;
532 linux,keycode = <116>; /* KEY_POWER */
537 =====================================================================