nvmem: add binding for mxs-ocotp
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 30 Sep 2015 12:56:11 +0000 (13:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 11:06:13 +0000 (12:06 +0100)
This patch adds the devicetree bindings for the Freescale MXS On Chip
OTP driver.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt
new file mode 100644 (file)
index 0000000..daebce9
--- /dev/null
@@ -0,0 +1,25 @@
+On-Chip OTP Memory for Freescale i.MX23/i.MX28
+
+Required properties :
+- compatible :
+  - "fsl,imx23-ocotp" for i.MX23
+  - "fsl,imx28-ocotp" for i.MX28
+- #address-cells : Should be 1
+- #size-cells : Should be 1
+- reg : Address and length of OTP controller registers
+- clocks : Should contain a reference to the hbus clock
+
+= Data cells =
+Are child nodes of mxs-ocotp, bindings of which as described in
+bindings/nvmem/nvmem.txt
+
+Example for i.MX28:
+
+       ocotp: ocotp@8002c000 {
+               compatible = "fsl,imx28-ocotp", "fsl,ocotp";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               reg = <0x8002c000 0x2000>;
+               clocks = <&clks 25>;
+               status = "okay";
+       };