From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Jun Li <jun.li@nxp.com>
Cc: "robh+dt@kernel.org" <robh+dt@kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"hdegoede@redhat.com" <hdegoede@redhat.com>,
"andy.shevchenko@gmail.com" <andy.shevchenko@gmail.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
dl-linux-imx <linux-imx@nxp.com>
Subject: [2/2] usb: typec: add typec switch via GPIO control
Date: Wed, 27 Feb 2019 11:40:31 +0200 [thread overview]
Message-ID: <20190227094031.GD27730@kuha.fi.intel.com> (raw)
On Mon, Feb 25, 2019 at 07:27:08AM +0000, Jun Li wrote:
> This patch adds a simple typec switch driver which only needs
> a GPIO to switch the super speed active channel according to
> typec orientation.
>
> Signed-off-by: Li Jun <jun.li@nxp.com>
> ---
> drivers/usb/typec/mux/Kconfig | 6 +++
> drivers/usb/typec/mux/Makefile | 1 +
> drivers/usb/typec/mux/gpio-switch.c | 105 ++++++++++++++++++++++++++++++++++++
> 3 files changed, 112 insertions(+)
> create mode 100644 drivers/usb/typec/mux/gpio-switch.c
>
> diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig
> index 01ed0d5..bc7d3c7 100644
> --- a/drivers/usb/typec/mux/Kconfig
> +++ b/drivers/usb/typec/mux/Kconfig
> @@ -9,4 +9,10 @@ config TYPEC_MUX_PI3USB30532
> Say Y or M if your system has a Pericom PI3USB30532 Type-C cross
> switch / mux chip found on some devices with a Type-C port.
>
> +config TYPEC_SWITCH_GPIO
> + tristate "Simple Super Speed Active Switch via GPIO"
depends on GPIOLIB?
> + help
> + Say Y or M if your system has a typec super speed channel
> + switch via a simple GPIO control.
> +
thanks,
WARNING: multiple messages have this Message-ID (diff)
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Jun Li <jun.li@nxp.com>
Cc: "robh+dt@kernel.org" <robh+dt@kernel.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"hdegoede@redhat.com" <hdegoede@redhat.com>,
"andy.shevchenko@gmail.com" <andy.shevchenko@gmail.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
dl-linux-imx <linux-imx@nxp.com>
Subject: Re: [PATCH 2/2] usb: typec: add typec switch via GPIO control
Date: Wed, 27 Feb 2019 11:40:31 +0200 [thread overview]
Message-ID: <20190227094031.GD27730@kuha.fi.intel.com> (raw)
In-Reply-To: <1551078369-1654-2-git-send-email-jun.li@nxp.com>
On Mon, Feb 25, 2019 at 07:27:08AM +0000, Jun Li wrote:
> This patch adds a simple typec switch driver which only needs
> a GPIO to switch the super speed active channel according to
> typec orientation.
>
> Signed-off-by: Li Jun <jun.li@nxp.com>
> ---
> drivers/usb/typec/mux/Kconfig | 6 +++
> drivers/usb/typec/mux/Makefile | 1 +
> drivers/usb/typec/mux/gpio-switch.c | 105 ++++++++++++++++++++++++++++++++++++
> 3 files changed, 112 insertions(+)
> create mode 100644 drivers/usb/typec/mux/gpio-switch.c
>
> diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig
> index 01ed0d5..bc7d3c7 100644
> --- a/drivers/usb/typec/mux/Kconfig
> +++ b/drivers/usb/typec/mux/Kconfig
> @@ -9,4 +9,10 @@ config TYPEC_MUX_PI3USB30532
> Say Y or M if your system has a Pericom PI3USB30532 Type-C cross
> switch / mux chip found on some devices with a Type-C port.
>
> +config TYPEC_SWITCH_GPIO
> + tristate "Simple Super Speed Active Switch via GPIO"
depends on GPIOLIB?
> + help
> + Say Y or M if your system has a typec super speed channel
> + switch via a simple GPIO control.
> +
thanks,
--
heikki
next reply other threads:[~2019-02-27 9:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-27 9:40 Heikki Krogerus [this message]
2019-02-27 9:40 ` [PATCH 2/2] usb: typec: add typec switch via GPIO control Heikki Krogerus
-- strict thread matches above, loose matches on Subject: below --
2019-02-28 9:10 [2/2] " Jun Li
2019-02-28 9:10 ` [PATCH 2/2] " Jun Li
2019-02-28 9:05 [2/2] " Jun Li
2019-02-28 9:05 ` [PATCH 2/2] " Jun Li
2019-02-26 7:25 [2/2] " Andy Shevchenko
2019-02-26 7:25 ` [PATCH 2/2] " Andy Shevchenko
2019-02-25 7:27 [2/2] " Jun Li
2019-02-25 7:27 ` [PATCH 2/2] " Jun Li
2019-02-25 7:27 [1/2] dt-bindings: usb: add documentation for typec switch via GPIO Jun Li
2019-02-25 7:27 ` [PATCH 1/2] " Jun Li
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=20190227094031.GD27730@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=jun.li@nxp.com \
--cc=linux-imx@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@kernel.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 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.