提交 81866805 编写于 作者: J Jagan Teki 提交者: 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: NJagan Teki <jagan@amarulasolutions.com>
Reviewed-by: NChen-Yu Tsai <wens@csie.org>
Signed-off-by: NChen-Yu Tsai <wens@csie.org>
上级 61e9e15f
...@@ -86,6 +86,10 @@ ...@@ -86,6 +86,10 @@
}; };
}; };
&ehci0 {
status = "okay";
};
&ehci1 { &ehci1 {
status = "okay"; status = "okay";
}; };
...@@ -155,6 +159,10 @@ ...@@ -155,6 +159,10 @@
status = "okay"; status = "okay";
}; };
&ohci0 {
status = "okay";
};
&ohci1 { &ohci1 {
status = "okay"; status = "okay";
}; };
...@@ -167,6 +175,7 @@ ...@@ -167,6 +175,7 @@
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 */
}; };
}; };
...@@ -254,6 +263,11 @@ ...@@ -254,6 +263,11 @@
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>;
...@@ -294,6 +308,13 @@ ...@@ -294,6 +308,13 @@
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>;
status = "okay"; status = "okay";
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册