Commit d833c770 authored by Ahren's avatar Ahren

Rock960c: fixed usb3.0 OTG port dynamic switching error

Signed-off-by: Ahren's avatarahren <lili@vamrs.com>
parent 74966207
......@@ -268,25 +268,25 @@
green@0 {
label = "rock960:green:user0";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
};
green@1 {
label = "rock960:green:user1";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
};
green@2 {
label = "rock960:green:user2";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>;
};
green@3 {
label = "rock960:green:user3";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
};
......
......@@ -130,6 +130,17 @@
regulator-always-on;
};
vcc_otg_vbus: otg-vbus-regulator {
compatible = "regulator-fixed";
gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&otg_vbus_drv>;
regulator-name = "vcc_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
};
vdd_log: vdd-log {
compatible = "pwm-regulator";
pwms = <&pwm2 0 25000 1>;
......@@ -268,25 +279,25 @@
green@0 {
label = "rock960:green:user0";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
};
green@1 {
label = "rock960:green:user1";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
};
green@2 {
label = "rock960:green:user2";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>;
};
green@3 {
label = "rock960:green:user3";
linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
default-state = "off";
gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
};
......@@ -685,8 +696,8 @@
&u2phy0 {
status = "okay";
otg-vbus-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
u2phy0_otg: otg-port {
vbus-supply = <&vcc_otg_vbus>;
status = "okay";
};
......@@ -982,6 +993,13 @@
};
};
usb{
otg_vbus_drv: otg-vbus-drv {
rockchip,pins =
<1 3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
usb2 {
host_vbus_drv: host-vbus-drv {
rockchip,pins =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment