]> git.sur5r.net Git - u-boot/commitdiff
rockchip: dts: rk3399-puma: update usbhub_enable regulator
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 6 Nov 2017 22:02:52 +0000 (23:02 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 7 Nov 2017 08:16:57 +0000 (09:16 +0100)
To correctly model the usbhub_enable regulator for U-Boot, we need
to change the settings to:
 * the GPIO polarity is GPIO_ACTIVE_LOW
 * should be set to inactive (enable-active-low) when boot-on settings
   are applied
 * it can be changed at runtime (i.e. remove the always-on)

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
arch/arm/dts/rk3399-puma.dtsi

index c4da26956a4265b1411bd904898969d100f70671..c517fd3627d1864f17dd0215a80fa9aecb2f75b8 100644 (file)
@@ -94,8 +94,7 @@
                compatible = "regulator-fixed";
                regulator-name = "usbhub_enable";
                enable-active-low;
-               gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
-               regulator-always-on;
+               gpio = <&gpio4 3 GPIO_ACTIVE_LOW>;
                regulator-boot-on;
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;