From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Cc: "Claude Sonnet 4.6" <noreply@anthropic.com>
Subject: [PATCH 0/4] usb: typec: STUSB160x support
Date: Mon, 20 Apr 2026 11:02:16 +0200 [thread overview]
Message-ID: <20260420-usb-typec-stusb160x-v1-0-5875bbae80ab@pengutronix.de> (raw)
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>
next reply other threads:[~2026-04-20 9:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-20 9:02 Sascha Hauer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260420-usb-typec-stusb160x-v1-0-5875bbae80ab@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=noreply@anthropic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox