diff options
author | From: Andrejs Cainikovs <andrejs.cainikovs@toradex.com> | 2023-12-12 09:27:25 -0300 |
---|---|---|
committer | Fabio Estevam <festevam@gmail.com> | 2023-12-12 09:29:02 -0300 |
commit | 0d150528f506f5864fa90a31ab6b9d92ed7517ad (patch) | |
tree | 0d9144b1db339f11fb82beb96d4822f33f336423 | |
parent | ad3a4f91e7ca7002d71920417ca529e7e8e7460a (diff) | |
download | u-boot-0d150528f506f5864fa90a31ab6b9d92ed7517ad.zip u-boot-0d150528f506f5864fa90a31ab6b9d92ed7517ad.tar.gz u-boot-0d150528f506f5864fa90a31ab6b9d92ed7517ad.tar.bz2 |
apalis-imx8: add USBH_EN gpio hog
USB host interface is not working on some Apalis Toradex carrier
boards with Apalis iMX8 SoM. This is due to USBH_EN pin, which
powers USB peripherals, having a strong pull-down on some boards,
and a weak pull-down on the others. This USBH_EN pin is left
unconfigured, which means it is in its default state at cold boot:
input with a strong pull-up. As a result, carrier boards with a
weak pull-down have this signal high enough to trigger power
delivery to USB peripherals, and opposite - boards with strong
pull-down on USBH_EN have this signal below the threshold needed
to trigger USB power delivery.
This change configures the USBH_EN pin as gpio hog, fixing this
issue for all Apalis carrier boards regardless of pull-down
resistor value.
Also, update apalis-imx8_defconfig via savedefconfig.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
-rw-r--r-- | arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi | 6 | ||||
-rw-r--r-- | configs/apalis-imx8_defconfig | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi b/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi index f2d6b18..c54a59e 100644 --- a/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi +++ b/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi @@ -93,6 +93,12 @@ &gpio4 { bootph-some-ram; + + usbh_en { + gpio-hog; + gpios = <4 GPIO_ACTIVE_HIGH>; + output-high; + }; }; &gpio5 { diff --git a/configs/apalis-imx8_defconfig b/configs/apalis-imx8_defconfig index 056c1fb..d11a31e 100644 --- a/configs/apalis-imx8_defconfig +++ b/configs/apalis-imx8_defconfig @@ -65,6 +65,7 @@ CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y CONFIG_CLK_IMX8=y CONFIG_CPU=y +CONFIG_GPIO_HOG=y CONFIG_MXC_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_IMX_LPI2C=y |