diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-12-28 15:52:19 +0200 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-12-28 15:58:10 +0200 |
commit | f4ad25e5631f242ab5bc13abead8b250d33deab1 (patch) | |
tree | 96a702a594359b3ce9f93d106a1a9221dccbe298 | |
parent | 90bc78f34d25a31a38b2afe0eadd1b0339d7f74c (diff) |
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 <oleksandr.suvorov@toradex.com>
-rw-r--r-- | arch/arm/dts/fsl-imx8qxp-apalis.dts | 10 | ||||
-rw-r--r-- | configs/apalis-imx8x_defconfig | 1 |
2 files changed, 11 insertions, 0 deletions
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 |