[PATCH v2 0/3] USB Mux support for Chipidea

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux