Re: [PATCH 0/3] Add support for USB onboard HUB, used on stm32 boards

2022-12-14 Thread Michal Simek




On 12/12/22 14:19, Marek Vasut wrote:
CAUTION: This message has originated from an External Source. Please use proper 
judgment and caution when opening attachments, clicking links, or responding to 
this email.



On 12/12/22 11:44, Fabrice Gasnier wrote:

This series adds a driver to support USB onboard HUB, inspired by Linux
onboard hub driver.

Purpose is to manage the power supply regulator on STM32 boards, for
low power use case in Linux. U-boot driver allows to benefit of the
device tree part to supply the HUB when need, instead using an
always-on regulator.

It aligns the relevant DT part from emerging Linux v6.2. It also adds the
relevant default configuration on stm32mp15.


Not sure why v6.2 is relevant. That changes in connection to usb hubs/companion 
hubs/peer hubs have been merged some time ago.


It would be lovely to see also peer hubs part in u-boot too but nothing wrong 
with this part.


Acked-by: Michal Simek 

Thanks,
Michal


[PATCH 0/3] Add support for USB onboard HUB, used on stm32 boards

2022-12-12 Thread Fabrice Gasnier
This series adds a driver to support USB onboard HUB, inspired by Linux
onboard hub driver.

Purpose is to manage the power supply regulator on STM32 boards, for
low power use case in Linux. U-boot driver allows to benefit of the
device tree part to supply the HUB when need, instead using an
always-on regulator.

It aligns the relevant DT part from emerging Linux v6.2. It also adds the
relevant default configuration on stm32mp15.


Fabrice Gasnier (3):
  usb: onboard-hub: add driver to manage onboard hub supplies
  configs: stm32: enable USB onboard HUB driver
  ARM: dts: stm32: add support for USB2514B onboard hub on
stm32mp157c-ev1

 arch/arm/dts/stm32mp157c-ev1.dts|  8 
 common/Makefile |  1 +
 common/usb_onboard_hub.c| 62 +
 configs/stm32mp15_basic_defconfig   |  1 +
 configs/stm32mp15_defconfig |  1 +
 configs/stm32mp15_trusted_defconfig |  1 +
 drivers/usb/Kconfig | 10 +
 drivers/usb/host/usb-uclass.c   | 16 +---
 8 files changed, 94 insertions(+), 6 deletions(-)
 create mode 100644 common/usb_onboard_hub.c

-- 
2.25.1



Re: [PATCH 0/3] Add support for USB onboard HUB, used on stm32 boards

2022-12-12 Thread Marek Vasut

On 12/12/22 11:44, Fabrice Gasnier wrote:

This series adds a driver to support USB onboard HUB, inspired by Linux
onboard hub driver.

Purpose is to manage the power supply regulator on STM32 boards, for
low power use case in Linux. U-boot driver allows to benefit of the
device tree part to supply the HUB when need, instead using an
always-on regulator.

It aligns the relevant DT part from emerging Linux v6.2. It also adds the
relevant default configuration on stm32mp15.


Fabrice Gasnier (3):
   usb: onboard-hub: add driver to manage onboard hub supplies
   configs: stm32: enable USB onboard HUB driver
   ARM: dts: stm32: add support for USB2514B onboard hub on
 stm32mp157c-ev1

  arch/arm/dts/stm32mp157c-ev1.dts|  8 
  common/Makefile |  1 +
  common/usb_onboard_hub.c| 62 +
  configs/stm32mp15_basic_defconfig   |  1 +
  configs/stm32mp15_defconfig |  1 +
  configs/stm32mp15_trusted_defconfig |  1 +
  drivers/usb/Kconfig | 10 +
  drivers/usb/host/usb-uclass.c   | 16 +---
  8 files changed, 94 insertions(+), 6 deletions(-)
  create mode 100644 common/usb_onboard_hub.c


+CC Michal