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: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
This commit is contained in:
Jagan Teki 2018-04-23 12:02:39 +05:30 committed by Chen-Yu Tsai
parent 61e9e15f17
commit 818668055c
1 changed files with 22 additions and 1 deletions

View File

@ -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";
};
&usbphy {
&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";
};