From: stephen.boyd@linaro.org (Stephen Boyd)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/3] USB Mux support for Chipidea
Date: Fri, 14 Jul 2017 14:40:02 -0700 [thread overview]
Message-ID: <20170714214005.14967-1-stephen.boyd@linaro.org> (raw)
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
next reply other threads:[~2017-07-14 21:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 21:40 Stephen Boyd [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170714214005.14967-1-stephen.boyd@linaro.org \
--to=stephen.boyd@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).