Commit aa9cbe94 authored by Andre Przywara's avatar Andre Przywara Committed by Chen-Yu Tsai

arm64: dts: allwinner: a64: Olinuxino: enable USB

The Olinuxino has two USB sockets:
USB0 is connected to a micro B socket. As it has the ID pin wired and
the VBUS line connected to the PMIC, we describe it as a proper OTG socket,
which switches between host and device automatically.
USB1 is connected to a normal USB A socket. PG9 enables the power line,
so add the required regulator as well.
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 21eac6f3
...@@ -59,12 +59,31 @@ chosen { ...@@ -59,12 +59,31 @@ chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
reg_usb1_vbus: usb1-vbus {
compatible = "regulator-fixed";
regulator-name = "usb1-vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-boot-on;
enable-active-high;
gpio = <&pio 6 9 GPIO_ACTIVE_HIGH>; /* PG9 */
status = "okay";
};
wifi_pwrseq: wifi_pwrseq { wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
}; };
}; };
&ehci0 {
status = "okay";
};
&ehci1 {
status = "okay";
};
&emac { &emac {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>; pinctrl-0 = <&rgmii_pins>;
...@@ -109,6 +128,14 @@ rtl8723bs: wifi@1 { ...@@ -109,6 +128,14 @@ rtl8723bs: wifi@1 {
}; };
}; };
&ohci0 {
status = "okay";
};
&ohci1 {
status = "okay";
};
&r_rsb { &r_rsb {
status = "okay"; status = "okay";
...@@ -117,6 +144,7 @@ axp803: pmic@3a3 { ...@@ -117,6 +144,7 @@ axp803: pmic@3a3 {
reg = <0x3a3>; reg = <0x3a3>;
interrupt-parent = <&r_intc>; interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
}; };
}; };
...@@ -201,6 +229,11 @@ &reg_dldo4 { ...@@ -201,6 +229,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>;
...@@ -244,3 +277,15 @@ &uart0 { ...@@ -244,3 +277,15 @@ &uart0 {
pinctrl-0 = <&uart0_pins_a>; pinctrl-0 = <&uart0_pins_a>;
status = "okay"; status = "okay";
}; };
&usb_otg {
dr_mode = "otg";
status = "okay";
};
&usbphy {
status = "okay";
usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus-supply = <&reg_drivevbus>;
usb1_vbus-supply = <&reg_usb1_vbus>;
};
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