Skip to contentSkip to conversation

driver: nvmem: Add ocotp driver support for imx6ul

PATCH Superseded Bai Ping 2 participants 5 messages Nov 7, 2016 – Nov 15, 2016

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Bai Ping

author
#0 lore raw

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
index ac27b9b..108e4bc 100644
@@ -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
author
#1 lore raw

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
index 383d588..a7ff65d 100644
@@ -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
maintainer
#2 lore raw

PATCH 2/3 devicetree: bindings: nvmem: Add compatible string for imx6ul

Quoted 16 lines · Bai Ping

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 +0 -1
index 383d588..a7ff65d 100644
@@ -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
author
#3 lore raw

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.

---
 Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +1 -1
index 383d588..a7ff65d 100644
@@ -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 -2
 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.

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

author
#4 lore raw

PATCH 3/3 ARM: dts: imx: Add ocotp node for imx6ul

In reply to Bai Ping

Add 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
index c5c05fd..c6f6613 100644
@@ -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