RE: [PATCH 2/2] usb: typec: add typec switch via GPIO control

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

 




> -----Original Message-----
> From: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
> Sent: 2019年2月27日 17:41
> To: Jun Li <jun.li@xxxxxxx>
> Cc: robh+dt@xxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx; hdegoede@xxxxxxxxxx;
> andy.shevchenko@xxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx;
> devicetree@xxxxxxxxxxxxxxx; dl-linux-imx <linux-imx@xxxxxxx>
> Subject: Re: [PATCH 2/2] usb: typec: add typec switch via GPIO control
> 
> 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@xxxxxxx>
> > ---
> >  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?

Yes, you are right, will add it in v2.

Thanks
Li Jun
> 
> > +	help
> > +	  Say Y or M if your system has a typec super speed channel
> > +	  switch via a simple GPIO control.
> > +
> 
> thanks,
> 
> --
> heikki




[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