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 <[email protected]> Reviewed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent 40384c8 commit 03bd268

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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)