public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] usb: typec: hd3ss3220: enhance driver with port type, power opmode, and role preference settings
@ 2024-12-11 16:32 Oliver Facklam
  2024-12-11 16:32 ` [PATCH v3 1/3] usb: typec: hd3ss3220: configure advertised power opmode based on fwnode property Oliver Facklam
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Oliver Facklam @ 2024-12-11 16:32 UTC (permalink / raw)
  To: Heikki Krogerus, Biju Das, Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, Benedict von Heyl, Mathis Foerst,
	Michael Glettig, Oliver Facklam

The TI HD3SS3220 Type-C controller supports configuring the port type,
the advertised power operation mode, and its role preference
through its I2C register map.

This patch series adds support for configuring these registers
based on existing fwnode properties and typec_operations.

Signed-off-by: Oliver Facklam <oliver.facklam@zuehlke.com>
---
Changes in v3:
- Drop PATCH 2/4 from v2 (using typec_get_fw_cap() for capability
  parsing)
- Implement parsing manually to have better control over
  each property being present / absent.
- If the "power-role"/"try-power-role" property is absent, we don't
  set the corresponding register during probe anymore, but let the
  chip use its default.
- Link to v2: https://lore.kernel.org/r/20241114-usb-typec-controller-enhancements-v2-0-362376856aea@zuehlke.com

Changes in v2:
- Better support optional fwnode properties being absent by setting
  defaults in struct typec_capability and checking return code of
  typec_get_fw_cap()
- Link to v1: https://lore.kernel.org/r/20241107-usb-typec-controller-enhancements-v1-0-3886c1acced2@zuehlke.com

---
Oliver Facklam (3):
      usb: typec: hd3ss3220: configure advertised power opmode based on fwnode property
      usb: typec: hd3ss3220: support configuring port type
      usb: typec: hd3ss3220: support configuring role preference based on fwnode property and typec_operation

 drivers/usb/typec/hd3ss3220.c | 207 +++++++++++++++++++++++++++++++++++++-----
 1 file changed, 184 insertions(+), 23 deletions(-)
---
base-commit: 237d4e0f41130a5ff0e1c7dc1cb41ee2fe21cd2a
change-id: 20241104-usb-typec-controller-enhancements-6871249429f0

Best regards,
-- 
Oliver Facklam <oliver.facklam@zuehlke.com>


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

end of thread, other threads:[~2024-12-16 10:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 16:32 [PATCH v3 0/3] usb: typec: hd3ss3220: enhance driver with port type, power opmode, and role preference settings Oliver Facklam
2024-12-11 16:32 ` [PATCH v3 1/3] usb: typec: hd3ss3220: configure advertised power opmode based on fwnode property Oliver Facklam
2024-12-11 16:32 ` [PATCH v3 2/3] usb: typec: hd3ss3220: support configuring port type Oliver Facklam
2024-12-16  9:56   ` Heikki Krogerus
2024-12-11 16:32 ` [PATCH v3 3/3] usb: typec: hd3ss3220: support configuring role preference based on fwnode property and typec_operation Oliver Facklam
2024-12-16 10:00   ` Heikki Krogerus

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