]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
imx: kontron-sl-mx8mm: Enable USB hub on BL i.MX8MM OSM-S board
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 7 Oct 2025 08:16:07 +0000 (10:16 +0200)
committerFabio Estevam <festevam@gmail.com>
Tue, 7 Oct 2025 11:58:28 +0000 (08:58 -0300)
Probe the USB hub on the BL i.MX8MM OSM-S board.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
arch/arm/dts/imx8mm-kontron-bl-osm-s.dts
board/kontron/sl-mx8mm/sl-mx8mm.c
configs/kontron-sl-mx8mm_defconfig

index 8b16bd68576c0b51d67320ab4a015068834d881b..fae00fd963219a665d20291703fed937f1b766a8 100644 (file)
        usb1@1 {
                compatible = "usb424,9514";
                reg = <1>;
+               vdd-supply = <&reg_vdd_3v3>;
                #address-cells = <1>;
                #size-cells = <0>;
 
index cb0b3acdd624517667f5b7025bb0c0c2bd76ae54..cf71a4cf367066c2b90c0df221c2bd97fb3347de 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-imx/boot_mode.h>
+#include <dm/uclass.h>
 #include <efi.h>
 #include <efi_loader.h>
 #include <env_internal.h>
@@ -150,10 +151,17 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
 int board_late_init(void)
 {
+       struct udevice *dev;
+       int ret;
+
        if (!fdt_node_check_compatible(gd->fdt_blob, 0, "kontron,imx8mm-n802x-som") ||
            !fdt_node_check_compatible(gd->fdt_blob, 0, "kontron,imx8mm-osm-s")) {
                env_set("som_type", "osm-s");
                env_set("touch_rst_gpio", "111");
+
+               ret = uclass_get_device_by_name(UCLASS_MISC, "usb-hub@2c", &dev);
+               if (ret)
+                       printf("Error bringing up USB hub (%d)\n", ret);
        } else {
                env_set("som_type", "sl");
                env_set("touch_rst_gpio", "87");
index 11ce881bc1973b2bcea6844b78e8f7b9b341f209..a2cc4d03963851878d49cce70f5b6df3919cfc86 100644 (file)
@@ -142,6 +142,7 @@ CONFIG_FASTBOOT_MMC_USER_SUPPORT=y
 CONFIG_GPIO_HOG=y
 CONFIG_MXC_GPIO=y
 CONFIG_DM_I2C=y
+CONFIG_USB_HUB_USB251XB=y
 CONFIG_I2C_EEPROM=y
 CONFIG_SPL_I2C_EEPROM=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x50