DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] v7a: barebox: stm32mp: enable usb support
@ 2022-09-07 19:50 Michael Grzeschik
  2022-09-29 14:21 ` Robert Schwebel
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Grzeschik @ 2022-09-07 19:50 UTC (permalink / raw)
  To: distrokit

- enabling drivers for dwc2 gadget, dwc2 host, stm32_usbphyc and stmp32_pwr

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [DistroKit] [PATCH] v7a: barebox: stm32mp: enable usb support
  2022-09-07 19:50 [DistroKit] [PATCH] v7a: barebox: stm32mp: enable usb support Michael Grzeschik
@ 2022-09-29 14:21 ` Robert Schwebel
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Schwebel @ 2022-09-29 14:21 UTC (permalink / raw)
  To: Michael Grzeschik; +Cc: distrokit

On Wed, Sep 07, 2022 at 09:50:35PM +0200, Michael Grzeschik wrote:
> - enabling drivers for dwc2 gadget, dwc2 host, stm32_usbphyc and stmp32_pwr
> 
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  configs/platform-v7a/barebox-stm32mp.config   | 48 +++++++++++++++++--
>  .../platform-v7a/barebox-stm32mp.config.diff  | 42 +++++++---------
>  2 files changed, 61 insertions(+), 29 deletions(-)

Applied to next.

rsc
-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-29 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07 19:50 [DistroKit] [PATCH] v7a: barebox: stm32mp: enable usb support Michael Grzeschik
2022-09-29 14:21 ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox