diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2020-12-28 15:52:19 +0200 |
---|---|---|
committer | Denys Drozdov <denys.drozdov@toradex.com> | 2021-01-20 18:56:46 +0200 |
commit | e54922bdb4726ec377fd0265c7cc31ab1e60ecf8 (patch) | |
tree | 0f1eef3a7fd3614238cd7587d08f5f51f6545a32 | |
parent | 91337e90b2ce0c949f4a72d55b1c833f84cdb3e3 (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 |