MLK-18082: defconfig: Add caam to 7ulp conf
authorFranck LENORMAND <franck.lenormand@nxp.com>
Wed, 25 Apr 2018 13:17:32 +0000 (15:17 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
[Arul: Fix merge conflicts]
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Documentation/devicetree/bindings/crypto/fsl-sec4.txt
arch/arm/boot/dts/imx7ulp.dtsi

index 52e4831..b59cc9d 100644 (file)
@@ -169,6 +169,9 @@ PROPERTIES
       Value type: <string>
       Definition: Must include "fsl,sec-v4.0-ctrl".
 
+      platform precision:
+       - "fsl,imx7d-caam"
+
    - reg
       Usage: required
       Value type: <prop-encoded-array>
@@ -264,6 +267,26 @@ EXAMPLE
                reg = <0x00100000 0x4000>;
        };
 
+=====================================================================
+Secure memory (SM) Node
+
+  - compatible
+      Usage: required
+      Value type: <string>
+      Definition: Must include "fsl,imx6q-caam-sm"
+
+  - reg
+      Usage: required
+      Value type: <prop-encoded-array>
+      Definition: Specifies a two SM parameters:  an offset from
+          the parent physical address and the length the SM registers.
+
+EXAMPLE
+  caam_sm: caam-sm@00100000 {
+    compatible = "fsl,imx6q-caam-sm";
+    reg = <0x00100000 0x4000>;
+  };
+
 =====================================================================
 Run Time Integrity Check (RTIC) Node
 
index 2d4382a..0730ae7 100644 (file)
                        status = "okay";
                };
 
+               crypto: caam@40240000 {
+                       compatible = "fsl,imx7d-caam", "fsl,sec-v4.0";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       reg = <0x40240000 0x40000>;
+                       ranges = <0 0x40240000 0x40000>;
+                       clocks = <&clks IMX7ULP_CLK_CAAM>,
+                               <&clks IMX7ULP_CLK_NIC1_DIV>;
+                       clock-names = "ipg", "aclk";
+
+                       sec_ctrl: ctrl@0 {
+                               /* CAAM Page 0 only accessible */
+                               /*      by secure world */
+                               compatible = "fsl,sec-v4.0-ctrl";
+                               reg = <0x40240000 0x1000>;
+                               secure-status = "okay";
+                               status = "disabled";
+                       };
+
+                       sec_jr0: jr0@1000 {
+                               compatible = "fsl,sec-v4.0-job-ring";
+                               reg = <0x1000 0x1000>;
+                               interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
+                       sec_jr1: jr1@2000 {
+                               compatible = "fsl,sec-v4.0-job-ring";
+                               reg = <0x2000 0x1000>;
+                               interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
+                               status = "disabled";
+                       };
+               };
+
                rpmsg: rpmsg{
                        compatible = "fsl,imx7ulp-rpmsg";
                        memory-region = <&rpmsg_reserved>;