]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
colibri-imx8x: configure usb hub to bypass mode
authorAndrejs Cainikovs <andrejs.cainikovs@toradex.com>
Wed, 20 Dec 2023 10:38:11 +0000 (11:38 +0100)
committerFabio Estevam <festevam@denx.de>
Wed, 20 Dec 2023 18:04:46 +0000 (15:04 -0300)
This change configures Toradex Colibri iMX8X SoM USB
hub to bypass mode, and brings out of the reset state.

Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi
arch/arm/dts/fsl-imx8qxp-colibri.dts
configs/colibri-imx8x_defconfig

index a6af4e5e2b711e6f6c5eb6284c52f5c5aa6596e8..6ab6b1f9ee691234faddc98b823f6f6c840a24c7 100644 (file)
        bootph-some-ram;
 };
 
+&gpio_expander_43 {
+       usb-bypass-n-hog {
+               gpio-hog;
+               gpios = <5 GPIO_ACTIVE_LOW>;
+               line-name = "usb-bypass-n";
+               output-high;
+       };
+       usb-reset-n-hog {
+               gpio-hog;
+               gpios = <4 GPIO_ACTIVE_LOW>;
+               line-name = "usb-reset-n";
+               output-low;
+       };
+};
+
 &gpio0 {
        bootph-some-ram;
 };
index 295090ad711cf0cc6b0cddd1575e968b3274a60e..b479921aff9ad0c3a01ed9238e4b8fbbeea0f26e 100644 (file)
                gpio-controller;
                #gpio-cells = <2>;
                reg = <0x43>;
-               initial_io_dir = <0xff>;
-               initial_output = <0x05>;
        };
 };
 
index 13c16bde3d8fd381c5fc5491580458f69e7c7bad..ce60c5095822527c0820de2d08254f2fbe9ae312 100644 (file)
@@ -65,6 +65,7 @@ CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_BOOTCOUNT_ENV=y
 CONFIG_CLK_IMX8=y
 CONFIG_CPU=y
+CONFIG_GPIO_HOG=y
 CONFIG_FXL6408_GPIO=y
 CONFIG_MXC_GPIO=y
 CONFIG_DM_I2C=y