diff options
author | Richard Leitner <richard.leitner@skidata.com> | 2017-03-31 13:44:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 17:51:48 +0200 |
commit | 0642bac7da4240912c3e923a7d1c47af3dd89b9d (patch) | |
tree | a3ae1b6494a562da42de72d982809d08a2d3acbd /Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | |
parent | 9b66587ee259800d278e84af64755083ea09926b (diff) | |
download | op-kernel-dev-0642bac7da4240912c3e923a7d1c47af3dd89b9d.zip op-kernel-dev-0642bac7da4240912c3e923a7d1c47af3dd89b9d.tar.gz |
nvmem: imx-ocotp: add write support
Implement write routine for OCOTP controller found in i.MX6 SoC's.
Furthermore add locking to the read function to prevent race conditions.
The write routine code is based on the fsl_otp driver from Freescale.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/nvmem/imx-ocotp.txt')
-rw-r--r-- | Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt index bbde2e4..70d791b 100644 --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt @@ -14,10 +14,14 @@ Required properties: - reg: Should contain the register base and length. - clocks: Should contain a phandle pointing to the gated peripheral clock. +Optional properties: +- read-only: disable write access + Example: ocotp: ocotp@021bc000 { compatible = "fsl,imx6q-ocotp", "syscon"; reg = <0x021bc000 0x4000>; clocks = <&clks IMX6QDL_CLK_IIM>; + read-only; }; |