From f4ad25e5631f242ab5bc13abead8b250d33deab1 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Mon, 28 Dec 2020 15:52:19 +0200 Subject: apalis-imx8x: enable on-board USB hub and USBH3/4 ports Currently the Cadence,usb3 driver doesn't support a phy vbus regulator. Emulate it keeping the USBH_EN signal high with gpio-hog entry. This enables the on-board USB-Hub with ports USB2[ABCD] and on-board USB ports USBH3/4. Related-to: ELB-3424 Signed-off-by: Oleksandr Suvorov --- arch/arm/dts/fsl-imx8qxp-apalis.dts | 10 ++++++++++ configs/apalis-imx8x_defconfig | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qxp-apalis.dts b/arch/arm/dts/fsl-imx8qxp-apalis.dts index 2caf57bea7..18a125a5f4 100644 --- a/arch/arm/dts/fsl-imx8qxp-apalis.dts +++ b/arch/arm/dts/fsl-imx8qxp-apalis.dts @@ -43,6 +43,15 @@ }; }; +&gpio4 { + usb_host_vbus { + gpio-hog; + gpios = <4 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "USBH_EN"; + }; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog0>, <&pinctrl_hog1>, <&pinctrl_reset_moci>, <&pinctrl_usbh_en>; @@ -272,6 +281,7 @@ }; &usbotg3 { + dr_mode = "host"; status = "okay"; }; diff --git a/configs/apalis-imx8x_defconfig b/configs/apalis-imx8x_defconfig index ea51264268..5fe682575c 100644 --- a/configs/apalis-imx8x_defconfig +++ b/configs/apalis-imx8x_defconfig @@ -52,6 +52,7 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x82800000 CONFIG_FASTBOOT_BUF_SIZE=0x08000000 CONFIG_FASTBOOT_FLASH=y +CONFIG_GPIO_HOG=y CONFIG_MXC_GPIO=y CONFIG_DM_PCA953X=y CONFIG_DM_I2C=y -- cgit v1.2.3