Commit 81866805 authored by Jagan Teki's avatar Jagan Teki Committed by Chen-Yu Tsai

arm64: dts: allwinner: a64: bananapi-m64: add usb otg

Add usb otg support for bananapi-m64 board,
- USB-ID connected with PH9
- USB-DRVVBUS controlled by N_VBUSEN pin from PMIC
Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 61e9e15f
......@@ -86,6 +86,10 @@ wifi_pwrseq: wifi_pwrseq {
};
};
&ehci0 {
status = "okay";
};
&ehci1 {
status = "okay";
};
......@@ -155,6 +159,10 @@ &mmc2 {
status = "okay";
};
&ohci0 {
status = "okay";
};
&ohci1 {
status = "okay";
};
......@@ -167,6 +175,7 @@ axp803: pmic@3a3 {
reg = <0x3a3>;
interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
};
};
......@@ -254,6 +263,11 @@ &reg_dldo4 {
regulator-name = "vcc-wifi-io";
};
&reg_drivevbus {
regulator-name = "usb0-vbus";
status = "okay";
};
&reg_eldo1 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
......@@ -294,6 +308,13 @@ &uart1 {
status = "okay";
};
&usb_otg {
dr_mode = "otg";
status = "okay";
};
&usbphy {
usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus-supply = <&reg_drivevbus>;
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