mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
39 lines
1.6 KiB
Diff
39 lines
1.6 KiB
Diff
From e2ea4a7a55108c60d9e90f3fdcb1adb3158a8bb3 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Thu, 26 Jan 2023 16:15:59 +0000
|
|
Subject: [PATCH 033/111] FROMGIT(6.3): arm64: dts: meson: bananapi-m5: switch
|
|
VDDIO_C pin to OPEN_DRAIN
|
|
|
|
For proper warm (re)boot from SD card the BPI-M5 board requires TFLASH_VDD_EN
|
|
and VDDIO_C pins to be switched to high impedance mode. This can be achieved
|
|
using OPEN_DRAIN instead of ACTIVE_HIGH to leave the GPIO pins in input mode
|
|
and retain high state (pin has the pull-up).
|
|
|
|
This change is inspired by meson-sm1-odroid.dtsi where OPEN_DRAIN has been
|
|
used to resolve similar problems with the Odroid C4 board (TF_IO in the C4
|
|
dts is the equivalent regulator).
|
|
|
|
Fixes 976e920183e4 ("arm64: dts: meson-sm1: add Banana PI BPI-M5 board dts")
|
|
Suggested-by: Neil Armstrong <neil.armstrong@linaro.org>
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts
|
|
index cadba194b149..e8a23861013f 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts
|
|
@@ -123,7 +123,7 @@ vddio_c: regulator-vddio_c {
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
- enable-gpio = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>;
|
|
+ enable-gpio = <&gpio_ao GPIOE_2 GPIO_OPEN_DRAIN>;
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
|
|
--
|
|
2.34.1
|
|
|