[PATCH v3 0/5] Extend usb_onboard_hub driver to support Cypress HX3 hub family
Lukasz Czechowski
lukasz.czechowski at thaumatec.com
Tue Jun 10 10:02:08 CEST 2025
This patch series extends the usb_onboard_hub driver to allow for
support of more types of onboard hub devices, and adds the Cypress
HX3 hub family.
First patch in the series updates the bind function, so that it no
longer uses hardcoded compatible strings.
Next patch simplifies the code, by removing unnecessary dm_gpio
function call.
Third patch updates the remove function, which allows the prevent
issues with usb devices reenumeration, in case of calling
"usb reset". Although the issue could still occur in case of invalid
initial state of reset gpio, it is minimized with no impact on main
usb_hub driver.
Fourth patch extends the driver with support for multiple power
supplies, the same way it is done in kernel driver.
Finally, last patch provides hub data and of_match table entries
for Cypress HX3
Signed-off-by: Lukasz Czechowski <lukasz.czechowski at thaumatec.com>
---
Changes in v3:
- Rebased on top of latest master
- Updated usb_onboard_hub_power_off function to print error
message in case regulator_set_enable_if_allowed call fails,
as suggested by Quentin.
- Link to v2: https://lore.kernel.org/r/20250526-usb_onboard_hub_cypress_hx3-v2-0-f382415da84f@thaumatec.com
Changes in v2:
- Replaced the method for finding hub in bind function with
uclass_find_device_by_ofnode, which seems more appropriate
- Added new patch that removes unnecessary dm_gpio_free call
in usb_onboard_hub_remove
- Create separate static method for disabling supply regulators
- Update error handling in probe function
- Link to v1: https://lore.kernel.org/r/20250425-usb_onboard_hub_cypress_hx3-v1-0-3cc5a06087cf@thaumatec.com
---
Lukasz Czechowski (5):
usb: onboard-hub: Use the ofnode to check if the peer-hub was probed
usb: onboard-hub: Use devm API do automatically free the reset GPIO
usb: onboard-hub: Set the reset gpio pin before freeing
usb: onboard-hub: Add support for multiple power supplies
usb: onboard-hub: Add support for Cypress HX3 family
common/usb_onboard_hub.c | 101 ++++++++++++++++++++++++++++++++++++-----------
drivers/usb/Kconfig | 1 +
2 files changed, 79 insertions(+), 23 deletions(-)
---
base-commit: 5a8dd2e0c848135b5c96af291aa96e79acc923ec
change-id: 20250425-usb_onboard_hub_cypress_hx3-2831983f1ede
Best regards,
--
Lukasz Czechowski <lukasz.czechowski at thaumatec.com>
More information about the U-Boot
mailing list