MLK-16959: crypto: caam Add CAAM page 0 definition in device tree
authorCedric Neveux <cedric.neveux@nxp.com>
Thu, 16 Nov 2017 15:13:39 +0000 (15:13 +0000)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:49:49 +0000 (14:49 -0500)
Add definition of CAAM page 0 in the device tree.
This page is only accessible by the CPU in secure world.
this is defined by the secure-status.

Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
Documentation/devicetree/bindings/crypto/fsl-sec4.txt
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/boot/dts/imx6sx.dtsi
arch/arm/boot/dts/imx6ul.dtsi
arch/arm/boot/dts/imx7d.dtsi

index 2a3aee9..01294c0 100644 (file)
@@ -147,6 +147,49 @@ EXAMPLE
                clock-names = "mem", "aclk", "ipg", "emi_slow";
        };
 
+=====================================================================
+SEC 4 Page 0
+
+Description
+
+    Most of CAAM's configuration registers are accessible in block0
+    of CAAM's register space. These registers are intended to be
+    accessed by specially privileged software (e.g. boot software,
+    hypervisor, secure operating system).
+
+PROPERTIES
+
+   - compatible
+      Usage: required
+      Value type: <string>
+      Definition: Must include "fsl,sec-v4.0-ctrl".
+
+   - reg
+      Usage: required
+      Value type: <prop-encoded-array>
+      Definition: A standard property.  Specifies the physical
+          address and length of the SEC4 configuration registers.
+
+   - secure-status
+      Usage: required
+      Value type: <string>
+      Definition: Must include "okay".
+
+   - status
+      Usage: required
+      Value type: <string>
+      Definition: Must include "disabled".
+
+EXAMPLE
+       sec_ctrl: ctrl@0 {
+               /* CAAM Page 0 only accessible */
+               /*      by secure world */
+               compatible = "fsl,sec-v4.0-ctrl";
+               reg = <0x2100000 0x1000>;
+               secure-status = "okay";
+               status = "disabled";
+       };
+
 =====================================================================
 Job Ring (JR) Node
 
index cead55a..8d195ba 100644 (file)
                                         <&clks IMX6QDL_CLK_EIM_SLOW>;
                                clock-names = "mem", "aclk", "ipg", "emi_slow";
 
+                               sec_ctrl: ctrl@0 {
+                                       /* CAAM Page 0 only accessible */
+                                       /*      by secure world */
+                                       compatible = "fsl,sec-v4.0-ctrl";
+                                       reg = <0x2100000 0x1000>;
+                                       secure-status = "okay";
+                                       status = "disabled";
+                               };
+
                                sec_jr0: jr0@1000 {
                                        compatible = "fsl,sec-v4.0-job-ring";
                                        reg = <0x1000 0x1000>;
index 7359c20..ddb2bc6 100644 (file)
                                         <&clks IMX6SX_CLK_EIM_SLOW>;
                                clock-names = "mem", "aclk", "ipg", "emi_slow";
 
+                               sec_ctrl: ctrl@0 {
+                                       /* CAAM Page 0 only accessible */
+                                       /*      by secure world */
+                                       compatible = "fsl,sec-v4.0-ctrl";
+                                       reg = <0x2100000 0x1000>;
+                                       secure-status = "okay";
+                                       status = "disabled";
+                               };
+
                                sec_jr0: jr0@1000 {
                                        compatible = "fsl,sec-v4.0-job-ring";
                                        reg = <0x1000 0x1000>;
index 0b04e4e..41c30d5 100644 (file)
                                         <&clks IMX6UL_CLK_CAAM_MEM>;
                                clock-names = "ipg", "aclk", "mem";
 
+                               sec_ctrl: ctrl@0 {
+                                       /* CAAM Page 0 only accessible */
+                                       /*      by secure world */
+                                       compatible = "fsl,sec-v4.0-ctrl";
+                                       reg = <0x2140000 0x1000>;
+                                       secure-status = "okay";
+                                       status = "disabled";
+                               };
+
                                sec_jr0: jr0@1000 {
                                        compatible = "fsl,sec-v4.0-job-ring";
                                        reg = <0x1000 0x1000>;
index 9203b70..95b0891 100644 (file)
                clocks = <&clks IMX7D_CAAM_CLK>,
                        <&clks IMX7D_AHB_CHANNEL_ROOT_CLK>;
                clock-names = "ipg", "aclk";
+
+               sec_ctrl: ctrl@0 {
+                       /* CAAM Page 0 only accessible */
+                       /*      by secure world */
+                       compatible = "fsl,sec-v4.0-ctrl";
+                       reg = <0x30900000 0x1000>;
+                       secure-status = "okay";
+                       status = "disabled";
+               };
+
                sec_jr0: jr0@1000 {
                         compatible = "fsl,sec-v4.0-job-ring";
                         reg = <0x1000 0x1000>;