From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754047AbbIJPLU (ORCPT ); Thu, 10 Sep 2015 11:11:20 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:35372 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbbIJPLS (ORCPT ); Thu, 10 Sep 2015 11:11:18 -0400 Date: Thu, 10 Sep 2015 10:11:15 -0500 From: Felipe Balbi 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" Subject: Re: Chipidea ULPI driver Message-ID: <20150910151115.GI8982@saruman.tx.rr.com> Reply-To: References: <20150910144349.GH8982@saruman.tx.rr.com> <03CA77BA8AF6F1469AEDFBDA1322A7B749FFA9BC@XAP-PVEXMBX02.xlnx.xilinx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HuscSE0D68UGttcd" Content-Disposition: inline In-Reply-To: <03CA77BA8AF6F1469AEDFBDA1322A7B749FFA9BC@XAP-PVEXMBX02.xlnx.xilinx.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HuscSE0D68UGttcd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable (break your lines at 80-characters) On Thu, Sep 10, 2015 at 02:57:49PM +0000, Punnaiah Choudary Kalluri wrote: >=20 >=20 > > -----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 > >=20 > > (break your lines at 80-characters) > >=20 > > On Thu, Sep 10, 2015 at 12:44:58PM +0000, Subbaraya Sundeep Bhatta wrot= e: > > > 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. > >=20 > > this >=20 > 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. --=20 balbi --HuscSE0D68UGttcd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJV8Z2TAAoJEIaOsuA1yqREhTAP/iEpM5asjgIKSep2sDWzDRNt 467ctZzKKv8cSaFVDAzBrJpdjF/Dxmb3N0e5bNLCllWl3IA8TQZSA/JbLPbCd5qc nanHrjr1XFuYA41Cnqun4WTDz5qFNkXIL9z6pn7yp9CfW85+bK/PNwKMwgAm4DRE F1VB4R6IX8FhZaLu66QS71/i2Ex+PNcGgA36Zvw9IdlfGVW7S4219XT+FE9OvQJn USCBwPPFIFtMHwFUlUWJy3TbVSHmsWH4AiwqYpB3EwYr090ULU3AYChKLhPxbIvC cz1J0359UniiLduhf6bD41v+gcVqnd6ea+mnMzk12fCLicuC3BPHOoUCM32YsbHb Uwuuh82W4ayiYHXorKI/+ZUNESU65XMJ5SMVRBAOW9kk3nOwxfqyd9OBebJtwuO/ 6gIu9SG4XjdHhB1OxiPlwXbStaLddImI4MQSb0uMyfA5SBBiSHz0UaqFIg2GfGoy 4maJE7dQM6GLaFGq9zcAL8BA6uDcd86XtDbAJyR4k+FMlXiUMvGNcpkgvwQ6MPWB fHMKKFBYImI6brjg4hJjPnkk0r9+yY2qVpu2SzPqeHJ06YDz009P3a6Jwrrz9tya /uD8w5p4rCrvlLxNU+GDSh+wSs5A9YBoR2+Wx0MzZqB5Ehb9f7/M0MGrE4XRq9+6 Iq/omFAnEee0TkpWXY4t =DzEV -----END PGP SIGNATURE----- --HuscSE0D68UGttcd--