[PATCH 6/9] arm64: dts: amlogic: khadas-vim4: enable the USB ports
From: Lucas Tanure
Date: Sun Nov 29 2026 - 04:28:34 EST
None of the USB ports of the Khadas VIM4 work. The USB controllers are
not enabled on this board, and the switch that feeds 5V to the two
type-A sockets is never turned on, so a plugged device gets no power.
The type-A sockets are on usb0 (USB 2 PHY 0), behind an on-board hub,
and can only be host. The USB-C port is usb1 (USB 2 PHY 1). It can also
be a device, which is not supported yet. The board takes its power from
that port and does not supply 5V on it, so a device there needs a
powered hub.
Signed-off-by: Lucas Tanure <tanure@xxxxxxxxx>
---
.../dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
index 91f81f7949bf..31868a1b4d4f 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
@@ -475,6 +475,20 @@ &uart_a {
clock-names = "xtal", "pclk", "baud";
};
+&usb0 {
+ dr_mode = "host";
+ status = "okay";
+};
+
+&usb1 {
+ dr_mode = "host";
+ status = "okay";
+};
+
+&usb2_phy0 {
+ phy-supply = <&vcc5v0_usb>;
+};
+
&vpu_thermal {
trips {
vpu_active: vpu-active {
--
2.56.1