mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] usb: typec: qcom: Add shared USBIN VBUS detection via GPIO
@ 2026-03-08 23:20 Alexander Koskovich
  2026-03-08 23:20 ` [PATCH RFC 1/2] dt-bindings: usb: qcom,pmic-typec: Document vbus-detect-gpios property Alexander Koskovich
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Alexander Koskovich @ 2026-03-08 23:20 UTC (permalink / raw)
  To: Bryan O'Donoghue, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Heikki Krogerus
  Cc: linux-arm-msm, linux-usb, devicetree, linux-kernel, Alexander Koskovich

The ASUS ROG Phone 3 has two USB-C ports whose VBUS lines are both
wired to the single USBIN input on the PM8150B PMIC. This means the
Type-C port controller cannot distinguish which port is providing
VBUS, causing one port to be unusable when the other has VBUS present
from a charger or PC.

The downstream vendor driver also appears to be touching
TYPE_C_CRUDE_SENSOR_CFG_REG for restoring CC detection after enabling
BYPASS_VSAFE0V but does not appear to be necessary with the upstream
TCPM stack?

Feedback on whether additional register configuration is needed would be
appreciated, but functionally this appears to work as is. After these
changes and configuring the property in DTS I am able to use a flash
drive on the side USB port (pm8150b_typec) while I am connected to a
charger or my PC via the bottom USB port (rt1715).

Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
---
Alexander Koskovich (2):
      dt-bindings: usb: qcom,pmic-typec: Document vbus-detect-gpios property
      usb: typec: qcom: Add support for shared USBIN VBUS detection

 .../devicetree/bindings/usb/qcom,pmic-typec.yaml   |  6 +++
 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 46 +++++++++++++++++++++-
 2 files changed, 50 insertions(+), 2 deletions(-)
---
base-commit: 11439c4635edd669ae435eec308f4ab8a0804808
change-id: 20260308-qcom-typec-shared-vbus-7d37c6b2d155

Best regards,
-- 
Alexander Koskovich <akoskovich@pm.me>



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

end of thread, other threads:[~2026-03-16 10:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-08 23:20 [PATCH RFC 0/2] usb: typec: qcom: Add shared USBIN VBUS detection via GPIO Alexander Koskovich
2026-03-08 23:20 ` [PATCH RFC 1/2] dt-bindings: usb: qcom,pmic-typec: Document vbus-detect-gpios property Alexander Koskovich
2026-03-11 23:02   ` Bryan O'Donoghue
2026-03-16 10:15     ` Konrad Dybcio
2026-03-12  2:34   ` Dmitry Baryshkov
2026-03-12  2:59     ` Alexander Koskovich
2026-03-08 23:20 ` [PATCH RFC 2/2] usb: typec: qcom: Add support for shared USBIN VBUS detection Alexander Koskovich
2026-03-11 13:01   ` Konrad Dybcio
2026-03-11 14:39     ` Bryan O'Donoghue
2026-03-11 16:24     ` Alexander Koskovich
2026-03-11 23:05   ` Bryan O'Donoghue
2026-03-12  6:18     ` Alexander Koskovich
2026-03-11 14:50 ` [PATCH RFC 0/2] usb: typec: qcom: Add shared USBIN VBUS detection via GPIO Bryan O'Donoghue
2026-03-11 17:37   ` Alexander Koskovich
2026-03-11 23:00     ` Bryan O'Donoghue

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

all inboxes | Powered by JetHome®