[PATCH v1 0/9] adding dual instance and usb-phy support for am335x platform

2013-05-22 Thread Ravi Babu
This patch set series
- adds dual musb instances support for am335x platform
- adds phy-dsps-usb driver based on TI's gs70 driver
- adds DT bindings for am33xx usb-phy
- removed references to usb-nop-xceiv from musb

has been verified on tree [1]

[1] git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git

Ravi Babu (9):
  usb: musb: dsps: enable dual instance support for am33xx platform
  usb: musb: nop: remove unused nop_xceiv_(un)register APIs from glue
  arch: arm: omap3: remove unused usb_nop_xceive register API's
  usb: phy: nop: removing unused usb_nop_xceiv_(un_)register API
  usb: phy: dsps: adding usbphy driver for am33xx platform
  usb: musb: dsps: use usb-phy driver API for phy power on/off
  usb: musb: dsps: use get-usb-phy by phandle for multi instance
  usb: phy: dts: Adding usbphy DT bindings for am33xx
  usb: musb: dsp: remove the usb-phy control acess from platform glue

 arch/arm/boot/dts/am33xx.dtsi|   17 +++
 arch/arm/mach-omap2/board-omap3evm.c |3 -
 drivers/usb/musb/am35x.c |2 -
 drivers/usb/musb/blackfin.c  |2 -
 drivers/usb/musb/da8xx.c |2 -
 drivers/usb/musb/davinci.c   |3 -
 drivers/usb/musb/musb_dsps.c |   85 +++--
 drivers/usb/musb/tusb6010.c  |3 -
 drivers/usb/phy/Kconfig  |9 ++
 drivers/usb/phy/Makefile |1 +
 drivers/usb/phy/phy-dsps-usb.c   |  236 ++
 drivers/usb/phy/phy-nop.c|   21 ---
 include/linux/usb/nop-usb-xceiv.h|   14 --
 13 files changed, 282 insertions(+), 116 deletions(-)
 create mode 100644 drivers/usb/phy/phy-dsps-usb.c

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v1 0/9] adding dual instance and usb-phy support for am335x platform

2013-05-28 Thread Felipe Balbi
Hi,

On Thu, May 23, 2013 at 11:31:19AM +0530, Ravi Babu wrote:
> This patch set series
> - adds dual musb instances support for am335x platform
> - adds phy-dsps-usb driver based on TI's gs70 driver
> - adds DT bindings for am33xx usb-phy
>   - removed references to usb-nop-xceiv from musb

as Sergei pointed out, this would break some DaVinci/DA8xx platforms, so
I'm dropping from it from my queue.

-- 
balbi


signature.asc
Description: Digital signature


RE: [PATCH v1 0/9] adding dual instance and usb-phy support for am335x platform

2013-05-28 Thread B, Ravi
Felipe

> Subject: Re: [PATCH v1 0/9] adding dual instance and usb-phy support for 
> am335x platform

> Hi,

>On Thu, May 23, 2013 at 11:31:19AM +0530, Ravi Babu wrote:
>> This patch set series
>> - adds dual musb instances support for am335x platform
>> - adds phy-dsps-usb driver based on TI's gs70 driver
>> - adds DT bindings for am33xx usb-phy
>>  - removed references to usb-nop-xceiv from musb

>as Sergei pointed out, this would break some DaVinci/DA8xx platforms, so I'm 
>dropping from it from my queue.

As I understand, already all musb glue platform drivers(dsps/davinci/da8xx) are 
changed to new usb_get_phy() API set.  
Currently the mainline code snippet as shown.

dsps/davinci/da8xx/xxx_musb_init() {
...
usb_nop_xceiv_register() 
..
musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(musb->xceiv)) {
ret = -EPROBE_DEFER;
goto fail;
}
..
}
Because of this all glue xxx_musb_init() will fail to get the phy without the 
phy-bindings for each controller. 
Without this patch series am335x musb will fail to get usb_phy(). Similarly phy 
support to be added for all davinci/da8xx
platform also. The usb_nop_xciev_xx() is dummy unused API here and hence 
removed from all glue in this patch series.

1) dsps platforms (am335x/dm81xx) series uses TI gs70 based phy 
This patch adds support for ths dsps phy driver at 
drivers/usb/phy/usb-dsps-phy.c 
2) omapl13x/da8xx series of soc uses different phy
Separate phy driver need to be added at drivers/usb/phy/usb-da8xx-phy.c
3) similarly all davinci series of soc uses separate TI-phy 
Separate phy driver need to added at drivers/usb/phy/usb-davinci-phy.c

The bindings of the respective usb-phy and controller need to done in DT or 
non-DT way.  
I can add usb-phy support for davinci/da8xx platform in similar way.

---
Ravi B
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html