mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 17:08:52 +09:00
![Kever Yang](/assets/img/avatar_default.png)
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>
74 lines
1.3 KiB
Plaintext
74 lines
1.3 KiB
Plaintext
/*
|
|
* (C) Copyright 2015 Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3036.dtsi"
|
|
|
|
/ {
|
|
model = "SDK-RK3036";
|
|
compatible = "sdk,sdk-rk3036", "rockchip,rk3036";
|
|
|
|
chosen {
|
|
stdout-path = &uart2;
|
|
};
|
|
|
|
vcc5v0_otg: vcc5v0-otg-drv {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_otg";
|
|
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;
|
|
};
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
|
|
hym8563: hym8563@51 {
|
|
compatible = "haoyu,hym8563";
|
|
reg = <0x51>;
|
|
#clock-cells = <0>;
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "xin32k";
|
|
};
|
|
};
|
|
|
|
&usb_host {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_otg {
|
|
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>;
|
|
};
|
|
};
|
|
};
|