devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: renesas: Add SD/OE pin properties (part B)
@ 2024-09-27 20:13 Sean Anderson
  2024-09-27 20:13 ` [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties Sean Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sean Anderson @ 2024-09-27 20:13 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson, linux-arm-kernel
  Cc: linux-renesas-soc, Geert Uytterhoeven, Rob Herring, devicetree,
	Magnus Damm, linux-kernel, Krzysztof Kozlowski, Conor Dooley,
	Adam Ford, Sean Anderson

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(+)

-- 
2.35.1.1320.gc452695387.dirty


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties
  2024-09-27 20:13 [PATCH 0/3] arm64: dts: renesas: Add SD/OE pin properties (part B) Sean Anderson
@ 2024-09-27 20:13 ` Sean Anderson
  2024-10-07 12:11   ` Geert Uytterhoeven
  2024-09-27 20:13 ` [PATCH 2/3] arm64: dts: renesas: hihope: " Sean Anderson
  2024-09-27 20:13 ` [PATCH 3/3] arm64: dts: renesas: beacon: " Sean Anderson
  2 siblings, 1 reply; 7+ messages in thread
From: Sean Anderson @ 2024-09-27 20:13 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson, linux-arm-kernel
  Cc: linux-renesas-soc, Geert Uytterhoeven, Rob Herring, devicetree,
	Magnus Damm, linux-kernel, Krzysztof Kozlowski, Conor Dooley,
	Adam Ford, 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/

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
---

 arch/arm64/boot/dts/renesas/salvator-x.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/salvator-x.dtsi b/arch/arm64/boot/dts/renesas/salvator-x.dtsi
index ddee50e64632..5920932cbc2f 100644
--- a/arch/arm64/boot/dts/renesas/salvator-x.dtsi
+++ b/arch/arm64/boot/dts/renesas/salvator-x.dtsi
@@ -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>;
 	};
 };
-- 
2.35.1.1320.gc452695387.dirty


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/3] arm64: dts: renesas: hihope: Add SD/OE pin properties
  2024-09-27 20:13 [PATCH 0/3] arm64: dts: renesas: Add SD/OE pin properties (part B) Sean Anderson
  2024-09-27 20:13 ` [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties Sean Anderson
@ 2024-09-27 20:13 ` Sean Anderson
  2024-10-07 12:11   ` Geert Uytterhoeven
  2024-09-27 20:13 ` [PATCH 3/3] arm64: dts: renesas: beacon: " Sean Anderson
  2 siblings, 1 reply; 7+ messages in thread
From: Sean Anderson @ 2024-09-27 20:13 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson, linux-arm-kernel
  Cc: linux-renesas-soc, Geert Uytterhoeven, Rob Herring, devicetree,
	Magnus Damm, linux-kernel, Krzysztof Kozlowski, Conor Dooley,
	Adam Ford, 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/

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
---

 arch/arm64/boot/dts/renesas/hihope-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/hihope-common.dtsi b/arch/arm64/boot/dts/renesas/hihope-common.dtsi
index 83104af2813e..6abe094fc253 100644
--- a/arch/arm64/boot/dts/renesas/hihope-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/hihope-common.dtsi
@@ -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>;
 	};
 };
 
-- 
2.35.1.1320.gc452695387.dirty


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/3] arm64: dts: renesas: beacon: Add SD/OE pin properties
  2024-09-27 20:13 [PATCH 0/3] arm64: dts: renesas: Add SD/OE pin properties (part B) Sean Anderson
  2024-09-27 20:13 ` [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties Sean Anderson
  2024-09-27 20:13 ` [PATCH 2/3] arm64: dts: renesas: hihope: " Sean Anderson
@ 2024-09-27 20:13 ` Sean Anderson
  2024-10-07 12:12   ` Geert Uytterhoeven
  2 siblings, 1 reply; 7+ messages in thread
From: Sean Anderson @ 2024-09-27 20:13 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson, linux-arm-kernel
  Cc: linux-renesas-soc, Geert Uytterhoeven, Rob Herring, devicetree,
	Magnus Damm, linux-kernel, Krzysztof Kozlowski, Conor Dooley,
	Adam Ford, 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/

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
---

 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(+)

diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
index 5a14f116f7a1..a258ba0d6b4f 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
@@ -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>;
diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
index 68b04e56ae56..06ad9db420d6 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
@@ -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>,
-- 
2.35.1.1320.gc452695387.dirty


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties
  2024-09-27 20:13 ` [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties Sean Anderson
@ 2024-10-07 12:11   ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2024-10-07 12:11 UTC (permalink / raw)
  To: Sean Anderson
  Cc: Arnd Bergmann, Olof Johansson, linux-arm-kernel,
	linux-renesas-soc, Rob Herring, devicetree, Magnus Damm,
	linux-kernel, Krzysztof Kozlowski, Conor Dooley, Adam Ford

On Fri, Sep 27, 2024 at 10:13 PM Sean Anderson <sean.anderson@linux.dev> wrote:
> 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/
>
> Signed-off-by: Sean Anderson <sean.anderson@linux.dev>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/3] arm64: dts: renesas: hihope: Add SD/OE pin properties
  2024-09-27 20:13 ` [PATCH 2/3] arm64: dts: renesas: hihope: " Sean Anderson
@ 2024-10-07 12:11   ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2024-10-07 12:11 UTC (permalink / raw)
  To: Sean Anderson
  Cc: Arnd Bergmann, Olof Johansson, linux-arm-kernel,
	linux-renesas-soc, Rob Herring, devicetree, Magnus Damm,
	linux-kernel, Krzysztof Kozlowski, Conor Dooley, Adam Ford

On Fri, Sep 27, 2024 at 10:13 PM Sean Anderson <sean.anderson@linux.dev> wrote:
> 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/
>
> Signed-off-by: Sean Anderson <sean.anderson@linux.dev>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/3] arm64: dts: renesas: beacon: Add SD/OE pin properties
  2024-09-27 20:13 ` [PATCH 3/3] arm64: dts: renesas: beacon: " Sean Anderson
@ 2024-10-07 12:12   ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2024-10-07 12:12 UTC (permalink / raw)
  To: Sean Anderson
  Cc: Arnd Bergmann, Olof Johansson, linux-arm-kernel,
	linux-renesas-soc, Rob Herring, devicetree, Magnus Damm,
	linux-kernel, Krzysztof Kozlowski, Conor Dooley, Adam Ford

On Fri, Sep 27, 2024 at 10:13 PM Sean Anderson <sean.anderson@linux.dev> wrote:
> 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/
>
> Signed-off-by: Sean Anderson <sean.anderson@linux.dev>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-07 12:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 20:13 [PATCH 0/3] arm64: dts: renesas: Add SD/OE pin properties (part B) Sean Anderson
2024-09-27 20:13 ` [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties Sean Anderson
2024-10-07 12:11   ` Geert Uytterhoeven
2024-09-27 20:13 ` [PATCH 2/3] arm64: dts: renesas: hihope: " Sean Anderson
2024-10-07 12:11   ` Geert Uytterhoeven
2024-09-27 20:13 ` [PATCH 3/3] arm64: dts: renesas: beacon: " Sean Anderson
2024-10-07 12:12   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).