Skip to contentSkip to conversation

arm: dts: mt7623: add otg nodes for bpi-r2

PATCH Superseded Frank Wunderlich 1 participant 1 message Aug 30, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: mt7623: add otg nodes for bpi-r2

From: Frank Wunderlich <[email protected]>

Add OTG-Nodes for BananaPi-R2

---
patch is based on

"arm: dts: mt7623: add musb device nodes"

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

---
 arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +25 -0
index 8d22aeec91e1..729bc055ffcd 100644
@@ -374,7 +374,14 @@ adie {
 				bias-disable;
 		};
 	};
+
+	musb_pins: musb {
+		pins-musb {
+			pinmux = <MT7623_PIN_237_EXT_SDIO2_FUNC_DRV_VBUS>;
+		};
+	};
 };
+
 &consys {
 	mediatek,pwrap-regmap = <&pwrap>;
 	pinctrl-names = "default";
@@ -462,3 +469,21 @@ &u3phy1 {
 &u3phy2 {
 	status = "okay";
 };
+
+&usb0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&musb_pins>;
+	status = "okay";
+	usb-role-switch;
+
+	connector {
+		compatible = "gpio-usb-b-connector", "usb-b-connector";
+		type = "micro";
+		id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>;
+	};
+};
+
+&u2phy1 {
+	status = "okay";
+};
+
Signature · 1 line
2.25.1