rockchip: dts: rock64: Fix XHCI usage
authorChen-Yu Tsai <wens@csie.org>
Mon, 27 Apr 2020 06:52:54 +0000 (14:52 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 1 May 2020 10:32:56 +0000 (18:32 +0800)
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>
arch/arm/dts/rk3328-rock64-u-boot.dtsi

index e5946d2d2dc7c487077331f21380bdc54127139f..8318bf4e6030182e7d2c2f8ae39f62ee428d745f 100644 (file)
 };
 
 &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;
+};