ARM: dts: imx6qdl-udoo: Enable USB host
authorFabio Estevam <festevam@denx.de>
Mon, 1 Apr 2024 02:33:47 +0000 (23:33 -0300)
committerShawn Guo <shawnguo@kernel.org>
Wed, 3 Apr 2024 01:17:27 +0000 (09:17 +0800)
Commit 8f2ca252ee1f ("ARM: dts: imx6qdl-udoo: Disable USB host to
work around boot issues") disabled USB host to avoid boot hang.

Properly describe the USB2514 USB hub to fix this issue.

Tested on a imx6q-udoo board and verified that it boots fine
and USB host functionality works.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6qdl-udoo.dtsi

index 647ba5e623ddfa2aae04339576f2746e63993957..14272b42f9a1aea0031dc33e4667c523e2ebdeda 100644 (file)
                };
        };
 
-       reg_usb_h1_vbus: regulator-usb-h1-vbus {
-               compatible = "regulator-fixed";
-               regulator-name = "usb_h1_vbus";
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-               enable-active-high;
-               startup-delay-us = <2>; /* USB2415 requires a POR of 1 us minimum */
-               gpio = <&gpio7 12 0>;
-       };
-
        reg_panel: regulator-panel {
                compatible = "regulator-fixed";
                regulator-name = "lcd_panel";
 &usbh1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usbh>;
-       vbus-supply = <&reg_usb_h1_vbus>;
-       clocks = <&clks IMX6QDL_CLK_CKO>;
-       status = "disabled";
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       usb-port@1 {
+               compatible = "usb424,2514";
+               reg = <1>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               clocks = <&clks IMX6QDL_CLK_CKO>;
+               reset-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &usbotg {