ramips: mir3g dts define usb port Vcc volt regulator GPIO
[openwrt/openwrt.git] / target / linux / ramips / dts / MIR3G.dts
index efe98b0e100ee3157e9b93cecf744bfb0caf0f2b..44dfc1796c2251a63a317d156901f0a03f0182ef 100644 (file)
                };
        };
 
-       gpio_export {
-               compatible = "gpio-export";
-               #size-cells = <0>;
-
-               usbpower {
-                       gpio-export,name = "usbpower";
-                       gpio-export,output = <1>;
-                       gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
-               };
+       reg_usb_vbus: reg_usb_vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "usb_vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
        };
+
+};
+
+&xhci {
+       vbus-supply = <&reg_usb_vbus>;
 };
 
 &nand {