Skip to contentSkip to conversation

rockchip: dts: rk3328: support and enable dwc2 controller

PATCH Superseded Meng Dongyang 2 participants 2 messages May 17, 2017 – May 22, 2017 Arm (32-bit)

v1 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH 8/8 rockchip: dts: rk3328: support and enable dwc2 controller

---
 arch/arm/dts/rk3328-evb.dts | 5 +++++
 arch/arm/dts/rk3328.dtsi    | 9 +++++++++
 2 files changed, 14 insertions(+)
arch/arm/dts/rk3328-evb.dts +5 -0
index b807bc5..aeaa5e7 100644
@@ -52,6 +52,11 @@
 	status = "okay";
 };
 
+&usb20_otg {
+	vbus-gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
+
 &usb_host0_xhci {
 	rockchip,vbus-gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
 	status = "okay";
arch/arm/dts/rk3328.dtsi +9 -0
index f18cfc2..1d81dad 100644
@@ -460,6 +460,15 @@
 		status = "disabled";
 	};
 
+	usb20_otg: usb at ff580000 {
+		compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
+			     "snps,dwc2";
+		reg = <0x0 0xff580000 0x0 0x40000>;
+		interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
+		dr_mode = "otg";
+		status = "disabled";
+	};
+
 	sdmmc_ext: rksdmmc at ff5f0000 {
 		compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
 		reg = <0x0 0xff5f0000 0x0 0x4000>;
Signature · 1 line
1.9.1