Skip to content

Commit 03bd268

Browse files
E ShattowConchuOD
authored andcommitted
riscv: dts: starfive: jh7110-pine64-star64: enable usb0 host function
Pine64 Star64 board routes all four USB-A ports to USB0 on the SoC. Set JH7110 on-chip USB host mode and vbus pin assignment accordingly. Signed-off-by: E Shattow <e@freeshell.de> Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent 40384c8 commit 03bd268

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,23 @@
8080
status = "okay";
8181
};
8282

83+
&sysgpio {
84+
usb0_pins: usb0-0 {
85+
vbus-pins {
86+
pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
87+
GPOEN_ENABLE,
88+
GPI_NONE)>;
89+
bias-disable;
90+
input-disable;
91+
input-schmitt-disable;
92+
slew-rate = <0>;
93+
};
94+
};
95+
};
96+
8397
&usb0 {
84-
dr_mode = "peripheral";
98+
dr_mode = "host";
99+
pinctrl-names = "default";
100+
pinctrl-0 = <&usb0_pins>;
85101
status = "okay";
86102
};

0 commit comments

Comments
 (0)