Re: [PATCH 3/6] usb: typec: add Qualcomm PMI8998 role-switch driver

From: Bryan O'Donoghue

Date: Mon May 18 2026 - 18:07:43 EST


On 18/05/2026 22:45, Dmitry Baryshkov wrote:
No software TCPM state machine is used because the hardware handles
the Type-C protocol natively, and the PMI8998 interrupt topology does
not expose the granular per-event signals the TCPM code path expects.
Power Delivery is not implemented in this driver; the PMI8998 PDPHY
block at offset 0x1700 (register-identical to PM8150B) can be wired
up by a separate driver later if PD negotiation is required.
I think TCPM / PD-PHY is (more or less) a sensible requirement. Without
it you can't negotiate higher power modes or AltModes support (which
means no DP).

If the PDPHY is register compatible as stated then the PD part is very close.

Looking at the pmi8998 STATUS_REG_4

- VBUS_STATUS
- ORIENTATION
- ATTACHED

are all driven. So I believe it would be possible to bring the pmi8998 into - along side the pmi8998 logic.

@Maxim have you looked at that as an option ?

I believe Casey and Luca? both worked on that.

For preference I think we should try to land pmi8998 into the existing TCPM logic though, as another TypeC port handler within the existing logic.

The important signals above, appear to be driven.

---
bod