summaryrefslogtreecommitdiffstats
path: root/arch/arm/dts
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2020-04-27 14:52:54 +0800
committerKever Yang <kever.yang@rock-chips.com>2020-05-01 18:32:56 +0800
commit062baa25661ed30af10e16fe9d147bb2300b15bd (patch)
tree5e3e09b0193362151053b6840edc3b82ab823128 /arch/arm/dts
parentbab972948e152e468fa5ab34764769fc4cddcaab (diff)
downloadu-boot-062baa25661ed30af10e16fe9d147bb2300b15bd.tar.gz
u-boot-062baa25661ed30af10e16fe9d147bb2300b15bd.tar.xz
u-boot-062baa25661ed30af10e16fe9d147bb2300b15bd.zip
rockchip: dts: rock64: Fix XHCI usage
If the VBUS regulator is always-on, XHCI will fail to detect USB 3.0 devices; USB 2.0 devices will work however. Make the VBUS regulator controllable and tie it to only the XHCI. This makes all three USB ports usable. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/dts')
-rw-r--r--arch/arm/dts/rk3328-rock64-u-boot.dtsi11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/dts/rk3328-rock64-u-boot.dtsi b/arch/arm/dts/rk3328-rock64-u-boot.dtsi
index e5946d2d2d..8318bf4e60 100644
--- a/arch/arm/dts/rk3328-rock64-u-boot.dtsi
+++ b/arch/arm/dts/rk3328-rock64-u-boot.dtsi
@@ -12,5 +12,16 @@
};
&usb_host0_xhci {
+ vbus-supply = <&vcc_host_5v>;
status = "okay";
};
+
+/*
+ * This makes XHCI responsible for toggling VBUS. This is needed to work
+ * around an issue where either XHCI only works with USB 2.0 or OTG doesn't
+ * work, depending on how VBUS is configured. Having USB 3.0 seems better.
+ */
+&vcc_host_5v {
+ /delete-property/ regulator-always-on;
+ /delete-property/ regulator-boot-on;
+};