summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
diff options
context:
space:
mode:
authorMarcus Cooper <codekipper@gmail.com>2017-07-23 16:49:49 +0200
committerChen-Yu Tsai <wens@csie.org>2017-08-05 22:06:58 +0800
commit6c75582a85fe30f458ea07cd36eb3bbeb6c82140 (patch)
tree015b0e869eee54ce6aae172b93faecf46633bbe1 /arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
parent77c6511a012970b87a8525607d7bd8573e304f9b (diff)
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>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-h3-beelink-x2.dts')
-rw-r--r--arch/arm/boot/dts/sun8i-h3-beelink-x2.dts22
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
index e7fae65eb5d3..10da56e86ab8 100644
--- a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
@@ -100,6 +100,10 @@
};
};
+&ehci0 {
+ status = "okay";
+};
+
&ehci1 {
status = "okay";
};
@@ -147,10 +151,19 @@
status = "okay";
};
+&ohci0 {
+ status = "okay";
+};
+
&ohci1 {
status = "okay";
};
+&reg_usb0_vbus {
+ gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
+ status = "okay";
+};
+
&spdif {
pinctrl-names = "default";
pinctrl-0 = <&spdif_tx_pins_a>;
@@ -163,7 +176,14 @@
status = "okay";
};
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
+};
+
&usbphy {
- /* USB VBUS is on as long as VCC-IO is on */
+ /* USB VBUS is always on except for the OTG port */
status = "okay";
+ usb0_id_det-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA07 */
+ usb0_vbus-supply = <&reg_usb0_vbus>;
};