Add and document the i.MX8MQ OTP controller
Subsystems (3)
v2 cover Add and document the i.MX8MQ OTP controller
Add a new node to enable the On-Chip OTP controller and add the new binding in the documentation.
Carlo Caione (2):
arm64: dts: imx8mq: Add on-chip OTP controller node
dt-bindings: imx-ocotp: Add i.MX8MQ compatible
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+)
Signature · 1 line
2.19.1
PATCH v2 1/2 arm64: dts: imx8mq: Add on-chip OTP controller node
Add the node for the OTP controller. The IP is the same as on the imx7d.
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +8 -0
@@ -241,6 +241,14 @@ reg = <0x30340000 0x10000>; }; + ocotp: ocotp-ctrl@30350000 { + compatible = "fsl,imx8mq-ocotp", "fsl,imx7d-ocotp", "syscon"; + reg = <0x30350000 0x10000>; + clocks = <&clk IMX8MQ_CLK_OCOTP_ROOT>; + #address-cells = <1>; + #size-cells = <1>; + }; + anatop: syscon@30360000 { compatible = "fsl,imx8mq-anatop", "syscon"; reg = <0x30360000 0x10000>;
Signature · 1 line
2.19.1
Re: [PATCH v2 1/2] arm64: dts: imx8mq: Add on-chip OTP controller node
Am Samstag, den 02.02.2019, 15:06 +0000 schrieb Carlo Caione:
Quoted 3 lines
Add the node for the OTP controller. The IP is the same as on the imx7d.
Signed-off-by Carlo Caione <[email protected]>
Quoted 20 lines
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++1 file changed, 8 insertions(+)arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -241,6 +241,14 @@ reg = <0x30340000 0x10000>; };arch/arm64/boot/dts/freescale/imx8mq.dtsi +8
-0+ ocotp: ocotp-ctrl@30350000 { + compatible = "fsl,imx8mq-ocotp", "fsl,imx7d-ocotp", "syscon"; + reg = <0x30350000 0x10000>; + clocks = <&clk IMX8MQ_CLK_OCOTP_ROOT>; + #address-cells = <1>; + #size-cells = <1>; + }; +
Quoted 3 lines
anatop: syscon@30360000 {
compatible = "fsl,imx8mq-anatop", "syscon"; reg = <0x303600000x10000>;
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v2 1/2] arm64: dts: imx8mq: Add on-chip OTP controller node
In reply to Carlo CaioneAm Samstag, den 02.02.2019, 15:06 +0000 schrieb Carlo Caione:
Quoted 1 line
Add the node for the OTP controller. The IP is the same as on the imx7d.
This is not true. According to the reference manual, the OCOTP controller on i.MX8MQ uses the non-banked write mode, same as i.MX6. Thus it is incompatible to the i.MX7 OCOTP.
Also the number of fuses is different, so we really need some driver support for the imx8mq compatible and can't declare the controller compatible to some older instance.
Regards,
Lucas
Quoted 21 lines
Signed-off-by Carlo Caione <[email protected]>---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++1 file changed, 8 insertions(+)arch/arm64/boot/dts/freescale/imx8mq.dtsi +0
-0@@ -241,6 +241,14 @@ reg = <0x30340000 0x10000>; };arch/arm64/boot/dts/freescale/imx8mq.dtsi +8
-0+ ocotp: ocotp-ctrl@30350000 { + compatible = "fsl,imx8mq-ocotp", "fsl,imx7d-ocotp", "syscon"; + reg = <0x30350000 0x10000>; + clocks = <&clk IMX8MQ_CLK_OCOTP_ROOT>; + #address-cells = <1>; + #size-cells = <1>; + }; +
Quoted 3 lines
anatop: syscon@30360000 {
compatible = "fsl,imx8mq-anatop", "syscon"; reg = <0x303600000x10000>;
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v2 1/2] arm64: dts: imx8mq: Add on-chip OTP controller node
Am Montag, den 11.02.2019, 13:03 +0100 schrieb Lucas Stach:
Quoted 7 lines
Am Samstag, den 02.02.2019, 15:06 +0000 schrieb Carlo Caione:
Quoted 2 lines
Add the node for the OTP controller. The IP is the same as on the imx7d.
This is not true. According to the reference manual, the OCOTP controller on i.MX8MQ uses the non-banked write mode, same as i.MX6. Thus it is incompatible to the i.MX7 OCOTP.
Actually I need to correct myself here. While the programming sequence description is the same as on i.MX6, the register layout looks like the i.MX7 one, so likely someone copy and pasted the wrong documentation snippet. This means the controller is in fact compatible to the i.MX7 write sequence.
Quoted 3 lines
Also the number of fuses is different, so we really need some driver support for the imx8mq compatible and can't declare the controller compatible to some older instance.
But then I think this is still true. The changed number of fuses means we need some driver support and should not claim backward compatibility with the i.MX7 controller.
regards,
Lucas
PATCH v2 2/2 dt-bindings: imx-ocotp: Add i.MX8MQ compatible
In reply to Carlo CaioneDocument the new compatible for the i.MX8MQ SoC.
--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +1 -0
@@ -13,6 +13,7 @@ Required properties: "fsl,imx7d-ocotp" (i.MX7D/S), "fsl,imx6sll-ocotp" (i.MX6SLL), "fsl,imx7ulp-ocotp" (i.MX7ULP), + "fsl,imx8mq-ocotp" (i.MX8MQ), followed by "syscon". - #address-cells : Should be 1 - #size-cells : Should be 1
Signature · 1 line
2.19.1
Quoted 14 lines · Carlo Caione
Add a new node to enable the On-Chip OTP controller and add the new binding in the documentation.
Carlo Caione (2):
arm64: dts: imx8mq: Add on-chip OTP controller node
dt-bindings: imx-ocotp: Add i.MX8MQ compatibleDocumentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+)Signature · 1 line
2.19.1
What's the status of this patchseries ?
It would help a lot if we would manage to get this in.
Quoted 12 lines · Abel Vesa
Quoted 11 lines · Carlo Caione
Add a new node to enable the On-Chip OTP controller and add the new binding in the documentation.
Carlo Caione (2):
arm64: dts: imx8mq: Add on-chip OTP controller node
dt-bindings: imx-ocotp: Add i.MX8MQ compatibleDocumentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+)
Quoted 7 lines
Quoted 3 lines
Signature · 1 line
2.19.1What's the status of this patchseries ?
It would help a lot if we would manage to get this in.
Uh, for some reason I thought Lucas was going to take care of this. I'll submit a v2 now.
--
Carlo Caione
Quoted 17 lines · Carlo Caione
Quoted 16 lines · Abel Vesa
Quoted 14 lines · Carlo Caione
Add a new node to enable the On-Chip OTP controller and add the new binding in the documentation.
Carlo Caione (2):
arm64: dts: imx8mq: Add on-chip OTP controller node
dt-bindings: imx-ocotp: Add i.MX8MQ compatibleDocumentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+)Signature · 1 line
2.19.1
Quoted 7 lines
Quoted 3 lines
What's the status of this patchseries ?
It would help a lot if we would manage to get this in.
Uh, for some reason I thought Lucas was going to take care of this. I'll submit a v2 now.
I tried this morning to apply and test both yours and Lucas's.
Your second patch overlaps with Lucas's.
Plus, Lucas's patch updates the the list in the description too.
So I would suggest you send only the dts update since Lucas's patch series already has R-b and it's good to go.
Quoted 3 lines
--
Carlo Caione
Am Dienstag, den 26.02.2019, 08:57 +0000 schrieb Carlo Caione:
Quoted 19 lines · Abel Vesa
Quoted 18 lines · Carlo Caione
Quoted 16 lines
Add a new node to enable the On-Chip OTP controller and add the new
binding in the documentation.Carlo Caione (2):
arm64: dts: imx8mq: Add on-chip OTP controller node
dt-bindings: imx-ocotp: Add i.MX8MQ compatible
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt| 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8
++++++++2 files changed, 9 insertions(+)--
2.19.1
Quoted 6 lines
Quoted 3 lines
What's the status of this patchseries ?
It would help a lot if we would manage to get this in.
Uh, for some reason I thought Lucas was going to take care of this. I'll submit a v2 now.
Huh? I've sent out the entire series [1]. It's just waiting for the nvmem maintainers to pull it in AFAICS. There should be no need to resend anything.
Regards,
Lucas
[1] https://patchwork.ozlabs.org/patch/1039959/
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel