All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] usb: typec: Introduce typec-switch binding
@ 2022-06-09 18:09 ` Prashant Malani
  0 siblings, 0 replies; 58+ messages in thread
From: Prashant Malani @ 2022-06-09 18:09 UTC (permalink / raw)
  To: linux-kernel, linux-usb
  Cc: bleung, swboyd, heikki.krogerus, Prashant Malani, Andrzej Hajda,
	AngeloGioacchino Del Regno, Daniel Vetter, David Airlie,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list:DRM DRIVERS, Greg Kroah-Hartman, Hsin-Yi Wang,
	Jernej Skrabec, Jonas Karlman, José Expósito,
	Krzysztof Kozlowski, Laurent Pinchart, Maxime Ripard,
	Neil Armstrong, Nícolas F. R. A. Prado, Pin-Yen Lin,
	Robert Foss, Rob Herring, Sam Ravnborg, Thomas Zimmermann,
	Tzung-Bi Shih, Xin Ji

This series introduces a binding for Type-C data lane switches. These
control the routing and operating modes of USB Type-C data lanes based
on the PD messaging from the Type-C port driver regarding connected
peripherals.

The first patch introduces a change to the Type-C mux class mode-switch
matching code, while the second adds a config guard to a Type-C header.
The next couple of patches introduce the new "typec-switch" binding as
well as one user of it (the ANX7625 drm bridge).

The remaining patches add functionality to the anx7625 driver to
register the mode-switches, as well as program its crosspoint
switch depending on which Type-C port has a DisplayPort (DP) peripheral
connected to it.

v1: https://lore.kernel.org/linux-usb/20220607190131.1647511-1-pmalani@chromium.org/

Changes since v1:
- Fixed function signature error in "else case" of typec_mux.h
- typec-switch.yaml: Fixed indentation, compatible, and node names in examples.
- anx7625.yaml:
    + Introduced patternProperties for "switch" children (suggested by Krzysztof Kozlowski).
    + Added unevaluatedProperties descriptor (suggested by Krzysztof Kozlowski).
    + Added "address-cells" and "size-cells" properties to "switches".

Pin-Yen Lin (1):
  drm/bridge: anx7625: Add typec_mux_set callback function

Prashant Malani (6):
  usb: typec: mux: Allow muxes to specify mode-switch
  usb: typec: mux: Add CONFIG guards for functions
  dt-bindings: usb: Add Type-C switch binding
  dt-bindings: drm/bridge: anx7625: Add mode-switch support
  drm/bridge: anx7625: Register number of Type C switches
  drm/bridge: anx7625: Register Type-C mode switches

 .../display/bridge/analogix,anx7625.yaml      |  63 ++++++++
 .../devicetree/bindings/usb/typec-switch.yaml |  74 +++++++++
 drivers/gpu/drm/bridge/analogix/anx7625.c     | 151 ++++++++++++++++++
 drivers/gpu/drm/bridge/analogix/anx7625.h     |  20 +++
 drivers/usb/typec/mux.c                       |   8 +-
 include/linux/usb/typec_mux.h                 |  38 +++++
 6 files changed, 352 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/usb/typec-switch.yaml

-- 
2.36.1.476.g0c4daa206d-goog


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

end of thread, other threads:[~2022-06-15 17:01 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 18:09 [PATCH v2 0/7] usb: typec: Introduce typec-switch binding Prashant Malani
2022-06-09 18:09 ` Prashant Malani
2022-06-09 18:09 ` [PATCH v2 1/7] usb: typec: mux: Allow muxes to specify mode-switch Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-14  7:42   ` Heikki Krogerus
2022-06-14  7:42     ` Heikki Krogerus
2022-06-14  8:27   ` AngeloGioacchino Del Regno
2022-06-14  8:27     ` AngeloGioacchino Del Regno
2022-06-09 18:09 ` [PATCH v2 2/7] usb: typec: mux: Add CONFIG guards for functions Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-14  8:10   ` Heikki Krogerus
2022-06-14  8:10     ` Heikki Krogerus
2022-06-14  8:27   ` AngeloGioacchino Del Regno
2022-06-14  8:27     ` AngeloGioacchino Del Regno
2022-06-09 18:09 ` [PATCH v2 3/7] dt-bindings: usb: Add Type-C switch binding Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-13 20:38   ` Nícolas F. R. A. Prado
2022-06-13 20:38     ` Nícolas F. R. A. Prado
2022-06-13 20:44     ` Prashant Malani
2022-06-13 20:44       ` Prashant Malani
2022-06-09 18:09 ` [PATCH v2 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-09 18:09 ` [PATCH v2 5/7] drm/bridge: anx7625: Register number of Type C switches Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-13 20:45   ` Nícolas F. R. A. Prado
2022-06-13 20:45     ` Nícolas F. R. A. Prado
2022-06-13 20:48     ` Prashant Malani
2022-06-13 20:48       ` Prashant Malani
2022-06-14  8:22   ` AngeloGioacchino Del Regno
2022-06-14  8:22     ` AngeloGioacchino Del Regno
2022-06-14 18:13     ` Prashant Malani
2022-06-14 18:13       ` Prashant Malani
2022-06-09 18:09 ` [PATCH v2 6/7] drm/bridge: anx7625: Register Type-C mode switches Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-14  8:18   ` AngeloGioacchino Del Regno
2022-06-14  8:18     ` AngeloGioacchino Del Regno
2022-06-14 16:57     ` Prashant Malani
2022-06-14 16:57       ` Prashant Malani
2022-06-15  8:45       ` AngeloGioacchino Del Regno
2022-06-15  8:45         ` AngeloGioacchino Del Regno
2022-06-15 17:00         ` Prashant Malani
2022-06-15 17:00           ` Prashant Malani
2022-06-09 18:09 ` [PATCH v2 7/7] drm/bridge: anx7625: Add typec_mux_set callback function Prashant Malani
2022-06-09 18:09   ` Prashant Malani
2022-06-13 20:51   ` Nícolas F. R. A. Prado
2022-06-13 20:51     ` Nícolas F. R. A. Prado
2022-06-13 21:31     ` Prashant Malani
2022-06-13 21:31       ` Prashant Malani
2022-06-14  8:15   ` AngeloGioacchino Del Regno
2022-06-14  8:15     ` AngeloGioacchino Del Regno
2022-06-14  9:08     ` Pin-yen Lin
2022-06-14  9:08       ` Pin-yen Lin
2022-06-14 16:58       ` Prashant Malani
2022-06-14 16:58         ` Prashant Malani
2022-06-15 13:57         ` AngeloGioacchino Del Regno
2022-06-15 13:57           ` AngeloGioacchino Del Regno
2022-06-13 20:58 ` [PATCH v2 0/7] usb: typec: Introduce typec-switch binding Nícolas F. R. A. Prado
2022-06-13 20:58   ` Nícolas F. R. A. Prado

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.