Skip to contentSkip to conversation

arm64: dts: renesas: Add SD/OE pin properties (part B)

PATCH In review Sean Anderson 2 participants 7 messages Sep 27, 2024 – Oct 7, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: renesas: Add SD/OE pin properties (part B)

Linux can configure almost every part of this clock generator without relying on the OTP settings. However, the correct configuration for the SD/OE pin cannot be determined automatically. Therefore, add the appropriate properties to configure this pin.

Thanks to everyone who replied to part A with board info!

Sean Anderson (3):
arm64: dts: renesas: salvator-x: Add SD/OE pin properties
arm64: dts: renesas: hihope: Add SD/OE pin properties
arm64: dts: renesas: beacon: Add SD/OE pin properties

 arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi | 2 ++
 arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi       | 2 ++
 arch/arm64/boot/dts/renesas/hihope-common.dtsi            | 2 ++
 arch/arm64/boot/dts/renesas/salvator-x.dtsi               | 2 ++
 4 files changed, 8 insertions(+)
Signature · 1 line
2.35.1.1320.gc452695387.dirty
#1 lore raw

PATCH 1/3 arm64: dts: renesas: salvator-x: Add SD/OE pin properties

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This matches the register configuration reported by Geert [1] as well as his analysis of the schematic.

[1] https://lore.kernel.org/linux-arm-kernel/CAMuHMdUmf=BYrVWGDp4kjLGK=66HSMJbHuMvne-xGLkTYnGv2g@mail.gmail.com/

---

 arch/arm64/boot/dts/renesas/salvator-x.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/salvator-x.dtsi +2 -0
index ddee50e64632..5920932cbc2f 100644
@@ -25,5 +25,7 @@ versaclock5: clock-generator@6a {
 		#clock-cells = <1>;
 		clocks = <&x23_clk>;
 		clock-names = "xin";
+		idt,shutdown = <0>;
+		idt,output-enable-active = <1>;
 	};
 };
Signature · 1 line
2.35.1.1320.gc452695387.dirty
#3 lore raw

PATCH 2/3 arm64: dts: renesas: hihope: Add SD/OE pin properties

In reply to Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This is based on Geert's analysis of the schematic [1].

[1] https://lore.kernel.org/linux-arm-kernel/CAMuHMdUmf=BYrVWGDp4kjLGK=66HSMJbHuMvne-xGLkTYnGv2g@mail.gmail.com/

---

 arch/arm64/boot/dts/renesas/hihope-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/hihope-common.dtsi +2 -0
index 83104af2813e..6abe094fc253 100644
@@ -198,6 +198,8 @@ versaclock5: clock-generator@6a {
 		#clock-cells = <1>;
 		clocks = <&x304_clk>;
 		clock-names = "xin";
+		idt,shutdown = <0>;
+		idt,output-enable-active = <1>;
 	};
 };
 
Signature · 1 line
2.35.1.1320.gc452695387.dirty
#5 lore raw

PATCH 3/3 arm64: dts: renesas: beacon: Add SD/OE pin properties

In reply to Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This matches the register configuration reported by Adam [1] as well as his analysis of the schematic.

[1] https://lore.kernel.org/linux-arm-kernel/CAHCN7x+tcvih1-kmUs8tVLCAk0Gnj11t0yEZLPWk3UBNyad7Jg@mail.gmail.com/

---

 arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi | 2 ++
 arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi       | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi +2 -0
index 5a14f116f7a1..a258ba0d6b4f 100644
@@ -364,6 +364,8 @@ versaclock6_bb: clock-controller@6a {
 		#clock-cells = <1>;
 		clocks = <&x304_clk>;
 		clock-names = "xin";
+		idt,shutdown = <0>;
+		idt,output-enable-active = <0>;
 
 		assigned-clocks = <&versaclock6_bb 1>, <&versaclock6_bb 2>,
 				  <&versaclock6_bb 3>, <&versaclock6_bb 4>;
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +2 -0
index 68b04e56ae56..06ad9db420d6 100644
@@ -166,6 +166,8 @@ versaclock5: versaclock_som@6a {
 		#clock-cells = <1>;
 		clocks = <&x304_clk>;
 		clock-names = "xin";
+		idt,shutdown = <0>;
+		idt,output-enable-active = <0>;
 		/* du_dotclkin0, du_dotclkin2, usb_extal, avb_txcrefclk */
 		assigned-clocks = <&versaclock5 1>,
 				   <&versaclock5 2>,
Signature · 1 line
2.35.1.1320.gc452695387.dirty
Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties

In reply to Sean Anderson
Quoted 8 lines · Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This matches the register configuration reported by Geert [1] as well as his analysis of the schematic.

[1] https://lore.kernel.org/linux-arm-kernel/CAMuHMdUmf=BYrVWGDp4kjLGK=66HSMJbHuMvne-xGLkTYnGv2g@mail.gmail.com/

i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Reviewed-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] arm64: dts: renesas: hihope: Add SD/OE pin properties

In reply to Sean Anderson
Quoted 7 lines · Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This is based on Geert's analysis of the schematic [1].

[1] https://lore.kernel.org/linux-arm-kernel/CAMuHMdUmf=BYrVWGDp4kjLGK=66HSMJbHuMvne-xGLkTYnGv2g@mail.gmail.com/

i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Reviewed-by on v1 3/3
#6 lore raw

Re: [PATCH 3/3] arm64: dts: renesas: beacon: Add SD/OE pin properties

In reply to Sean Anderson
Quoted 8 lines · Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This matches the register configuration reported by Adam [1] as well as his analysis of the schematic.

[1] https://lore.kernel.org/linux-arm-kernel/CAHCN7x+tcvih1-kmUs8tVLCAk0Gnj11t0yEZLPWk3UBNyad7Jg@mail.gmail.com/

i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds