From: Eddie Cai Date: Tue, 7 Mar 2017 04:46:00 +0000 (+0800) Subject: rockchip: dts: tinker: add usb host power supply node X-Git-Tag: v2017.05-rc1~55^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e9eb0cb20a12f4ef55e229555efa6e726274dfdc;p=u-boot rockchip: dts: tinker: add usb host power supply node Tinker board have a usb host. add dts node to provide power supply. Signed-off-by: Eddie Cai Reviewed-by: Simon Glass --- diff --git a/arch/arm/dts/rk3288-tinker.dts b/arch/arm/dts/rk3288-tinker.dts index c0550970ea..22881cb785 100644 --- a/arch/arm/dts/rk3288-tinker.dts +++ b/arch/arm/dts/rk3288-tinker.dts @@ -30,6 +30,12 @@ &pinctrl { u-boot,dm-pre-reloc; + + usb { + host_vbus_drv: host-vbus-drv { + rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pwm1 { @@ -41,6 +47,11 @@ reg-shift = <2>; }; +&usb_host1 { + vbus-supply = <&vcc5v0_host>; + status = "okay"; +}; + &sdmmc { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/rk3288-tinker.dtsi b/arch/arm/dts/rk3288-tinker.dtsi index 527493c9a3..a752458663 100644 --- a/arch/arm/dts/rk3288-tinker.dtsi +++ b/arch/arm/dts/rk3288-tinker.dtsi @@ -110,6 +110,18 @@ 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 {