Skip to content

Commit 6c75582

Browse files
codekipperwens
authored andcommitted
ARM: dts: sun8i: h3: Enable USB OTG on the Beelink X2
This STB has a type A socket which acts as OTG. Signed-off-by: Marcus Cooper <codekipper@gmail.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent 77c6511 commit 6c75582

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

arch/arm/boot/dts/sun8i-h3-beelink-x2.dts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
};
101101
};
102102

103+
&ehci0 {
104+
status = "okay";
105+
};
106+
103107
&ehci1 {
104108
status = "okay";
105109
};
@@ -147,10 +151,19 @@
147151
status = "okay";
148152
};
149153

154+
&ohci0 {
155+
status = "okay";
156+
};
157+
150158
&ohci1 {
151159
status = "okay";
152160
};
153161

162+
&reg_usb0_vbus {
163+
gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
164+
status = "okay";
165+
};
166+
154167
&spdif {
155168
pinctrl-names = "default";
156169
pinctrl-0 = <&spdif_tx_pins_a>;
@@ -163,7 +176,14 @@
163176
status = "okay";
164177
};
165178

179+
&usb_otg {
180+
dr_mode = "otg";
181+
status = "okay";
182+
};
183+
166184
&usbphy {
167-
/* USB VBUS is on as long as VCC-IO is on */
185+
/* USB VBUS is always on except for the OTG port */
168186
status = "okay";
187+
usb0_id_det-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA07 */
188+
usb0_vbus-supply = <&reg_usb0_vbus>;
169189
};

0 commit comments

Comments
 (0)