driver: nvmem: Add ocotp driver support for imx6ul
Subsystems (3)
PATCH 1/3 driver: nvmem: Add ocotp driver support for imx6ul
i.MX6UL is an new SOC of i.MX6 family. Enable ocotp driver support for this SOC.
--- drivers/nvmem/imx-ocotp.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvmem/imx-ocotp.c +1 -0
@@ -73,6 +73,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx6q-ocotp", (void *)128 }, { .compatible = "fsl,imx6sl-ocotp", (void *)32 }, { .compatible = "fsl,imx6sx-ocotp", (void *)128 }, + { .compatible = "fsl,imx6ul-ocotp", (void *)128 }, { }, };MODULE_DEVICE_TABLE (of, imx_ocotp_dt_ids);
Signature · 1 line
2.8.2
PATCH 2/3 devicetree: bindings: nvmem: Add compatible string for imx6ul
Add new compatible string for i.MX6UL SOC.
--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +4 -3
@@ -1,13 +1,14 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings This binding represents the on-chip eFuse OTP controller found on -i.MX6Q/D, i.MX6DL/S, i.MX6SL, and i.MX6SX SoCs. +i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX and i.MX6UL SoCs. Required properties: - compatible: should be one of "fsl,imx6q-ocotp" (i.MX6Q/D/DL/S), - "fsl,imx6sl-ocotp" (i.MX6SL), or - "fsl,imx6sx-ocotp" (i.MX6SX), followed by "syscon". + "fsl,imx6sl-ocotp" (i.MX6SL), + "fsl,imx6sx-ocotp" (i.MX6SX), or + "fsl,imx6ul-ocotp" (i.MX6UL), followed by "syscon". - reg: Should contain the register base and length. - clocks: Should contain a phandle pointing to the gated peripheral clock.
Signature · 1 line
2.8.2
Rob Herring
maintainerPATCH 2/3 devicetree: bindings: nvmem: Add compatible string for imx6ul
Quoted 16 lines · Bai Ping
Add new compatible string for i.MX6UL SOC.
Signed-off-by Bai Ping <[email protected]>--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +0
-1@@ -1,13 +1,14 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings This binding represents the on-chip eFuse OTP controller found on -i.MX6Q/D, i.MX6DL/S, i.MX6SL, and i.MX6SX SoCs.
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt line 11
Quoted 10 lines
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +4
-2+i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX and i.MX6UL SoCs. Required properties: - compatible: should be one of "fsl,imx6q-ocotp" (i.MX6Q/D/DL/S), - "fsl,imx6sl-ocotp" (i.MX6SL), or - "fsl,imx6sx-ocotp" (i.MX6SX), followed by "syscon". + "fsl,imx6sl-ocotp" (i.MX6SL), + "fsl,imx6sx-ocotp" (i.MX6SX), or + "fsl,imx6ul-ocotp" (i.MX6UL), followed by "syscon".
This should be reformatted such that it's not a 5 line change to add a compatible. "one of" defines this is an OR relationship, so drop that. Move 'followed by "syscon"' to below the list of compatibles.
Quoted 11 lines
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +0
-0- reg: Should contain the register base and length. - clocks: Should contain a phandle pointing to the gated peripheral clock.Signature · 7 lines
2.8.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 2/3 devicetree: bindings: nvmem: Add compatible string for imx6ul
Quoted 19 lines
Quoted 19 lines
Add new compatible string for i.MX6UL SOC.
Signed-off-by Bai Ping <[email protected]>--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +1
-1@@ -1,13 +1,14 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings This binding represents the on-chip eFuse OTP controller found on -i.MX6Q/D, i.MX6DL/S, i.MX6SL, and i.MX6SX SoCs. +i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX and i.MX6UL SoCs.
Quoted 13 lines
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt line 11
Quoted 8 lines
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +3
-2Required properties: - compatible: should be one of "fsl,imx6q-ocotp" (i.MX6Q/D/DL/S), - "fsl,imx6sl-ocotp" (i.MX6SL), or - "fsl,imx6sx-ocotp" (i.MX6SX), followed by "syscon". + "fsl,imx6sl-ocotp" (i.MX6SL), + "fsl,imx6sx-ocotp" (i.MX6SX), or + "fsl,imx6ul-ocotp" (i.MX6UL), followed by "syscon".This should be reformatted such that it's not a 5 line change to add a compatible. "one of" defines this is an OR relationship, so drop that. Move 'followed by "syscon"' to below the list of compatibles.
Thanks for review, I will adopt in V2.
Jacky Bai
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +0
-1- reg: Should contain the register base and length. - clocks: Should contain a phandle pointing to the gated peripheral clock. --2.8.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 3/3 ARM: dts: imx: Add ocotp node for imx6ul
In reply to Bai PingAdd ocotp node for i.MX6UL SOC.
--- arch/arm/boot/dts/imx6ul.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx6ul.dtsi +6 -0
@@ -849,6 +849,12 @@ reg = <0x021b0000 0x4000>; }; + ocotp: ocotp-ctrl at 021bc000 { + compatible = "fsl,imx6ul-ocotp", "syscon"; + reg = <0x021bc000 0x4000>; + clocks = <&clks IMX6UL_CLK_OCOTP>; + }; + lcdif: lcdif at 021c8000 { compatible = "fsl,imx6ul-lcdif", "fsl,imx28-lcdif"; reg = <0x021c8000 0x4000>;
Signature · 1 line
2.8.2