From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 07 Sep 2022 21:50:46 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oW14O-009vVe-Nz for lore@lore.pengutronix.de; Wed, 07 Sep 2022 21:50:46 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oW14P-00079q-JL; Wed, 07 Sep 2022 21:50:45 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oW14I-00079V-5d for distrokit@pengutronix.de; Wed, 07 Sep 2022 21:50:38 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oW14F-004Uq8-Ip for distrokit@pengutronix.de; Wed, 07 Sep 2022 21:50:37 +0200 Received: from mgr by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oW14G-00B5lv-Lx for distrokit@pengutronix.de; Wed, 07 Sep 2022 21:50:36 +0200 From: Michael Grzeschik To: distrokit@pengutronix.de Date: Wed, 7 Sep 2022 21:50:35 +0200 Message-Id: <20220907195035.2643740-1-m.grzeschik@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH] v7a: barebox: stm32mp: enable usb support X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false - enabling drivers for dwc2 gadget, dwc2 host, stm32_usbphyc and stmp32_pwr Signed-off-by: Michael Grzeschik --- configs/platform-v7a/barebox-stm32mp.config | 48 +++++++++++++++++-- .../platform-v7a/barebox-stm32mp.config.diff | 42 +++++++--------- 2 files changed, 61 insertions(+), 29 deletions(-) diff --git a/configs/platform-v7a/barebox-stm32mp.config b/configs/platform-v7a/barebox-stm32mp.config index 529d2fad..3d9505ac 100644 --- a/configs/platform-v7a/barebox-stm32mp.config +++ b/configs/platform-v7a/barebox-stm32mp.config @@ -96,7 +96,9 @@ CONFIG_UIMAGE=y CONFIG_LOGBUF=y CONFIG_STDDEV=y CONFIG_MENUTREE=y +CONFIG_USBGADGET_START=y CONFIG_BOOT=y +CONFIG_FASTBOOT_BASE=y # # General Settings @@ -214,6 +216,13 @@ CONFIG_EXTERNAL_DTS_FRAGMENTS="" # # CONFIG_BOOTM_OPTEE is not set # end of OP-TEE loading + +# +# Android Fastboot +# +# CONFIG_FASTBOOT_SPARSE is not set +# CONFIG_FASTBOOT_CMD_OEM is not set +# end of Android Fastboot # end of General Settings # @@ -404,6 +413,8 @@ CONFIG_CMD_GPIO=y CONFIG_CMD_LED=y CONFIG_CMD_POWEROFF=y # CONFIG_CMD_SMC is not set +CONFIG_CMD_USB=y +CONFIG_CMD_USBGADGET=y CONFIG_CMD_WD=y CONFIG_CMD_WD_DEFAULT_TIMOUT=0 # end of Hardware manipulation @@ -510,6 +521,7 @@ CONFIG_MICREL_PHY=y # CONFIG_MDIO_BUS_MUX_GPIO is not set # end of phylib +# CONFIG_NET_USB is not set # CONFIG_DSA is not set # end of Network drivers @@ -545,8 +557,32 @@ CONFIG_DISK_WRITE=y # interface types # # CONFIG_DISK_INTF_PLATFORM_IDE is not set -# CONFIG_USB_HOST is not set -# CONFIG_USB_GADGET is not set +CONFIG_USB=y +CONFIG_USB_HOST=y +CONFIG_USB_DWC2=y +CONFIG_USB_DWC2_HOST=y +CONFIG_USB_DWC2_GADGET=y +# CONFIG_USB_DWC3 is not set +# CONFIG_USB_EHCI is not set +# CONFIG_USB_XHCI is not set +# CONFIG_USB_ULPI is not set +CONFIG_USB_OTGDEV=y +# CONFIG_USB_STORAGE is not set + +# +# USB Miscellaneous drivers +# +# CONFIG_USB_HUB_USB251XB is not set +CONFIG_USB_GADGET=y +# CONFIG_USB_GADGET_AUTOSTART is not set + +# +# USB Gadget drivers +# +# CONFIG_USB_GADGET_DFU is not set +# CONFIG_USB_GADGET_SERIAL is not set +CONFIG_USB_GADGET_FASTBOOT=y +# CONFIG_USB_GADGET_MASS_STORAGE is not set # CONFIG_USB_MUSB is not set # CONFIG_VIDEO is not set # CONFIG_SOUND is not set @@ -635,6 +671,7 @@ CONFIG_EEPROM_AT24=y # # CONFIG_KEYBOARD_GPIO is not set # CONFIG_KEYBOARD_QT1070 is not set +# CONFIG_KEYBOARD_USB is not set # CONFIG_INPUT_SPECIALKEYS is not set # end of Input device support @@ -691,7 +728,7 @@ CONFIG_STM32_BSEC_WRITE=y CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED=y -# CONFIG_REGULATOR_STM32_PWR is not set +CONFIG_REGULATOR_STM32_PWR=y CONFIG_REGULATOR_STM32_VREFBUF=y CONFIG_REGULATOR_STPMIC1=y # CONFIG_REGULATOR_ANATOP is not set @@ -720,7 +757,10 @@ CONFIG_RESET_CONTROLLER=y # CONFIG_FPGA is not set # end of FPGA Configuration Support -# CONFIG_GENERIC_PHY is not set +CONFIG_GENERIC_PHY=y +# CONFIG_USB_NOP_XCEIV is not set +# CONFIG_PHY_FSL_IMX8MQ_USB is not set +CONFIG_PHY_STM32_USBPHYC=y # CONFIG_CRYPTO_HW is not set # diff --git a/configs/platform-v7a/barebox-stm32mp.config.diff b/configs/platform-v7a/barebox-stm32mp.config.diff index c684c2e9..219b80db 100644 --- a/configs/platform-v7a/barebox-stm32mp.config.diff +++ b/configs/platform-v7a/barebox-stm32mp.config.diff @@ -30,8 +30,6 @@ CONFIG_CMD_MMC_EXTCSD=y CONFIG_CMD_OF_DIFF=y CONFIG_CMD_POWEROFF=y # CONFIG_CMD_SPI is undefined -# CONFIG_CMD_USB is undefined -# CONFIG_CMD_USBGADGET is undefined CONFIG_COMPILE_LOGLEVEL=6 # CONFIG_CONSOLE_ACTIVATE_FIRST is not set CONFIG_CONSOLE_ACTIVATE_NONE=y @@ -51,11 +49,11 @@ CONFIG_DRIVER_SERIAL_STM32=y # CONFIG_DRIVER_SPI_LITEX_SPIFLASH is undefined CONFIG_EEPROM_AT24=y # CONFIG_EEPROM_AT25 is undefined -# CONFIG_FASTBOOT_BASE is undefined -# CONFIG_FASTBOOT_CMD_OEM is undefined -# CONFIG_FASTBOOT_SPARSE is undefined +# CONFIG_FASTBOOT_CMD_OEM is not set +# CONFIG_FASTBOOT_SPARSE is not set # CONFIG_FIRMWARE_ALTERA_SERIAL is undefined # CONFIG_FS_JFFS2 is undefined +CONFIG_GENERIC_PHY=y # CONFIG_GPIO_74164 is undefined # CONFIG_GPIO_RASPBERRYPI_EXP is undefined # CONFIG_HWRNG is not set @@ -63,7 +61,6 @@ CONFIG_EEPROM_AT24=y # CONFIG_I2C_GPIO is not set CONFIG_I2C_STM32=y # CONFIG_IMAGE_SPARSE is undefined -# CONFIG_KEYBOARD_USB is undefined CONFIG_LED_PWM=y # CONFIG_LED_TRIGGERS is not set # CONFIG_LIBFDT is undefined @@ -104,7 +101,7 @@ CONFIG_MICREL_PHY=y # CONFIG_NAND is undefined CONFIG_NET_NETCONSOLE=y # CONFIG_NET_NFS is not set -# CONFIG_NET_USB is undefined +# CONFIG_NET_USB is not set # CONFIG_NET_USB_ASIX is undefined # CONFIG_NET_USB_RTL8152 is undefined # CONFIG_NET_USB_SMSC95XX is undefined @@ -117,6 +114,8 @@ CONFIG_PARTITION_DISK_EFI=y # CONFIG_PARTITION_DISK_EFI_GPT_NO_FORCE is not set CONFIG_PBL_CONSOLE=y # CONFIG_PBL_OPTEE is undefined +# CONFIG_PHY_FSL_IMX8MQ_USB is not set +CONFIG_PHY_STM32_USBPHYC=y # CONFIG_PINCTRL_BCM283X is undefined CONFIG_PINCTRL_STM32=y CONFIG_PRINTF_UUID=y @@ -126,7 +125,7 @@ CONFIG_PWM_STM32=y # CONFIG_REGULATOR_ANATOP is not set # CONFIG_REGULATOR_BCM283X is undefined CONFIG_REGULATOR_FIXED=y -# CONFIG_REGULATOR_STM32_PWR is not set +CONFIG_REGULATOR_STM32_PWR=y CONFIG_REGULATOR_STM32_VREFBUF=y CONFIG_REGULATOR_STPMIC1=y CONFIG_REMOTEPROC=y @@ -143,24 +142,17 @@ CONFIG_STM32_REMOTEPROC=y # CONFIG_STPMIC1_WATCHDOG is not set # CONFIG_SYSCON_REBOOT_MODE is not set CONFIG_THUMB2_BAREBOX=y -# CONFIG_USB is undefined -# CONFIG_USBGADGET_START is undefined -# CONFIG_USB_DWC2_GADGET is undefined -# CONFIG_USB_DWC2_HOST is undefined -# CONFIG_USB_DWC3 is undefined -# CONFIG_USB_EHCI is undefined -# CONFIG_USB_GADGET is not set -# CONFIG_USB_GADGET_AUTOSTART is undefined -# CONFIG_USB_GADGET_DFU is undefined -# CONFIG_USB_GADGET_FASTBOOT is undefined -# CONFIG_USB_GADGET_MASS_STORAGE is undefined -# CONFIG_USB_GADGET_SERIAL is undefined -# CONFIG_USB_HOST is not set -# CONFIG_USB_HUB_USB251XB is undefined +CONFIG_USB_DWC2=y +CONFIG_USB_DWC2_GADGET=y +CONFIG_USB_DWC2_HOST=y +# CONFIG_USB_EHCI is not set +# CONFIG_USB_GADGET_AUTOSTART is not set +# CONFIG_USB_GADGET_MASS_STORAGE is not set +# CONFIG_USB_GADGET_SERIAL is not set # CONFIG_USB_NET_AX88179_178A is undefined -# CONFIG_USB_STORAGE is undefined -# CONFIG_USB_ULPI is undefined -# CONFIG_USB_XHCI is undefined +# CONFIG_USB_NOP_XCEIV is not set +CONFIG_USB_OTGDEV=y +# CONFIG_USB_STORAGE is not set CONFIG_USE_COMPRESSED_DTB=y # CONFIG_WATCHDOG_BCM2835 is undefined CONFIG_WATCHDOG_POLLER=y -- 2.30.2