Skip to content

Commit 14ff5d8

Browse files
smaeulwens
authored andcommitted
arm64: dts: allwinner: a64: Orange Pi Win: Enable USB OTG socket
The Orange Pi Win has a micro USB-B socket, connected to the SoC's USB-OTG port. Its power is supplied by the AXP PMIC, and the ID pin is connected to GPIO PH9. It can serve both as a host or a client port. Add the respective DT nodes to enable it. Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> [wens@csie.org: enable paired EHCI/OHCI device nodes and regulator supply] Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent 3131cfb commit 14ff5d8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
};
7171
};
7272

73+
&ehci0 {
74+
status = "okay";
75+
};
76+
7377
&ehci1 {
7478
status = "okay";
7579
};
@@ -84,6 +88,10 @@
8488
status = "okay";
8589
};
8690

91+
&ohci0 {
92+
status = "okay";
93+
};
94+
8795
&ohci1 {
8896
status = "okay";
8997
};
@@ -176,6 +184,11 @@
176184
regulator-name = "vcc-wifi-io";
177185
};
178186

187+
&reg_drivevbus {
188+
regulator-name = "usb0-vbus";
189+
status = "okay";
190+
};
191+
179192
&reg_eldo1 {
180193
regulator-min-microvolt = <1800000>;
181194
regulator-max-microvolt = <1800000>;
@@ -214,8 +227,14 @@
214227
status = "okay";
215228
};
216229

230+
&usb_otg {
231+
dr_mode = "otg";
232+
status = "okay";
233+
};
234+
217235
&usbphy {
236+
usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
237+
usb0_vbus-supply = <&reg_drivevbus>;
218238
usb1_vbus-supply = <&reg_usb1_vbus>;
219239
status = "okay";
220240
};
221-

0 commit comments

Comments
 (0)