MLKU-38-4 dt-bindings: crypto: fsl: add caam snvs and secvio
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 27 Nov 2019 14:03:36 +0000 (16:03 +0200)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:21:21 +0000 (11:21 +0800)
This is a rework of the following i.MX BSP commit
(rel_imx_4.19.35_1.1.0_rc2):
9b63038a58cc ("MLK-21453: crypto: caam - fix Mentor's port, merge conflict resolutions")

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Documentation/devicetree/bindings/crypto/fsl-sec4.txt

index 940b380..0d565e7 100644 (file)
@@ -385,6 +385,79 @@ EXAMPLE
                interrupts = <93 2>;
        };
 
+=====================================================================
+CAAM SNVS Node
+  Load the SECVIO node.
+
+  - compatible
+      Usage: required
+      Value type: <string>
+      Definition: Must include "fsl,imx6q-caam-snvs".
+
+  - reg
+      Usage: required
+      Value type: <prop-encoded-array>
+      Definition: A standard property.  Specifies the physical
+          address and length of the SEC4 configuration
+          registers.
+
+=====================================================================
+Security Violation (SECVIO) Node
+  Reports security violations.
+
+  - compatible
+      Usage: required
+      Value type: <string>
+      Definition: Must include "fsl,imx6q-caam-secvio".
+
+   - interrupts
+      Usage: required
+      Value type: <prop_encoded-array>
+      Definition:  Specifies the interrupts generated by this
+           device.  The value of the interrupts property
+           consists of one interrupt specifier. The format
+           of the specifier is defined by the binding document
+           describing the node's interrupt parent.
+
+  - jtag-tamper
+       Usage: optional-but-recommended
+       Value type: <string>
+       Definition:
+           Security tamper on the JTAG
+           Must include "enabled" to enable.
+
+  - watchdog-tamper
+       Usage: optional-but-recommended
+       Value type: <string>
+       Definition:
+           Security tamper on the watchdog
+           Must include "enabled" to enable.
+
+  - internal-boot-tamper
+       Usage: optional-but-recommended
+       Value type: <string>
+       Definition:
+           Security tamper on the internal boot
+           Must include "enabled" to enable.
+
+  - external-pin-tamper
+       Usage: optional-but-recommended
+       Value type: <string>
+       Definition:
+           Security tamper on the external pin
+           Must include "enabled" to enable.
+
+EXAMPLE
+       irq_sec_vio: caam_secvio {
+               compatible = "fsl,imx6q-caam-secvio";
+               interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+               jtag-tamper = "disabled";
+               watchdog-tamper = "enabled";
+               internal-boot-tamper = "enabled";
+               external-pin-tamper = "disabled";
+       };
+
+
 =====================================================================
 Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node
 
@@ -566,4 +639,18 @@ FULL EXAMPLE
                };
        };
 
+       caam_snvs: caam-snvs@30370000 {
+               compatible = "fsl,imx6q-caam-snvs";
+               reg = <0x30370000 0x10000>;
+       };
+
+       irq_sec_vio: caam_secvio {
+               compatible = "fsl,imx6q-caam-secvio";
+               interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+               jtag-tamper = "disabled";
+               watchdog-tamper = "enabled";
+               internal-boot-tamper = "enabled";
+               external-pin-tamper = "disabled";
+       };
+
 =====================================================================