Skip to contentSkip to conversation

arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4

PATCH In review Marek Szyprowski 2 participants 2 messages Dec 18, 2020 – Dec 19, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20201218102245eucas1p1c0e2cb401d9c5c8bb94b5fb740eaa3a4@eucas1p1.samsung.com

#1 lore raw

PATCH 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 if the ACTIVE_HIGH, what will leave the pin in input to achieve high state (pin has the pull-up) and solve the issue.

Fixes 326e57518b0d ("arm64: dts: meson-sm1: add support for Hardkernel ODROID-C4")

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

---
 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
index cf5a98f0e47c..a712273c905a 100644
@@ -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
reviewer Acked-by on v1 1/1
#2 lore raw

Hi Marek,

thank you for this patch!

Quoted 6 lines · Marek Szyprowski

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

I think this should read "instead of ACTIVE_HIGH"

Quoted 6 lines

ACTIVE_HIGH, what will leave the pin in input to achieve high state (pin has the pull-up) and solve the issue.

Fixes 326e57518b0d ("arm64: dts: meson-sm1: add support for Hardkernel ODROID-C4")
Quoted 3 lines

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

I'm used to datasheets not being up-to-date. but now also the schematics don't seem to match the actual HW? :-(

Best regards,
Martin

_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic