mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 06:12:58 +00:00
062baa2566
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>
27 lines
649 B
Text
27 lines
649 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd
|
|
*/
|
|
|
|
#include "rk3328-u-boot.dtsi"
|
|
#include "rk3328-sdram-lpddr3-1600.dtsi"
|
|
/ {
|
|
chosen {
|
|
u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
|
|
};
|
|
};
|
|
|
|
&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;
|
|
};
|