Skip to content

Commit 708d55d

Browse files
E ShattowConchuOD
authored andcommitted
riscv: dts: starfive: jh7110-milkv-mars: enable usb0 host function
Milk-V Mars board routes one of four USB-A ports to USB0 on the SoC rather than to the VL805 USB 3.0 <-> PCIe chip. Set JH7110 on-chip USB host mode and vbus pin assignment accordingly. Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by: E Shattow <e@freeshell.de> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent 03bd268 commit 708d55d

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,23 @@
5353
status = "okay";
5454
};
5555

56+
&sysgpio {
57+
usb0_pins: usb0-0 {
58+
vbus-pins {
59+
pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
60+
GPOEN_ENABLE,
61+
GPI_NONE)>;
62+
bias-disable;
63+
input-disable;
64+
input-schmitt-disable;
65+
slew-rate = <0>;
66+
};
67+
};
68+
};
69+
5670
&usb0 {
57-
dr_mode = "peripheral";
71+
dr_mode = "host";
72+
pinctrl-names = "default";
73+
pinctrl-0 = <&usb0_pins>;
5874
status = "okay";
5975
};

0 commit comments

Comments
 (0)