ARM: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4 86/250086/2
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 18 Dec 2020 10:32:32 +0000 (11:32 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 21 Dec 2020 00:42:03 +0000 (00:42 +0000)
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.

Suggested-by: Neil Armstrong <narmstrong@baylibre.com>
Change-Id: Id91d0c5e354ed58fcba3b2e8a5ebe7f2953f2142
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi

index 2a8f0545b1a3d1cd5704b3b782e3c6ae54de963d..55ae74be80dcf35abdd1f0d1eb43aafb99c6d5f8 100644 (file)
@@ -11,3 +11,7 @@
        snps,reset-delays-us = <0 10000 1000000>;
        snps,reset-active-low;
 };
+
+&tflash_vdd {
+       gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>;
+};