The Genio 510 and 700 EVKs share the USB1 controller, onboard hub and USB-C PD connector wiring. Use that connector as a fixed host in U-Boot and connect the xHCI controller to the GPIO-controlled VBUS regulator. The shared device tree assigns this regulator to the Type-C controller, whereas the U-Boot host path needs to enable it directly.
Keep the USB0 download connector and the USB2 M.2/header controller inactive in this host-only configuration. Their OTG descriptions would otherwise also select host mode when USB_MTU3_HOST is enabled. Put these choices in the shared U-Boot-specific device tree so both boards use the same settings and the OS retains its existing connector and role-switch descriptions. Signed-off-by: Carlo Caione <[email protected]> --- arch/arm/dts/mt8390-genio-common-u-boot.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/mt8390-genio-common-u-boot.dtsi b/arch/arm/dts/mt8390-genio-common-u-boot.dtsi index 6e84dfcc6f5..1aad2514b8c 100644 --- a/arch/arm/dts/mt8390-genio-common-u-boot.dtsi +++ b/arch/arm/dts/mt8390-genio-common-u-boot.dtsi @@ -85,3 +85,20 @@ bootph-pre-ram; }; }; + +/* Only use USB-C PD as a host; leave the other OTG controllers inactive. */ +&ssusb0 { + status = "disabled"; +}; + +&ssusb1 { + dr_mode = "host"; +}; + +&ssusb2 { + status = "disabled"; +}; + +&xhci1 { + vbus-supply = <&usb_p1_vbus>; +}; -- 2.56.0
