Commit 14ff5d8f authored by Samuel Holland's avatar Samuel Holland Committed by Chen-Yu Tsai

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: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
[wens@csie.org: enable paired EHCI/OHCI device nodes and regulator supply]
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 3131cfb6
...@@ -70,6 +70,10 @@ reg_usb1_vbus: usb1-vbus { ...@@ -70,6 +70,10 @@ reg_usb1_vbus: usb1-vbus {
}; };
}; };
&ehci0 {
status = "okay";
};
&ehci1 { &ehci1 {
status = "okay"; status = "okay";
}; };
...@@ -84,6 +88,10 @@ &mmc0 { ...@@ -84,6 +88,10 @@ &mmc0 {
status = "okay"; status = "okay";
}; };
&ohci0 {
status = "okay";
};
&ohci1 { &ohci1 {
status = "okay"; status = "okay";
}; };
...@@ -176,6 +184,11 @@ &reg_dldo4 { ...@@ -176,6 +184,11 @@ &reg_dldo4 {
regulator-name = "vcc-wifi-io"; regulator-name = "vcc-wifi-io";
}; };
&reg_drivevbus {
regulator-name = "usb0-vbus";
status = "okay";
};
&reg_eldo1 { &reg_eldo1 {
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
...@@ -214,8 +227,14 @@ &uart0 { ...@@ -214,8 +227,14 @@ &uart0 {
status = "okay"; status = "okay";
}; };
&usb_otg {
dr_mode = "otg";
status = "okay";
};
&usbphy { &usbphy {
usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus-supply = <&reg_drivevbus>;
usb1_vbus-supply = <&reg_usb1_vbus>; usb1_vbus-supply = <&reg_usb1_vbus>;
status = "okay"; status = "okay";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment