]> git.sur5r.net Git - u-boot/commitdiff
rockchip: dts: tinker: add usb host power supply node
authorEddie Cai <eddie.cai.linux@gmail.com>
Tue, 7 Mar 2017 04:46:00 +0000 (12:46 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Mar 2017 22:03:47 +0000 (16:03 -0600)
Tinker board have a usb host. add dts node to provide power supply.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3288-tinker.dts
arch/arm/dts/rk3288-tinker.dtsi

index c0550970ea70c7d59608f846fc26253547345f34..22881cb7857618842119d96f170304962afe4522 100644 (file)
 
 &pinctrl {
        u-boot,dm-pre-reloc;
+
+       usb {
+               host_vbus_drv: host-vbus-drv {
+                       rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &pwm1 {
        reg-shift = <2>;
 };
 
+&usb_host1 {
+       vbus-supply = <&vcc5v0_host>;
+       status = "okay";
+};
+
 &sdmmc {
        u-boot,dm-pre-reloc;
 };
index 527493c9a36dc4fcf43af21d845b74a7fe1d6f5e..a75245866365be852c97f12795264338ec994129 100644 (file)
                startup-delay-us = <100000>;
                vin-supply = <&vcc_io>;
        };
+
+       vcc5v0_host: usb-host-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&host_vbus_drv>;
+               regulator-name = "vcc5v0_host";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
 };
 
 &cpu0 {