Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/4] USB-C TCPM Orientation Support
@ 2024-02-05 16:43 Marco Felsch
  2024-02-05 16:43 ` [PATCH 1/4] dt-bindings: usb: typec-tcpci: add tcpci compatible binding Marco Felsch
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Marco Felsch @ 2024-02-05 16:43 UTC (permalink / raw)
  To: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, linux,
	heikki.krogerus
  Cc: linux-usb, devicetree, linux-kernel, kernel

Hi,

this adds the support to controll the optional connector-orientation
available on some TCPC from the TCPM.

I used an custom board with OnSemi FUSB307B TCPC which is spec [1]
compatible but albeit the spec [1] says that this pin is controlled by
the TCPC if 'TCPC_CONTROL.DebugAccessoryControl = 0' it isn't at least
for this device.

I'm unsure if the usb tcpci spec has an copy'n'paste failure since
'TCPC_CONTROL.DebugAccessoryControl' shouldn't control the state of the
'connector orientation' pin or if the OnSemi FUSB307B has an HW bug.
Because on my device the 'TCPC_CONTROL.DebugAccessoryControl' is set to
0 but the register wasn't updated automatically.

Regards,
  Marco

[1] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf

Marco Felsch (4):
  dt-bindings: usb: typec-tcpci: add tcpci compatible binding
  usb: typec: tcpci: add generic tcpci compatible
  usb: typec: tcpm: add support to set tcpc connector orientatition
  usb: typec: tcpci: add support to set connector orientation

 .../devicetree/bindings/usb/nxp,ptn5110.yaml  |  4 +-
 drivers/usb/typec/tcpm/tcpci.c                | 44 +++++++++++++++++++
 drivers/usb/typec/tcpm/tcpm.c                 |  6 +++
 include/linux/usb/tcpci.h                     |  8 ++++
 include/linux/usb/tcpm.h                      |  2 +
 5 files changed, 63 insertions(+), 1 deletion(-)

-- 
2.39.2


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

end of thread, other threads:[~2024-02-07 10:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 16:43 [PATCH 0/4] USB-C TCPM Orientation Support Marco Felsch
2024-02-05 16:43 ` [PATCH 1/4] dt-bindings: usb: typec-tcpci: add tcpci compatible binding Marco Felsch
2024-02-06 14:21   ` Krzysztof Kozlowski
2024-02-06 14:52     ` Marco Felsch
2024-02-06 14:57       ` Marco Felsch
2024-02-06 15:58       ` Krzysztof Kozlowski
2024-02-07  9:05         ` Marco Felsch
2024-02-07  9:57           ` Krzysztof Kozlowski
2024-02-07 10:08             ` Marco Felsch
2024-02-05 16:43 ` [PATCH 2/4] usb: typec: tcpci: add generic tcpci compatible Marco Felsch
2024-02-05 16:43 ` [PATCH 3/4] usb: typec: tcpm: add support to set tcpc connector orientatition Marco Felsch
2024-02-05 16:43 ` [PATCH 4/4] usb: typec: tcpci: add support to set connector orientation Marco Felsch
2024-02-05 16:51   ` Dr. David Alan Gilbert
2024-02-05 16:54     ` Marco Felsch
2024-02-05 17:11       ` Guenter Roeck
2024-02-05 17:32         ` Marco Felsch

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