[PATCH 2/3] dts: bpi-m2u: Enable USB_OTG by default
qianfanguijin at 163.com
qianfanguijin at 163.com
Wed Jun 30 09:38:37 CEST 2021
From: qianfan Zhao <qianfanguijin at 163.com>
bpi-m2u has a hardware usb_otg, let's enable it in dts.
Signed-off-by: qianfan Zhao <qianfanguijin at 163.com>
---
arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts | 5 +++++
arch/arm/dts/sun8i-r40.dtsi | 14 ++++++++++++++
2 files changed, 19 insertions(+)
diff --git a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
index a6a1087a0c..96316f41cb 100644
--- a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
+++ b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
@@ -328,6 +328,11 @@
};
};
+&usb_otg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
&usbphy {
usb1_vbus-supply = <®_vcc5v0>;
usb2_vbus-supply = <®_vcc5v0>;
diff --git a/arch/arm/dts/sun8i-r40.dtsi b/arch/arm/dts/sun8i-r40.dtsi
index d5ad3b9efd..3edc849d39 100644
--- a/arch/arm/dts/sun8i-r40.dtsi
+++ b/arch/arm/dts/sun8i-r40.dtsi
@@ -363,6 +363,20 @@
#size-cells = <0>;
};
+ usb_otg: usb at 1c13000 {
+ compatible = "allwinner,sun8i-h3-musb";
+ reg = <0x01c13000 0x0400>;
+ clocks = <&ccu CLK_BUS_OTG>;
+ resets = <&ccu RST_BUS_OTG>;
+ interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "mc";
+ phys = <&usbphy 0>;
+ phy-names = "usb";
+ extcon = <&usbphy 0>;
+ dr_mode = "otg";
+ status = "disabled";
+ };
+
usbphy: phy at 1c13400 {
compatible = "allwinner,sun8i-r40-usb-phy";
reg = <0x01c13400 0x14>,
--
2.17.1
More information about the U-Boot
mailing list