Skip to contentSkip to conversation

arm64: dts: renesas: Add SD/OE pin properties

PATCH In review Sean Anderson 3 participants 12 messages Sep 26, 2024 – Oct 7, 2024

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

cover arm64: dts: renesas: Add SD/OE pin properties

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.

I have CC'd some people who appear to have access to the following boards which use the versaclock5:

- Salvator-X
- HiHope RZ/G2[MN] Main Board
- Beacon Embedded Works RZ/G2N Development Kit

as I could not find schematics for these boards. You can help me out by (pick one):

- Run the following command and send me the output:

    $ grep 10: /sys/kernel/debug/regmap/*-006a/registers

- Measure the voltage on the SD/OE pin on a functioning board.
- Inspect (or send me) the schematic to determine the state of the SD/OE pin during normal operation.

My suspicion is that all of these boards use the same configuration (SD/OE pin tied high) owing to their common design heritage. Thanks in advance.

Sean Anderson (2):
arm64: dts: renesas: salvator-xs: Add SD/OE pin properties
arm64: dts: renesas: ulcb: Add SD/OE pin properties

 arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++
 arch/arm64/boot/dts/renesas/ulcb.dtsi        | 2 ++
 2 files changed, 4 insertions(+)
Signature · 1 line
2.35.1.1320.gc452695387.dirty
#1 lore raw

PATCH 1/2 arm64: dts: renesas: salvator-xs: 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 my inspection of the schematic (which shows the SD/OE pin permanently tied high).

[1] https://lore.kernel.org/linux-clk/CAMuHMdW9LMuQLuPEF-Fcs1E6Q7dDzY17VZqu4awKDj5WSTRt=A@mail.gmail.com/

---

 arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/salvator-xs.dtsi +2 -0
index 08b925624e12..1d18dedb1ff0 100644
@@ -25,6 +25,8 @@ versaclock6: 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
#4 lore raw

PATCH 2/2 arm64: dts: renesas: ulcb: 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 configuration is based on inspection of the schematic (which shows the SD/OE pin permanently tied high).

---

 arch/arm64/boot/dts/renesas/ulcb.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/ulcb.dtsi +2 -0
index a2f66f916048..2a2cd788ffec 100644
@@ -234,6 +234,8 @@ 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
#7 lore raw
In reply to Sean Anderson
Quoted 19 lines · 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.

I have CC'd some people who appear to have access to the following boards which use the versaclock5:

- Salvator-X
- HiHope RZ/G2[MN] Main Board
- Beacon Embedded Works RZ/G2N Development Kit

as I could not find schematics for these boards. You can help me out by (pick one):

- Run the following command and send me the output:

    $ grep 10: /sys/kernel/debug/regmap/*-006a/registers
Quoted 7 lines

- Measure the voltage on the SD/OE pin on a functioning board.
- Inspect (or send me) the schematic to determine the state of the SD/OE pin during normal operation.

My suspicion is that all of these boards use the same configuration (SD/OE pin tied high) owing to their common design heritage. Thanks in advance.

+CC the people I meant to CC in the first place

#8 lore raw

Hi Sean,

Quoted 13 lines · Sean Anderson
Quoted 12 lines · 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.

I have CC'd some people who appear to have access to the following boards which use the versaclock5:

- Salvator-X
- HiHope RZ/G2[MN] Main Board
- Beacon Embedded Works RZ/G2N Development Kit

Quoted 6 lines
Quoted 6 lines

as I could not find schematics for these boards. You can help me out by (pick one):

- Run the following command and send me the output:

    $ grep 10: /sys/kernel/debug/regmap/*-006a/registers

On Salvator-X (5p49v5923) and ULCB (5p49v5925): 82 On Salvator-XS (5p49v6901): 8a

Quoted 6 lines
Quoted 6 lines

- Inspect (or send me) the schematic to determine the state of the SD/OE pin during normal operation.

My suspicion is that all of these boards use the same configuration (SD/OE pin tied high) owing to their common design heritage. Thanks in advance.

According to the schematics, the SD/OE pin is indeed strapped high on all of the Salvator-X(S), ULCB, HiHope, and Renesom base and SoM boards.

Gr{oetje,eeting}s,

Geert

--
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 Tested-by on v1 1/2
#2 lore raw

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

In reply to Sean Anderson

Hi Sean,

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 my inspection of the schematic (which shows the SD/OE pin permanently tied high).

[1] https://lore.kernel.org/linux-clk/CAMuHMdW9LMuQLuPEF-Fcs1E6Q7dDzY17VZqu4awKDj5WSTRt=A@mail.gmail.com/

Thanks for your patch!

There is no change in the output of

    grep 10: /sys/kernel/debug/regmap/*-006a/registers

before/after this patch, so

BTW, I applied the same patch to salvator-x.dtsi, and that seems to be fine, too.

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 Tested-by on v1 2/2
#5 lore raw

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

In reply to Sean Anderson

Hi Sean,

Quoted 6 lines · Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This configuration is based on inspection of the schematic (which shows the SD/OE pin permanently tied high).

There is no change in the output of

    grep 10: /sys/kernel/debug/regmap/*-006a/registers

before/after this patch, so

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
#9 lore raw
In reply to Sean Anderson
Quoted 14 lines · Sean Anderson
Quoted 12 lines · 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.

I have CC'd some people who appear to have access to the following boards which use the versaclock5:

- Salvator-X
- HiHope RZ/G2[MN] Main Board
- Beacon Embedded Works RZ/G2N Development Kit

Quoted 6 lines
Quoted 6 lines

as I could not find schematics for these boards. You can help me out by (pick one):

- Run the following command and send me the output:

    $ grep 10: /sys/kernel/debug/regmap/*-006a/registers

Without any of the patches from this series, for the Beacon RZ/G2 Boards:

grep 10: /sys/kernel/debug/regmap/*-006a/registers /sys/kernel/debug/regmap/2-006a/registers:10: a0 /sys/kernel/debug/regmap/4-006a/registers:10: a0

Quoted 4 lines
Quoted 4 lines

- Measure the voltage on the SD/OE pin on a functioning board.
- Inspect (or send me) the schematic to determine the state of the SD/OE pin during normal operation.

The SD/OE pins on the Beacon boards are not tied high by default. They have an optional pull-up resistor, but it is not populated by default.

adam

Quoted 6 lines
Quoted 4 lines

My suspicion is that all of these boards use the same configuration (SD/OE pin tied high) owing to their common design heritage. Thanks in advance.

+CC the people I meant to CC in the first place

#10 lore raw

Hi Adam,

Quoted 7 lines · Adam Ford
Quoted 2 lines · Sean Anderson
Quoted 2 lines

- Inspect (or send me) the schematic to determine the state of the SD/OE pin during normal operation.

The SD/OE pins on the Beacon boards are not tied high by default. They have an optional pull-up resistor, but it is not populated by default.

Whoops, this "np" suffix is really tiny! I had completely missed it :-(

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
#11 lore raw
Quoted 5 lines · Geert Uytterhoeven

Hi Adam,

Quoted 1 line · Adam Ford

On Thu, Sep 26, 2024 at 1:24 PM Sean Anderson <[email protected]> wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

- Inspect (or send me) the schematic to determine the state of the SD/OE pin during normal operation.

The SD/OE pins on the Beacon boards are not tied high by default. They have an optional pull-up resistor, but it is not populated by default.

Whoops, this "np" suffix is really tiny! I had completely missed it :-(

I have worked at Beacon/Logic PD for 10 years and I still miss the 'np' at times. It's done that way, so when the bill-of-material is generated from the schematic, the system throws away anything with an 'np' suffix, but it makes it really easy to enable it and know what the part should be.

adam

Quoted 11 lines

Gr{oetje,eeting}s,

Geert

--
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

#3 lore raw

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

In reply to Geert Uytterhoeven
Quoted 16 lines · Geert Uytterhoeven
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 my inspection of the schematic (which shows the SD/OE pin permanently tied high).

[1] https://lore.kernel.org/linux-clk/CAMuHMdW9LMuQLuPEF-Fcs1E6Q7dDzY17VZqu4awKDj5WSTRt=A@mail.gmail.com/

Thanks for your patch!

There is no change in the output of

Quoted 7 lines
    grep 10: /sys/kernel/debug/regmap/*-006a/registers

before/after this patch, so

BTW, I applied the same patch to salvator-x.dtsi, and that seems to be fine, too.

Thanks, 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
#6 lore raw

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

In reply to Geert Uytterhoeven
Quoted 8 lines · Geert Uytterhoeven
Quoted 6 lines · Sean Anderson

Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This configuration is based on inspection of the schematic (which shows the SD/OE pin permanently tied high).

Quoted 8 lines

There is no change in the output of

    grep 10: /sys/kernel/debug/regmap/*-006a/registers

before/after this patch, so

Thanks, 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