All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] typec switch via mux controller
@ 2021-05-19  7:14 ` Li Jun
  0 siblings, 0 replies; 30+ messages in thread
From: Li Jun @ 2021-05-19  7:14 UTC (permalink / raw)
  To: heikki.krogerus, robh+dt, shawnguo
  Cc: gregkh, linux, linux-usb, linux-imx, jun.li, devicetree,
	linux-arm-kernel

This is a follow up patch set to enable typec orientation swtich
via a simple HW block(e.g. controlled by GPIOs), the implementation
is based on Rob's commment to use existing mux controller bindings,
typec port directly use mux controller consumer API, typec_switch
struct is not used.

Last discussion is here:
https://www.spinics.net/lists/linux-usb/msg205492.html

Li Jun (4):
  dt-bindings: connector: Add typec orientation switch properties
  usb: typec: use typec cap fwnode's of_node for typec port
  usb: typec: add typec orientation switch support via mux controller
  arm64: dts: imx8mp-evk: enable usb0 with typec connector

 .../bindings/connector/usb-connector.yaml     |  21 ++++
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  | 110 ++++++++++++++++++
 drivers/usb/typec/class.c                     |  28 ++++-
 drivers/usb/typec/class.h                     |   2 +
 drivers/usb/typec/mux.c                       |  34 ++++++
 include/linux/usb/typec_mux.h                 |   4 +
 6 files changed, 198 insertions(+), 1 deletion(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 30+ messages in thread
* [PATCH 0/4] typec orientation switch support via mux controller
@ 2022-08-22 15:35 Xu Yang
  2022-08-22 15:35   ` Xu Yang
  0 siblings, 1 reply; 30+ messages in thread
From: Xu Yang @ 2022-08-22 15:35 UTC (permalink / raw)
  To: heikki.krogerus, robh+dt, peda, shawnguo
  Cc: gregkh, linux, jun.li, xu.yang_2, linux-usb, linux-imx,
	devicetree, linux-arm-kernel

Since typec port support flip-ability, there may need various swithes to
set correct path for SuperSpeed or Sideband use cases. As a common way, mux
controller could complete such tasks in simple cases, such as GPIO-based
swich or reg-based switch. This implementation could be an alternate way to
control orientation switch.

Xu Yang (4):
  dt-bindings: connector: Add typec orientation switch properties
  mux: allow get mux_control from fwnode if of_node is NULL
  usb: typec: mux: add typec orientation switch support via mux
    controller
  arm64: dts: imx8mp-evk: add typec node

 .../bindings/connector/usb-connector.yaml     |  18 +++
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  | 120 ++++++++++++++++++
 drivers/mux/core.c                            |   3 +
 drivers/usb/typec/mux.c                       |  74 +++++++++++
 include/linux/usb/typec_mux.h                 |   7 +-
 5 files changed, 217 insertions(+), 5 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-08-22  7:35 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19  7:14 [PATCH 0/4] typec switch via mux controller Li Jun
2021-05-19  7:14 ` Li Jun
2021-05-19  7:14 ` [PATCH 1/4] dt-bindings: connector: Add typec orientation switch properties Li Jun
2021-05-19  7:14   ` Li Jun
2021-05-21  1:30   ` Rob Herring
2021-05-21  1:30     ` Rob Herring
2021-05-25 11:48     ` Jun Li
2021-05-25 11:48       ` Jun Li
2021-05-19  7:14 ` [PATCH 2/4] usb: typec: use typec cap fwnode's of_node for typec port Li Jun
2021-05-19  7:14   ` Li Jun
2021-05-20 12:38   ` Heikki Krogerus
2021-05-20 12:38     ` Heikki Krogerus
2021-05-19  7:14 ` [PATCH 3/4] usb: typec: add typec orientation switch support via mux controller Li Jun
2021-05-19  7:14   ` Li Jun
2021-05-20 12:33   ` Heikki Krogerus
2021-05-20 12:33     ` Heikki Krogerus
2021-05-21  8:37     ` Heikki Krogerus
2021-05-21  8:37       ` Heikki Krogerus
2021-05-25 11:46       ` Jun Li
2021-05-25 11:46         ` Jun Li
2021-05-26  9:16         ` Heikki Krogerus
2021-05-26  9:16           ` Heikki Krogerus
2021-05-31 11:58           ` Jun Li
2021-05-31 11:58             ` Jun Li
2021-05-21 13:02     ` Jun Li
2021-05-21 13:02       ` Jun Li
2021-05-19  7:14 ` [PATCH 4/4] arm64: dts: imx8mp-evk: enable usb0 with typec connector Li Jun
2021-05-19  7:14   ` Li Jun
2022-08-22 15:35 [PATCH 0/4] typec orientation switch support via mux controller Xu Yang
2022-08-22 15:35 ` [PATCH 1/4] dt-bindings: connector: Add typec orientation switch properties Xu Yang
2022-08-22 15:35   ` Xu Yang

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.