ARM: 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): CGME20201218104353eucas1p266e5210f6272fc60b316881e3fb3c210@eucas1p2.samsung.com
PATCH 1/1 ARM: 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.
---
This is a result of the discussion in the "[PATCH/RFC] board: amlogic:
Fix Odroid-C4 SD card reboot issue" thread:
https://lists.denx.de/pipermail/u-boot/2020-December/435295.html
Patch for the upstream Linux DTS has been already submitted:
https://lore.kernel.org/linux-amlogic/20201218102228.16211-1-m.szyprowski at samsung.com/
--- arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi +4 -0
@@ -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>; +};
Signature · 1 line
2.17.1
PATCH 1/1 ARM: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
Quoted 27 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 if theACTIVE_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 <[email protected]>Signed-off-by Marek Szyprowski <[email protected]>---
This is a result of the discussion in the "[PATCH/RFC] board: amlogic:
Fix Odroid-C4 SD card reboot issue" thread:
https://lists.denx.de/pipermail/u-boot/2020-December/435295.htmlPatch for the upstream Linux DTS has been already submitted:
https://lore.kernel.org/linux-amlogic/20201218102228.16211-1-m.szyprowski at samsung.com/--- arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi +0
-0
arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi line 17
Quoted 7 lines
arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi +4
-0@@ -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>; +};
Applying it to u-boot-amlogic, and will send it asap so it's applied for v2020.10
Neil
PATCH 1/1 ARM: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
Quoted 41 lines
From: Neil Armstrong <[email protected]>
Date: Fri, 18 Dec 2020 11:47:02 +0100Quoted 27 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 if theACTIVE_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 <[email protected]>Signed-off-by Marek Szyprowski <[email protected]>---
This is a result of the discussion in the "[PATCH/RFC] board: amlogic:
Fix Odroid-C4 SD card reboot issue" thread:
https://lists.denx.de/pipermail/u-boot/2020-December/435295.htmlPatch for the upstream Linux DTS has been already submitted:
https://lore.kernel.org/linux-amlogic/20201218102228.16211-1-m.szyprowski at samsung.com/--- arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi +0
-0arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi line 17
Quoted 7 lines
arch/arm/dts/meson-sm1-odroid-c4-u-boot.dtsi +4
-0@@ -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>; +};Acked-by Neil Armstrong <[email protected]>
Quoted 1 line
Applying it to u-boot-amlogic, and will send it asap so it's applied for v2020.10
Cool. It works on the HC4 as well.