OSDN Git Service

arm64: dts: meson-sm1-odroid: add 5v regulator gpio
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 7 Jun 2021 06:54:31 +0000 (08:54 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 14 Jun 2021 07:57:45 +0000 (09:57 +0200)
As described in the Odroid-C4 & Odroid-HC4 schematics, the 5V regulator is controlled
by GPIOH_8 and in Open Drain since this GPIO doesn't support Push-Pull.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210607065435.577334-4-narmstrong@baylibre.com
arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi

index e643591..fd0ad85 100644 (file)
@@ -83,6 +83,8 @@
                regulator-max-microvolt = <5000000>;
                regulator-always-on;
                vin-supply = <&main_12v>;
+               gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
+               enable-active-high;
        };
 
        vcc_1v8: regulator-vcc_1v8 {