ARM: dts: imx6qdl-gw552x: add USB OTG support
authorTim Harvey <tharvey@gateworks.com>
Wed, 29 Apr 2020 15:22:35 +0000 (08:22 -0700)
committerShawn Guo <shawnguo@kernel.org>
Wed, 13 May 2020 08:09:19 +0000 (16:09 +0800)
The GW552x-B board revision adds USB OTG support.

Enable the device-tree node and configure the OTG_ID pin.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-gw552x.dtsi

index dc646b7..bb35971 100644 (file)
        status = "okay";
 };
 
+&usbotg {
+       vbus-supply = <&reg_5p0v>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbotg>;
+       disable-over-current;
+       status = "okay";
+};
+
 &wdog1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_wdog>;
                >;
        };
 
+       pinctrl_usbotg: usbotggrp {
+               fsl,pins = <
+                       MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID       0x13059
+               >;
+       };
+
        pinctrl_wdog: wdoggrp {
                fsl,pins = <
                        MX6QDL_PAD_DISP0_DAT8__WDOG1_B          0x1b0b0