diff mbox series

[v1,3/3] arm: dts: Enable support for USB on XEA (imx28) board

Message ID 20211222124904.2475-3-lukma@denx.de
State Changes Requested
Delegated to: Tom Rini
Headers show
Series [v1,1/3] arm: xea: Modify board code to generate single binary u-boot | expand

Commit Message

Lukasz Majewski Dec. 22, 2021, 12:49 p.m. UTC
This change enables the support for USB with DM on the XEA (imx28)
board.

Signed-off-by: Lukasz Majewski <lukma@denx.de>

---

 arch/arm/dts/imx28-xea.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts
index de049042f83..c97869e5225 100644
--- a/arch/arm/dts/imx28-xea.dts
+++ b/arch/arm/dts/imx28-xea.dts
@@ -41,6 +41,15 @@ 
 		enable-active-high;
 		regulator-boot-on;
 	};
+
+	reg_usb_5v: regulator-usb-5v {
+		compatible = "regulator-fixed";
+		regulator-name = "usb_vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
 };
 
 &mac0 {
@@ -110,3 +119,12 @@ 
 		};
 	};
 };
+
+&usb0 {
+	vbus-supply = <&reg_usb_5v>;
+	status = "okay";
+};
+
+&usbphy0 {
+	status = "okay";
+};