arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): CGME20210122055227eucas1p1a61e2ec3e562ed13a6b8decb5069c180@eucas1p1.samsung.com
PATCH v2 1/1 arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
For the proper reboot Odroid-C4 board requires to switch TFLASH_VDD_EN pin to the high impedance mode, otherwise the board is stuck in the middle of loading early stages of the bootloader from SD card.
This can be achieved by using the OPEN_DRAIN flag instead of the ACTIVE_HIGH, what will leave the pin in input mode to achieve high state (pin has the pull-up) and solve the issue.
---
Here is a discussion on u-boot's mailing list that inspired this patch:
https://lists.denx.de/pipermail/u-boot/2020-December/435295.html
Changelog:
v2:
- fixed typo in the commit message
v1: https://lore.kernel.org/linux-amlogic/[email protected]/
- initial version
--- arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +1 -1
@@ -52,7 +52,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - gpio = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; + gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>; enable-active-high; regulator-always-on; };
Signature · 7 lines
2.17.1 _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic
Quoted 32 lines · Marek Szyprowski
For the proper reboot Odroid-C4 board requires to switch
TFLASH_VDD_ENpin to the high impedance mode, otherwise the board is stuck in the middle of loading early stages of the bootloader from SD card.This can be achieved by using the
OPEN_DRAINflag instead of theACTIVE_HIGH, what will leave the pin in input mode to achieve high state (pin has the pull-up) and solve the issue.Suggested-by Neil Armstrong <[email protected]>Fixes 326e57518b0d ("arm64: dts: meson-sm1: add support for Hardkernel ODROID-C4")Signed-off-by Marek Szyprowski <[email protected]>---
Here is a discussion on u-boot's mailing list that inspired this patch:
https://lists.denx.de/pipermail/u-boot/2020-December/435295.htmlChangelog:
v2:
- fixed typo in the commit messagev1: https://lore.kernel.org/linux-amlogic/[email protected]/
- initial version--- arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +0
-0
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts line 58
Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +1
-1@@ -52,7 +52,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - gpio = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; + gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>; enable-active-high; regulator-always-on; };
Hi Kevin,
The same fix was pushed on u-boot and solves the issue.
Could you take it for fixes ?
Neil
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Quoted 7 lines · Marek Szyprowski
For the proper reboot Odroid-C4 board requires to switch
TFLASH_VDD_ENpin to the high impedance mode, otherwise the board is stuck in the middle of loading early stages of the bootloader from SD card.This can be achieved by using the
OPEN_DRAINflag instead of theACTIVE_HIGH, what will leave the pin in input mode to achieve high state (pin has the pull-up) and solve the issue.
Applied, thanks!
[1/1] arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
commit: c649d91a8ec4dda78bcbd3890156bffb4df2fa16
Best regards,
Signature · 6 lines
Kevin Hilman <[email protected]> _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic