mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] usb: typec: STUSB160x support
@ 2026-04-20  9:02 Sascha Hauer
  2026-04-20  9:02 ` [PATCH 1/4] usb: otg: Add function to set dr_mode Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sascha Hauer @ 2026-04-20  9:02 UTC (permalink / raw)
  To: BAREBOX; +Cc: Claude Sonnet 4.6

This adds a driver for the STUSB160x typec controller. Also added is
support for setting the USB data role according to the setting the
typec controller is in. This way we don't have to set otg.mode manually
anymore for devices which have a typec controller.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (4):
      usb: otg: Add function to set dr_mode
      usb: typec: wire USB role changes to OTG device
      usb: typec: add typec_find_port_power_role() and typec_find_pwr_opmode()
      USB: typec: Add STUSB160x driver

 drivers/usb/otg/otgdev.c      |  20 ++
 drivers/usb/typec/Kconfig     |   9 +
 drivers/usb/typec/Makefile    |   1 +
 drivers/usb/typec/class.c     |  88 +++++++
 drivers/usb/typec/stusb160x.c | 572 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/usb/typec.h     |  16 ++
 include/linux/usb/usb.h       |   1 +
 7 files changed, 707 insertions(+)
---
base-commit: 7f4d6a825f65861c43771e713ac3ce509dc9e49b
change-id: 20260420-usb-typec-stusb160x-afc4b3b889a5

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2026-04-20 12:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-20  9:02 [PATCH 0/4] usb: typec: STUSB160x support Sascha Hauer
2026-04-20  9:02 ` [PATCH 1/4] usb: otg: Add function to set dr_mode Sascha Hauer
2026-04-20 10:42   ` Ahmad Fatoum
2026-04-20  9:02 ` [PATCH 2/4] usb: typec: wire USB role changes to OTG device Sascha Hauer
2026-04-20 11:08   ` Ahmad Fatoum
2026-04-20 12:02     ` Sascha Hauer
2026-04-20  9:02 ` [PATCH 3/4] usb: typec: add typec_find_port_power_role() and typec_find_pwr_opmode() Sascha Hauer
2026-04-20  9:02 ` [PATCH 4/4] USB: typec: Add STUSB160x driver Sascha Hauer
2026-04-20 11:14   ` Ahmad Fatoum
2026-04-20 11:30     ` Sascha Hauer

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