Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] usb: typec: tcpci: report BC1.2 current limit in tcpci_maxim
@ 2026-11-25 14:04 André Draszik
  2026-11-25 14:04 ` [PATCH 1/2] usb: typec: tcpci: add get_current_limit callback André Draszik
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: André Draszik @ 2026-11-25 14:04 UTC (permalink / raw)
  To: Badhri Jagan Sridharan, Heikki Krogerus, Greg Kroah-Hartman
  Cc: Peter Griffin, Tudor Ambarus, Juan Yescas, Amit Sunil Dhamne,
	kernel-team, linux-usb, André Draszik

Hi,

These two patches allow Maxim TCPCI (MAX33359 / MAX77759) ports to
report their BC1.2 current limit when attached to a non-PD Rp-default
source:

- Add an optional get_current_limit callback to struct tcpci_data.
- Report the Maxim TCPCI BC1.2 current limit from vendor register
  BC_STATUS1.

Tested on Pixel 6 (Oriole) with SDP, CDP, and DCP attach and hot-plug
as well as USB-C PD.

Cheers
Andre'

Signed-off-by: André Draszik <andre.draszik@linaro.org>
---
André Draszik (2):
      usb: typec: tcpci: add get_current_limit callback
      usb: typec: tcpm/tcpci_maxim: report BC1.2 current limit

 drivers/usb/typec/tcpm/tcpci.c            | 12 ++++++++++++
 drivers/usb/typec/tcpm/tcpci_maxim.h      |  8 ++++++++
 drivers/usb/typec/tcpm/tcpci_maxim_core.c | 25 +++++++++++++++++++++++++
 include/linux/usb/tcpci.h                 |  5 +++++
 4 files changed, 50 insertions(+)
---
base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
change-id: 20261125-tcpci-maxim-bc12-49a0ffb71d26

Best regards,
-- 
André Draszik <andre.draszik@linaro.org>


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

end of thread, other threads:[~2026-11-25 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 14:04 [PATCH 0/2] usb: typec: tcpci: report BC1.2 current limit in tcpci_maxim André Draszik
2026-11-25 14:04 ` [PATCH 1/2] usb: typec: tcpci: add get_current_limit callback André Draszik
2026-11-25 14:04 ` [PATCH 2/2] usb: typec: tcpm/tcpci_maxim: report BC1.2 current limit André Draszik
2026-11-25 14:10 ` [PATCH 0/2] usb: typec: tcpci: report BC1.2 current limit in tcpci_maxim sashiko-bot

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