[PATCH 3/4] dts: bpi-m2u: Enable USB_OTG by default

qianfanguijin at 163.com qianfanguijin at 163.com
Wed Jun 16 04:33:25 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 |  4 ++++
 arch/arm/dts/sun8i-r40.dtsi                  | 13 +++++++++++++
 2 files changed, 17 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..828ddc63ae 100644
--- a/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
+++ b/arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts
@@ -117,6 +117,10 @@
 	status = "okay";
 };
 
+&usb_otg {
+	status = "okay";
+};
+
 &ehci1 {
 	status = "okay";
 };
diff --git a/arch/arm/dts/sun8i-r40.dtsi b/arch/arm/dts/sun8i-r40.dtsi
index d5ad3b9efd..7c7a9cd9f8 100644
--- a/arch/arm/dts/sun8i-r40.dtsi
+++ b/arch/arm/dts/sun8i-r40.dtsi
@@ -363,6 +363,19 @@
 			#size-cells = <0>;
 		};
 
+		usb_otg: usb at 1c13000 {
+			compatible = "allwinner,sun8i-r40-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>;
+			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