diff mbox

[V6,1/3] DT: nvmem: add binding for mxs-ocotp

Message ID 1439418116-1833-2-git-send-email-stefan.wahren@i2se.com
State Under Review, archived
Headers show

Commit Message

Stefan Wahren Aug. 12, 2015, 10:21 p.m. UTC
This patch adds the devicetree bindings for the Freescale MXS On Chip
OTP driver.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 .../devicetree/bindings/nvmem/mxs-ocotp.txt        |   25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt

Comments

Fabio Estevam Aug. 12, 2015, 10:47 p.m. UTC | #1
On Wed, Aug 12, 2015 at 7:21 PM, Stefan Wahren <stefan.wahren@i2se.com> wrote:
> This patch adds the devicetree bindings for the Freescale MXS On Chip
> OTP driver.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Srinivas Kandagatla Aug. 17, 2015, 12:35 p.m. UTC | #2
On 12/08/15 23:21, Stefan Wahren wrote:
> This patch adds the devicetree bindings for the Freescale MXS On Chip
> OTP driver.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> ---
>   .../devicetree/bindings/nvmem/mxs-ocotp.txt        |   25 ++++++++++++++++++++
>   1 file changed, 25 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt
>
> diff --git a/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt
> new file mode 100644
> index 0000000..daebce9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt
> @@ -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";
> +	};
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt
new file mode 100644
index 0000000..daebce9
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/mxs-ocotp.txt
@@ -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";
+	};