]> git.sur5r.net Git - u-boot/commitdiff
rockchip: dts: rk3328: add fixed regulator node for xhci
authorMeng Dongyang <daniel.meng@rock-chips.com>
Wed, 28 Jun 2017 11:22:41 +0000 (19:22 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 11 Jul 2017 10:13:48 +0000 (12:13 +0200)
The driver changes gpio to fixed regulator to control vbus, so add
fixed regulator node in DTS for xhci driver.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk3328-evb.dts

index b807bc5228dd25bff0ff681ea14236aec5cb12fa..4cf6d2e1e9a22879fd800a78b2d8de45e446d6ef 100644 (file)
        chosen {
                stdout-path = &uart2;
        };
+
+       vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               regulator-name = "vcc5v0_host_xhci";
+               gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+       };
 };
 
 &uart2 {
@@ -53,6 +62,6 @@
 };
 
 &usb_host0_xhci {
-       rockchip,vbus-gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+       vbus-supply = <&vcc5v0_host_xhci>;
        status = "okay";
 };