ARM: dts: imx6q-ba16: add USB OTG VBUS enable GPIO
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 8 Mar 2021 15:18:26 +0000 (16:18 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 06:13:43 +0000 (14:13 +0800)
Add VBUS regulator GPIO information, so that USB OTG port can
also be used in host mode.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-ba16.dtsi

index e4578ed3371ef27dcf2b9f0cecadb024b6aae92e..826fd51b1d98bdc10ca21cb932f545b72af2e507 100644 (file)
                regulator-name = "usb_otg_vbus";
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
+               pinctrl-0 = <&pinctrl_usbotg_vbus>;
+               gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
        };
 };
 
                >;
        };
 
+       pinctrl_usbotg_vbus: usbotgvbusgrp {
+               fsl,pins = <
+                       MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x000b0
+               >;
+       };
+
        pinctrl_usdhc2: usdhc2grp {
                fsl,pins = <
                        MX6QDL_PAD_SD2_CMD__SD2_CMD     0x17059