[PATCH 0/4] usb: typec: STUSB160x support
Sascha Hauer
s.hauer at pengutronix.de
Mon Apr 20 02:02:16 PDT 2026
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 at 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 at pengutronix.de>
More information about the barebox
mailing list