mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-08-15 02:08:14 +00:00
dts: arm: rk3036: add usb vbus node
add fix regulator node for usb vbus power control. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c70956052a
commit
ae804cf4af
1 changed files with 33 additions and 4 deletions
|
@ -16,10 +16,25 @@
|
||||||
stdout-path = &uart2;
|
stdout-path = &uart2;
|
||||||
};
|
};
|
||||||
|
|
||||||
usb_control {
|
vcc5v0_otg: vcc5v0-otg-drv {
|
||||||
compatible = "rockchip,rk3036-usb-control";
|
compatible = "regulator-fixed";
|
||||||
host_drv_gpio = <&gpio2 23 GPIO_ACTIVE_LOW>;
|
regulator-name = "vcc5v0_otg";
|
||||||
otg_drv_gpio = <&gpio0 26 GPIO_ACTIVE_LOW>;
|
gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&otg_vbus_drv>;
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vcc5v0_host: vcc5v0-host-drv {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "vcc5v0_host";
|
||||||
|
gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&host_vbus_drv>;
|
||||||
|
regulator-min-microvolt = <5000000>;
|
||||||
|
regulator-max-microvolt = <5000000>;
|
||||||
|
regulator-always-on;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,3 +57,17 @@
|
||||||
&usb_otg {
|
&usb_otg {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
usb_otg {
|
||||||
|
otg_vbus_drv: host-vbus-drv {
|
||||||
|
rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
usb_host {
|
||||||
|
host_vbus_drv: host-vbus-drv {
|
||||||
|
rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue