arm: dts: Enable support for USB on XEA (imx28) board
authorLukasz Majewski <lukma@denx.de>
Mon, 27 Dec 2021 10:46:41 +0000 (11:46 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 12:38:39 +0000 (13:38 +0100)
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

index 34af6cf..f4b503c 100644 (file)
                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 {
                };
        };
 };
+
+&usb0 {
+       vbus-supply = <&reg_usb_5v>;
+       status = "okay";
+};
+
+&usbphy0 {
+       status = "okay";
+};