public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Chipidea ULPI driver
       [not found] <F1B223389110CE49B4CF055ABA2E5D3D78C7EB88@XAP-PVEXMBX02.xlnx.xilinx.com>
@ 2015-09-10 14:43 ` Felipe Balbi
  2015-09-10 14:57   ` Punnaiah Choudary Kalluri
  0 siblings, 1 reply; 7+ messages in thread
From: Felipe Balbi @ 2015-09-10 14:43 UTC (permalink / raw)
  To: Subbaraya Sundeep Bhatta
  Cc: Peter Chen, balbi@ti.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com,
	Punnaiah Choudary Kalluri

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

(break your lines at 80-characters)

On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta wrote:
> Hi Peter,
> 
> We are using NOP transceiver driver for USB3320 ULPI PHY with ChipIdea
> controller.
> 
> Recently we found that one of the boards (zedboard) requires PHY
> register access to set VBUS.
> 
> Note that our local driver we had before migrating to ChipIdea driver
> calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> 
> Can you please let me know how to do this with ChipIdea case? I see
> the following solutions:
> 
> 1. Write ULPI driver for USB3320 similar to tusb1210.

this

> 2. Write ci_hdrc_zynq.c which does PHY access required for Zynq.

not this

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* RE: Chipidea ULPI driver
  2015-09-10 14:43 ` Chipidea ULPI driver Felipe Balbi
@ 2015-09-10 14:57   ` Punnaiah Choudary Kalluri
  2015-09-10 15:11     ` Felipe Balbi
  2015-09-11  1:22     ` Peter Chen
  0 siblings, 2 replies; 7+ messages in thread
From: Punnaiah Choudary Kalluri @ 2015-09-10 14:57 UTC (permalink / raw)
  To: balbi@ti.com, Subbaraya Sundeep Bhatta
  Cc: Peter Chen, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com



> -----Original Message-----
> From: Felipe Balbi [mailto:balbi@ti.com]
> Sent: Thursday, September 10, 2015 8:14 PM
> To: Subbaraya Sundeep Bhatta
> Cc: Peter Chen; balbi@ti.com; linux-usb@vger.kernel.org; linux-
> kernel@vger.kernel.org; Greg Kroah-Hartman
> (gregkh@linuxfoundation.org); kishon@ti.com; Punnaiah Choudary Kalluri
> Subject: Re: Chipidea ULPI driver
> 
> (break your lines at 80-characters)
> 
> On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta wrote:
> > Hi Peter,
> >
> > We are using NOP transceiver driver for USB3320 ULPI PHY with ChipIdea
> > controller.
> >
> > Recently we found that one of the boards (zedboard) requires PHY
> > register access to set VBUS.
> >
> > Note that our local driver we had before migrating to ChipIdea driver
> > calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> > ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> >
> > Can you please let me know how to do this with ChipIdea case? I see
> > the following solutions:
> >
> > 1. Write ULPI driver for USB3320 similar to tusb1210.
> 
> this

How about extending the phy-ulpi driver to use it as platform driver?
So that boards that are using the ulpi compatible phy and driving vbus from the phy
can use this driver.

Regards,
Punnaiah
> 
> > 2. Write ci_hdrc_zynq.c which does PHY access required for Zynq.
> 
> not this
> 
> --
> balbi

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

* Re: Chipidea ULPI driver
  2015-09-10 14:57   ` Punnaiah Choudary Kalluri
@ 2015-09-10 15:11     ` Felipe Balbi
  2015-09-11  1:22     ` Peter Chen
  1 sibling, 0 replies; 7+ messages in thread
From: Felipe Balbi @ 2015-09-10 15:11 UTC (permalink / raw)
  To: Punnaiah Choudary Kalluri
  Cc: balbi@ti.com, Subbaraya Sundeep Bhatta, Peter Chen,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com

[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]

(break your lines at 80-characters)

On Thu, Sep 10, 2015 at 02:57:49PM +0000, Punnaiah Choudary Kalluri wrote:
> 
> 
> > -----Original Message-----
> > From: Felipe Balbi [mailto:balbi@ti.com]
> > Sent: Thursday, September 10, 2015 8:14 PM
> > To: Subbaraya Sundeep Bhatta
> > Cc: Peter Chen; balbi@ti.com; linux-usb@vger.kernel.org; linux-
> > kernel@vger.kernel.org; Greg Kroah-Hartman
> > (gregkh@linuxfoundation.org); kishon@ti.com; Punnaiah Choudary Kalluri
> > Subject: Re: Chipidea ULPI driver
> > 
> > (break your lines at 80-characters)
> > 
> > On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta wrote:
> > > Hi Peter,
> > >
> > > We are using NOP transceiver driver for USB3320 ULPI PHY with ChipIdea
> > > controller.
> > >
> > > Recently we found that one of the boards (zedboard) requires PHY
> > > register access to set VBUS.
> > >
> > > Note that our local driver we had before migrating to ChipIdea driver
> > > calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> > > ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> > >
> > > Can you please let me know how to do this with ChipIdea case? I see
> > > the following solutions:
> > >
> > > 1. Write ULPI driver for USB3320 similar to tusb1210.
> > 
> > this
> 
> How about extending the phy-ulpi driver to use it as platform driver?

this is already doable. See drivers/usb/phy/phy-am335x.c, see how it
uses nop as a library and just adds its own stuff on top.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: Chipidea ULPI driver
  2015-09-10 14:57   ` Punnaiah Choudary Kalluri
  2015-09-10 15:11     ` Felipe Balbi
@ 2015-09-11  1:22     ` Peter Chen
  2015-09-11 11:34       ` Subbaraya Sundeep Bhatta
  2015-09-11 16:08       ` Subbaraya Sundeep Bhatta
  1 sibling, 2 replies; 7+ messages in thread
From: Peter Chen @ 2015-09-11  1:22 UTC (permalink / raw)
  To: Punnaiah Choudary Kalluri
  Cc: balbi@ti.com, Subbaraya Sundeep Bhatta, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com

On Thu, Sep 10, 2015 at 02:57:49PM +0000, Punnaiah Choudary Kalluri wrote:
> 
> 
> > -----Original Message-----
> > From: Felipe Balbi [mailto:balbi@ti.com]
> > Sent: Thursday, September 10, 2015 8:14 PM
> > To: Subbaraya Sundeep Bhatta
> > Cc: Peter Chen; balbi@ti.com; linux-usb@vger.kernel.org; linux-
> > kernel@vger.kernel.org; Greg Kroah-Hartman
> > (gregkh@linuxfoundation.org); kishon@ti.com; Punnaiah Choudary Kalluri
> > Subject: Re: Chipidea ULPI driver
> > 
> > (break your lines at 80-characters)
> > 
> > On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta wrote:
> > > Hi Peter,
> > >
> > > We are using NOP transceiver driver for USB3320 ULPI PHY with ChipIdea
> > > controller.
> > >
> > > Recently we found that one of the boards (zedboard) requires PHY
> > > register access to set VBUS.
> > >
> > > Note that our local driver we had before migrating to ChipIdea driver
> > > calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> > > ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> > >
> > > Can you please let me know how to do this with ChipIdea case? I see
> > > the following solutions:
> > >
> > > 1. Write ULPI driver for USB3320 similar to tusb1210.
> > 
> > this
> 
> How about extending the phy-ulpi driver to use it as platform driver?
> So that boards that are using the ulpi compatible phy and driving vbus from the phy
> can use this driver.
> 

Yes, you can improve phy-ulpi driver, and it can not depend on
NOP transceiver driver.

-- 

Best Regards,
Peter Chen

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

* RE: Chipidea ULPI driver
  2015-09-11  1:22     ` Peter Chen
@ 2015-09-11 11:34       ` Subbaraya Sundeep Bhatta
  2015-09-14  5:17         ` Peter Chen
  2015-09-11 16:08       ` Subbaraya Sundeep Bhatta
  1 sibling, 1 reply; 7+ messages in thread
From: Subbaraya Sundeep Bhatta @ 2015-09-11 11:34 UTC (permalink / raw)
  To: Peter Chen, Punnaiah Choudary Kalluri
  Cc: balbi@ti.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com

Hi,

> -----Original Message-----
> From: Peter Chen [mailto:peter.chen@freescale.com]
> Sent: Friday, September 11, 2015 6:52 AM
> To: Punnaiah Choudary Kalluri
> Cc: balbi@ti.com; Subbaraya Sundeep Bhatta; linux-usb@vger.kernel.org; linux-
> kernel@vger.kernel.org; Greg Kroah-Hartman (gregkh@linuxfoundation.org);
> kishon@ti.com
> Subject: Re: Chipidea ULPI driver
> 
> On Thu, Sep 10, 2015 at 02:57:49PM +0000, Punnaiah Choudary Kalluri wrote:
> >
> >
> > > -----Original Message-----
> > > From: Felipe Balbi [mailto:balbi@ti.com]
> > > Sent: Thursday, September 10, 2015 8:14 PM
> > > To: Subbaraya Sundeep Bhatta
> > > Cc: Peter Chen; balbi@ti.com; linux-usb@vger.kernel.org; linux-
> > > kernel@vger.kernel.org; Greg Kroah-Hartman
> > > (gregkh@linuxfoundation.org); kishon@ti.com; Punnaiah Choudary
> > > Kalluri
> > > Subject: Re: Chipidea ULPI driver
> > >
> > > (break your lines at 80-characters)
> > >
> > > On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta
> wrote:
> > > > Hi Peter,
> > > >
> > > > We are using NOP transceiver driver for USB3320 ULPI PHY with
> > > > ChipIdea controller.
> > > >
> > > > Recently we found that one of the boards (zedboard) requires PHY
> > > > register access to set VBUS.
> > > >
> > > > Note that our local driver we had before migrating to ChipIdea
> > > > driver calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> > > > ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> > > >
> > > > Can you please let me know how to do this with ChipIdea case? I
> > > > see the following solutions:
> > > >
> > > > 1. Write ULPI driver for USB3320 similar to tusb1210.
> > >
> > > this
> >
> > How about extending the phy-ulpi driver to use it as platform driver?
> > So that boards that are using the ulpi compatible phy and driving vbus
> > from the phy can use this driver.
> >
> 
> Yes, you can improve phy-ulpi driver, and it can not depend on NOP transceiver
> driver.

AFAIK phy-ulpi.c is just exporting functions and not registering to platform
bus since it is not connected to SOC bus. I don't think we can create platform
driver for this. I have read TUSB1210 data sheet and it is similar to USB3320
with no additional SOC bus connection and has only ULPI interface. 
So it should register to ULPI bus which is in kernel recently. I will make
changes to chipidea similar to dwc3(adding ulpi.c) and write driver similar
to tusb1210.c. Is that okay?

Thanks,
Sundeep

> 
> --
> 
> Best Regards,
> Peter Chen

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

* RE: Chipidea ULPI driver
  2015-09-11  1:22     ` Peter Chen
  2015-09-11 11:34       ` Subbaraya Sundeep Bhatta
@ 2015-09-11 16:08       ` Subbaraya Sundeep Bhatta
  1 sibling, 0 replies; 7+ messages in thread
From: Subbaraya Sundeep Bhatta @ 2015-09-11 16:08 UTC (permalink / raw)
  To: Peter Chen, Punnaiah Choudary Kalluri
  Cc: balbi@ti.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com

Hi,

> -----Original Message-----
> From: Subbaraya Sundeep Bhatta
> Sent: Friday, September 11, 2015 5:04 PM
> To: 'Peter Chen'; Punnaiah Choudary Kalluri
> Cc: balbi@ti.com; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org;
> Greg Kroah-Hartman (gregkh@linuxfoundation.org); kishon@ti.com
> Subject: RE: Chipidea ULPI driver
>
> Hi,
>
> > -----Original Message-----
> > From: Peter Chen [mailto:peter.chen@freescale.com]
> > Sent: Friday, September 11, 2015 6:52 AM
> > To: Punnaiah Choudary Kalluri
> > Cc: balbi@ti.com; Subbaraya Sundeep Bhatta; linux-usb@vger.kernel.org;
> > linux- kernel@vger.kernel.org; Greg Kroah-Hartman
> > (gregkh@linuxfoundation.org); kishon@ti.com
> > Subject: Re: Chipidea ULPI driver
> >
> > On Thu, Sep 10, 2015 at 02:57:49PM +0000, Punnaiah Choudary Kalluri
> wrote:
> > >
> > >
> > > > -----Original Message-----
> > > > From: Felipe Balbi [mailto:balbi@ti.com]
> > > > Sent: Thursday, September 10, 2015 8:14 PM
> > > > To: Subbaraya Sundeep Bhatta
> > > > Cc: Peter Chen; balbi@ti.com; linux-usb@vger.kernel.org; linux-
> > > > kernel@vger.kernel.org; Greg Kroah-Hartman
> > > > (gregkh@linuxfoundation.org); kishon@ti.com; Punnaiah Choudary
> > > > Kalluri
> > > > Subject: Re: Chipidea ULPI driver
> > > >
> > > > (break your lines at 80-characters)
> > > >
> > > > On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta
> > wrote:
> > > > > Hi Peter,
> > > > >
> > > > > We are using NOP transceiver driver for USB3320 ULPI PHY with
> > > > > ChipIdea controller.
> > > > >
> > > > > Recently we found that one of the boards (zedboard) requires PHY
> > > > > register access to set VBUS.
> > > > >
> > > > > Note that our local driver we had before migrating to ChipIdea
> > > > > driver calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> > > > > ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> > > > >
> > > > > Can you please let me know how to do this with ChipIdea case? I
> > > > > see the following solutions:
> > > > >
> > > > > 1. Write ULPI driver for USB3320 similar to tusb1210.
> > > >
> > > > this
> > >
> > > How about extending the phy-ulpi driver to use it as platform driver?
> > > So that boards that are using the ulpi compatible phy and driving
> > > vbus from the phy can use this driver.
> > >
> >
> > Yes, you can improve phy-ulpi driver, and it can not depend on NOP
> > transceiver driver.
>
> AFAIK phy-ulpi.c is just exporting functions and not registering to platform bus
> since it is not connected to SOC bus. I don't think we can create platform driver
> for this. I have read TUSB1210 data sheet and it is similar to USB3320 with no
> additional SOC bus connection and has only ULPI interface.

Sorry, I mean external PHY here.

> So it should register to ULPI bus which is in kernel recently. I will make changes
> to chipidea similar to dwc3(adding ulpi.c) and write driver similar to tusb1210.c.
> Is that okay?
>
> Thanks,
> Sundeep
>
> >
> > --
> >
> > Best Regards,
> > Peter Chen


This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


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

* Re: Chipidea ULPI driver
  2015-09-11 11:34       ` Subbaraya Sundeep Bhatta
@ 2015-09-14  5:17         ` Peter Chen
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Chen @ 2015-09-14  5:17 UTC (permalink / raw)
  To: Subbaraya Sundeep Bhatta
  Cc: Punnaiah Choudary Kalluri, balbi@ti.com,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman (gregkh@linuxfoundation.org), kishon@ti.com

On Fri, Sep 11, 2015 at 11:34:10AM +0000, Subbaraya Sundeep Bhatta wrote:
> Hi,
> 
> > -----Original Message-----
> > From: Peter Chen [mailto:peter.chen@freescale.com]
> > Sent: Friday, September 11, 2015 6:52 AM
> > To: Punnaiah Choudary Kalluri
> > Cc: balbi@ti.com; Subbaraya Sundeep Bhatta; linux-usb@vger.kernel.org; linux-
> > kernel@vger.kernel.org; Greg Kroah-Hartman (gregkh@linuxfoundation.org);
> > kishon@ti.com
> > Subject: Re: Chipidea ULPI driver
> > 
> > On Thu, Sep 10, 2015 at 02:57:49PM +0000, Punnaiah Choudary Kalluri wrote:
> > >
> > >
> > > > -----Original Message-----
> > > > From: Felipe Balbi [mailto:balbi@ti.com]
> > > > Sent: Thursday, September 10, 2015 8:14 PM
> > > > To: Subbaraya Sundeep Bhatta
> > > > Cc: Peter Chen; balbi@ti.com; linux-usb@vger.kernel.org; linux-
> > > > kernel@vger.kernel.org; Greg Kroah-Hartman
> > > > (gregkh@linuxfoundation.org); kishon@ti.com; Punnaiah Choudary
> > > > Kalluri
> > > > Subject: Re: Chipidea ULPI driver
> > > >
> > > > (break your lines at 80-characters)
> > > >
> > > > On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta
> > wrote:
> > > > > Hi Peter,
> > > > >
> > > > > We are using NOP transceiver driver for USB3320 ULPI PHY with
> > > > > ChipIdea controller.
> > > > >
> > > > > Recently we found that one of the boards (zedboard) requires PHY
> > > > > register access to set VBUS.
> > > > >
> > > > > Note that our local driver we had before migrating to ChipIdea
> > > > > driver calls otg_ulpi_create with flags  ULPI_OTG_DRVVBUS |
> > > > > ULPI_OTG_DRVVBUS_EXT so that VBUS is enabled at initialization.
> > > > >
> > > > > Can you please let me know how to do this with ChipIdea case? I
> > > > > see the following solutions:
> > > > >
> > > > > 1. Write ULPI driver for USB3320 similar to tusb1210.
> > > >
> > > > this
> > >
> > > How about extending the phy-ulpi driver to use it as platform driver?
> > > So that boards that are using the ulpi compatible phy and driving vbus
> > > from the phy can use this driver.
> > >
> > 
> > Yes, you can improve phy-ulpi driver, and it can not depend on NOP transceiver
> > driver.
> 
> AFAIK phy-ulpi.c is just exporting functions and not registering to platform
> bus since it is not connected to SOC bus. I don't think we can create platform
> driver for this. I have read TUSB1210 data sheet and it is similar to USB3320
> with no additional SOC bus connection and has only ULPI interface. 
> So it should register to ULPI bus which is in kernel recently. I will make
> changes to chipidea similar to dwc3(adding ulpi.c) and write driver similar
> to tusb1210.c. Is that okay?
> 

It should be ok.

-- 

Best Regards,
Peter Chen

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

end of thread, other threads:[~2015-09-14  6:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <F1B223389110CE49B4CF055ABA2E5D3D78C7EB88@XAP-PVEXMBX02.xlnx.xilinx.com>
2015-09-10 14:43 ` Chipidea ULPI driver Felipe Balbi
2015-09-10 14:57   ` Punnaiah Choudary Kalluri
2015-09-10 15:11     ` Felipe Balbi
2015-09-11  1:22     ` Peter Chen
2015-09-11 11:34       ` Subbaraya Sundeep Bhatta
2015-09-14  5:17         ` Peter Chen
2015-09-11 16:08       ` Subbaraya Sundeep Bhatta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox