linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] USB Mux support for Chipidea
@ 2017-07-14 21:40 Stephen Boyd
  2017-07-14 21:40 ` [PATCH v2 1/3] mux: Add mux_control_get_optional() API Stephen Boyd
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Stephen Boyd @ 2017-07-14 21:40 UTC (permalink / raw)
  To: linux-arm-kernel

This patchset adds support for the TC7USB40MU usb mux found on 
db410c 96boards platforms via the new multiplexer framework and
hooks that into the chipidea driver. This allows us to properly
control host or device mode on this board via the sysfs knob.

So far I've only tested this on db410c, so I need to test it on
db8974 and ifc6410 still. But role switching and cable connect/disconnect
on the micro-usb port and gadget looks to be working on db410c.

Changes from v1:
 * Dropped mux driver and used gpio-mux instead
 * Fixed role switch by moving mux selecting in udc.c to right place

TODO:

 1. The userspace side of things is murky. What is expected to go and toggle
    the host/gadget side of things in userspace at this very specific location
    for chipidea devices?

Stephen Boyd (3):
  mux: Add mux_control_get_optional() API
  usb: chipidea: Hook into mux framework to toggle usb switch
  arm64: dts: qcom: Collapse usb support into one node

 .../devicetree/bindings/usb/ci-hdrc-usb2.txt       |  6 ++
 Documentation/driver-model/devres.txt              |  1 +
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi          | 38 +++++----
 arch/arm64/boot/dts/qcom/msm8916.dtsi              | 62 +++++++-------
 drivers/mux/mux-core.c                             | 98 +++++++++++++++++-----
 drivers/usb/chipidea/Kconfig                       |  1 +
 drivers/usb/chipidea/core.c                        |  5 ++
 drivers/usb/chipidea/host.c                        |  7 ++
 drivers/usb/chipidea/udc.c                         | 13 ++-
 include/linux/mux/consumer.h                       |  4 +
 include/linux/usb/chipidea.h                       |  2 +
 11 files changed, 166 insertions(+), 71 deletions(-)

-- 
2.10.0.297.gf6727b0

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

end of thread, other threads:[~2017-08-30 20:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-14 21:40 [PATCH v2 0/3] USB Mux support for Chipidea Stephen Boyd
2017-07-14 21:40 ` [PATCH v2 1/3] mux: Add mux_control_get_optional() API Stephen Boyd
2017-07-17  8:20   ` Peter Rosin
2017-07-19  2:08     ` Stephen Boyd
2017-07-19  7:15       ` Peter Rosin
2017-07-19 18:02         ` Stephen Boyd
2017-07-14 21:40 ` [PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch Stephen Boyd
2017-07-18  4:41   ` Peter Chen
2017-07-19  1:47     ` Stephen Boyd
2017-07-19  2:05       ` Peter Chen
2017-07-31 10:33   ` Peter Rosin
2017-08-08  1:51     ` Stephen Boyd
2017-08-08 12:46       ` Peter Rosin
2017-08-11 22:26         ` Stephen Boyd
2017-08-15 11:36           ` Peter Rosin
2017-07-14 21:40 ` [PATCH v2 3/3] arm64: dts: qcom: Collapse usb support into one node Stephen Boyd
2017-08-17  6:43   ` Shawn Guo
2017-08-30 20:45     ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).