arm64: dts: renesas: Add SD/OE pin properties
Subsystems (2)
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
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).
---
arch/arm64/boot/dts/renesas/salvator-xs.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/salvator-xs.dtsi +2 -0
@@ -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
PATCH 2/2 arm64: dts: renesas: ulcb: Add SD/OE pin properties
In reply to Sean AndersonAdd 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
@@ -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
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 Kitas 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
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
Re: [PATCH 1/2] arm64: dts: renesas: salvator-xs: Add SD/OE pin properties
In reply to Sean AndersonHi 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).
Signed-off-by Sean Anderson <[email protected]>
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
Re: [PATCH 2/2] arm64: dts: renesas: ulcb: Add SD/OE pin properties
In reply to Sean AndersonHi 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).
Signed-off-by Sean Anderson <[email protected]>
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
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
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
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
Re: [PATCH 1/2] arm64: dts: renesas: salvator-xs: Add SD/OE pin properties
In reply to Geert UytterhoevenQuoted 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).
Signed-off-by Sean Anderson <[email protected]>Thanks for your patch!
Reviewed-by Geert Uytterhoeven <[email protected]>There is no change in the output of
Quoted 7 lines
grep 10: /sys/kernel/debug/regmap/*-006a/registersbefore/after this patch, so
Tested-by Geert Uytterhoeven <[email protected]>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
Re: [PATCH 2/2] arm64: dts: renesas: ulcb: Add SD/OE pin properties
In reply to Geert UytterhoevenQuoted 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).
Signed-off-by Sean Anderson <[email protected]>
Quoted 8 lines
Reviewed-by Geert Uytterhoeven <[email protected]>There is no change in the output of
grep 10: /sys/kernel/debug/regmap/*-006a/registersbefore/after this patch, so
Tested-by Geert Uytterhoeven <[email protected]>
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