[PATCH v2 2/2] usb: phy: omap-usb2: enable 960Mhz clock for omap5

2012-09-27 Thread Kishon Vijay Abraham I
"usb_otg_ss_refclk960m" is needed for usb2 phy present in omap5. For omap4, the clk_get of this clock will fail since it does not have this clock. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/phy/omap-usb2.c | 18 -- 1 file changed, 16 insertions(+), 2

[PATCH v2 1/2] usb: phy: add a new driver for usb3 phy

2012-09-27 Thread Kishon Vijay Abraham I
this driver which will be removed once the control module driver is in place. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Felipe Balbi Signed-off-by: Moiz Sonasath --- Documentation/devicetree/bindings/usb/usb-phy.txt | 18 + drivers/usb/phy/Kconfig |9

[PATCH 4/6] usb: dwc3-omap: Add an API to write to dwc mailbox

2012-09-28 Thread Kishon Vijay Abraham I
Add an API in the omap glue layer to write to the mailbox register which can be used by comparator driver(twl). To pass the detection of the attached device (signified by VBUS, ID) to the dwc3 core, dwc3 core has to write to the mailbox regiter. Signed-off-by: Kishon Vijay Abraham I --- drivers

[PATCH 2/6] usb: dwc3-omap: use runtime API's to enable clocks

2012-09-28 Thread Kishon Vijay Abraham I
Before accessing any register, runtime API's should be invoked to enable the clocks. runtime API's are added here to prevent abort during register access. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 10 ++ 1 file changed, 10 insertions(+) di

[PATCH 3/6] usb: dwc3-omap: Remove explicit writes to SYSCONFIG register

2012-09-28 Thread Kishon Vijay Abraham I
The runtime API's takes care of setting the SYSCONFIG register with appropriate values. Hence explicit writes to SYSCONFIG register is removed. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 26 -- 1 file changed, 26 deletions(-) diff --

[PATCH 6/6] usb: dwc3: core: add dt support for dwc3 core

2012-09-28 Thread Kishon Vijay Abraham I
Added dwc3 support for dwc3 core and update the documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt | 24 drivers/usb/dwc3/core.c| 14 -- 2

[PATCH 1/6] usb: dwc3-omap: use of_platform API to create dwc3 core pdev

2012-09-28 Thread Kishon Vijay Abraham I
Used of_platform_populate() to populate dwc3 core platform_device from device tree data. Since now the allocation of unique device id is handled be of_*, removed the call to dwc3_get_device_id. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 63

[PATCH 0/6] usb: dwc3-omap: add dt support

2012-09-28 Thread Kishon Vijay Abraham I
es is developed on: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git dwc3 These patches were actually tested in http://gitorious.org/linux-usb/linux-usb/commits/dwc3 dwc3 since all the dependent modules is not yet upstreamed. Kishon Vijay Abraham I (6): usb: dwc3-omap: use of_platform A

[PATCH 5/6] usb: dwc3-omap: Minor fixes to get dt working

2012-09-28 Thread Kishon Vijay Abraham I
Includes few minor fixes in dwc3-omap like populating the compatible string in a correct way, extracting the utmi-mode property properly and changing the index of get_irq since irq of core is removed from hwmod entry. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c |6

[PATCH v2 7/7] usb: dwc3: core: add dt support for dwc3 core

2012-10-01 Thread Kishon Vijay Abraham I
Added dwc3 support for dwc3 core and update the documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt | 23 +++ drivers/usb/dwc3/core.c| 14 -- 2

[PATCH v2 2/7] usb: dwc3-omap: use of_platform API to create dwc3 core pdev

2012-10-01 Thread Kishon Vijay Abraham I
Used of_platform_populate() to populate dwc3 core platform_device from device tree data. Since now the allocation of unique device id is handled be of_*, removed the call to dwc3_get_device_id. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 52

[PATCH v2 5/7] usb: dwc3-omap: Add an API to write to dwc mailbox

2012-10-01 Thread Kishon Vijay Abraham I
Add an API in the omap glue layer to write to the mailbox register which can be used by comparator driver(twl). To pass the detection of the attached device (signified by VBUS, ID) to the dwc3 core, dwc3 core has to write to the mailbox regiter. Signed-off-by: Kishon Vijay Abraham I --- drivers

[PATCH v2 3/7] usb: dwc3-omap: use runtime API's to enable clocks

2012-10-01 Thread Kishon Vijay Abraham I
Before accessing any register, runtime API's should be invoked to enable the clocks. runtime API's are added here to prevent abort during register access. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 10 ++ 1 file changed, 10 insertions(+) di

[PATCH v2 0/7] usb: dwc3-omap: add dt support

2012-10-01 Thread Kishon Vijay Abraham I
made device_for_each_child() as a seperate patch * made all other minor fixes wrt typos and function renames This patch series is developed on: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git dwc3 Kishon Vijay Abraham I (7): usb: dwc3-omap: use device_for_each_child to handle

[PATCH v2 1/7] usb: dwc3-omap: use device_for_each_child to handle child removal

2012-10-01 Thread Kishon Vijay Abraham I
Used device_for_each_child() to handle child device (dwc3 core) removal during devexit of dwc3 omap. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers

[PATCH v2 6/7] usb: dwc3-omap: Minor fixes to get dt working

2012-10-01 Thread Kishon Vijay Abraham I
. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index c19affa..25bd847 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3

[PATCH v2 4/7] usb: dwc3-omap: Remove explicit writes to SYSCONFIG register

2012-10-01 Thread Kishon Vijay Abraham I
The runtime API's takes care of setting the SYSCONFIG register with appropriate values. Hence explicit writes to SYSCONFIG register is removed. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 26 -- 1 file changed, 26 deletions(-) diff --

[PATCH 2/3] ARM: OMAP4: add _dev_attr_ to ocp2scp for representing usb_phy

2012-10-05 Thread Kishon Vijay Abraham I
In order to reflect devices(usb_phy) attached to ocp2scp bus, ocp2scp is assigned a device attribute to represent the attached devices. Signed-off-by: Kishon Vijay Abraham I Cc: Benoit Cousson --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 28 1 file changed

[PATCH 0/3] ocp2scp: add non-dt support

2012-10-05 Thread Kishon Vijay Abraham I
Vijay Abraham I (3): drivers: bus: ocp2scp: add pdata support ARM: OMAP4: add _dev_attr_ to ocp2scp for representing usb_phy ARM: OMAP: ocp2scp: create omap device for ocp2scp arch/arm/mach-omap2/devices.c | 72 arch/arm/mach-omap2

[PATCH 1/3] drivers: bus: ocp2scp: add pdata support

2012-10-05 Thread Kishon Vijay Abraham I
: Kishon Vijay Abraham I --- drivers/bus/omap-ocp2scp.c | 67 ++-- include/linux/platform_data/omap_ocp2scp.h | 31 + 2 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 include/linux/platform_data/omap_ocp2scp.h diff --git a

[PATCH 3/3] ARM: OMAP: ocp2scp: create omap device for ocp2scp

2012-10-05 Thread Kishon Vijay Abraham I
Platfrom device for ocp2scp is created using omap_device_build in devices file. This is used for both omap4(musb) and omap5(dwc3). Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/devices.c | 72 + 1 file changed, 72 insertions(+) diff

[PATCH v2 2/3] ARM: OMAP4: add _dev_attr_ to ocp2scp for representing usb_phy

2012-10-07 Thread Kishon Vijay Abraham I
In order to reflect devices(usb_phy) attached to ocp2scp bus, ocp2scp is assigned a device attribute to represent the attached devices. Signed-off-by: Kishon Vijay Abraham I Cc: Benoit Cousson --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 28 1 file changed

[PATCH v2 3/3] ARM: OMAP: ocp2scp: create omap device for ocp2scp

2012-10-07 Thread Kishon Vijay Abraham I
Platfrom device for ocp2scp is created using omap_device_build in devices file. This is used for both omap4(musb) and omap5(dwc3). Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/devices.c | 76 + 1 file changed, 76 insertions(+) diff

[PATCH v2 0/3] ocp2scp: add non-dt support

2012-10-07 Thread Kishon Vijay Abraham I
ow if it had to be based on some other tree/commit. Did a quick testing for g_zero enumeration in panda board. Kishon Vijay Abraham I (3): drivers: bus: ocp2scp: add pdata support ARM: OMAP4: add _dev_attr_ to ocp2scp for representing usb_phy ARM: OMAP: ocp2scp: create omap device for oc

[PATCH v2 1/3] drivers: bus: ocp2scp: add pdata support

2012-10-07 Thread Kishon Vijay Abraham I
: Kishon Vijay Abraham I --- drivers/bus/omap-ocp2scp.c | 67 ++-- include/linux/platform_data/omap_ocp2scp.h | 31 + 2 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 include/linux/platform_data/omap_ocp2scp.h diff --git a

[PATCH v3 1/7] usb: dwc3-omap: use device_for_each_child to handle child removal

2012-10-08 Thread Kishon Vijay Abraham I
Used device_for_each_child() to handle child device (dwc3 core) removal during devexit of dwc3 omap. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers

[PATCH v3 6/7] usb: dwc3-omap: Minor fixes to get dt working

2012-10-08 Thread Kishon Vijay Abraham I
. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index c19affa..e5af74b 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb

[PATCH v3 2/7] usb: dwc3-omap: use of_platform API to create dwc3 core pdev

2012-10-08 Thread Kishon Vijay Abraham I
Used of_platform_populate() to populate dwc3 core platform_device from device tree data. Since now the allocation of unique device id is handled be of_*, removed the call to dwc3_get_device_id. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 52

[PATCH v3 3/7] usb: dwc3-omap: use runtime API's to enable clocks

2012-10-08 Thread Kishon Vijay Abraham I
Before accessing any register, runtime API's should be invoked to enable the clocks. runtime API's are added here to prevent abort during register access. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 10 ++ 1 file changed, 10 insertions(+) di

[PATCH v3 4/7] usb: dwc3-omap: Remove explicit writes to SYSCONFIG register

2012-10-08 Thread Kishon Vijay Abraham I
The runtime API's takes care of setting the SYSCONFIG register with appropriate values. Hence explicit writes to SYSCONFIG register is removed. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 26 -- 1 file changed, 26 deletions(-) diff --

[PATCH v3 7/7] usb: dwc3: core: add dt support for dwc3 core

2012-10-08 Thread Kishon Vijay Abraham I
Added dwc3 support for dwc3 core and update the documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt | 23 +++ drivers/usb/dwc3/core.c| 14 -- 2

[PATCH v3 5/7] usb: dwc3-omap: Add an API to write to dwc mailbox

2012-10-08 Thread Kishon Vijay Abraham I
Add an API in the omap glue layer to write to the mailbox register which can be used by comparator driver(twl). To pass the detection of the attached device (signified by VBUS, ID) to the dwc3 core, dwc3 core has to write to the mailbox regiter. Signed-off-by: Kishon Vijay Abraham I --- drivers

[PATCH v3 0/7] usb: dwc3-omap: add dt support

2012-10-08 Thread Kishon Vijay Abraham I
dwc3 Kishon Vijay Abraham I (7): usb: dwc3-omap: use device_for_each_child to handle child removal usb: dwc3-omap: use of_platform API to create dwc3 core pdev usb: dwc3-omap: use runtime API's to enable clocks usb: dwc3-omap: Remove explicit writes to SYSCONFIG register usb: dwc3

[PATCH v4 7/7] usb: dwc3: core: add dt support for dwc3 core

2012-10-15 Thread Kishon Vijay Abraham I
Added dwc3 support for dwc3 core and update the documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt | 23 +++ drivers/usb/dwc3/core.c| 14 -- 2

[PATCH v4 1/7] usb: dwc3-omap: use device_for_each_child to handle child removal

2012-10-15 Thread Kishon Vijay Abraham I
Used device_for_each_child() to handle child device (dwc3 core) removal during devexit of dwc3 omap. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers

[PATCH v4 0/7] usb: dwc3-omap: add dt support

2012-10-15 Thread Kishon Vijay Abraham I
a seperate patch * made all other minor fixes wrt typos and function renames This patch series is developed on: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git dwc3 Kishon Vijay Abraham I (7): usb: dwc3-omap: use device_for_each_child to handle child removal usb: dwc3-omap: use of_pl

[PATCH v4 6/7] usb: dwc3-omap: Minor fixes to get dt working

2012-10-15 Thread Kishon Vijay Abraham I
. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index b84ddf3..10aad46 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb

[PATCH v4 3/7] usb: dwc3-omap: use runtime API's to enable clocks

2012-10-15 Thread Kishon Vijay Abraham I
Before accessing any register, runtime API's should be invoked to enable the clocks. runtime API's are added here to prevent abort during register access. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 11 +++ 1 file changed, 11 insertions(+) di

[PATCH v4 5/7] usb: dwc3-omap: Add an API to write to dwc mailbox

2012-10-15 Thread Kishon Vijay Abraham I
Add an API in the omap glue layer to write to the mailbox register which can be used by comparator driver(twl). To pass the detection of the attached device (signified by VBUS, ID) to the dwc3 core, dwc3 glue has to write to the mailbox regiter. Signed-off-by: Kishon Vijay Abraham I --- drivers

[PATCH v4 4/7] usb: dwc3-omap: Remove explicit writes to SYSCONFIG register

2012-10-15 Thread Kishon Vijay Abraham I
The runtime API's takes care of setting the SYSCONFIG register with appropriate values. Hence explicit writes to SYSCONFIG register is removed. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 26 -- 1 file changed, 26 deletions(-) diff --

[PATCH v4 2/7] usb: dwc3-omap: use of_platform API to create dwc3 core pdev

2012-10-15 Thread Kishon Vijay Abraham I
Used of_platform_populate() to populate dwc3 core platform_device from device tree data. Since now the allocation of unique device id is handled by of_*, removed the call to dwc3_get_device_id. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 50

Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-09-12 Thread Kishon Vijay Abraham I
On Thursday 12 September 2013 02:57 PM, Vivek Gautam wrote: > Hi Kishon, > > > On Mon, Sep 2, 2013 at 9:13 PM, Kishon Vijay Abraham I wrote: >> Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, >> power_on and power_off the following APIs are u

Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-09-15 Thread Kishon Vijay Abraham I
On Thursday 12 September 2013 06:49 PM, Roger Quadros wrote: On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, power_on and power_off the following APIs are used phy_init(), phy_exit(), phy_power_on() and phy_power_off

Re: [PATCH 3/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-09-15 Thread Kishon Vijay Abraham I
On Thursday 12 September 2013 04:49 PM, Roger Quadros wrote: Hi Kishon, On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 driver in drivers/usb/phy to drivers/phy and also renamed the file to phy-omap-pipe3 since

Re: [PATCH 4/7] Documentation: dt bindings: move ..usb/usb-phy.txt to ..phy/omap-phy.txt

2013-09-15 Thread Kishon Vijay Abraham I
On Thursday 12 September 2013 06:53 PM, Roger Quadros wrote: On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: Since now we have a separate folder for phy, move the PHY dt binding documentation of OMAP to that folder. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings

Re: [PATCH 7/7] drivers: phy: renamed struct omap_control_usb to struct omap_control_phy

2013-09-15 Thread Kishon Vijay Abraham I
On Thursday 12 September 2013 07:12 PM, Roger Quadros wrote: Hi, On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: renamed struct omap_control_usb to struct omap_control_phy since it can be used to control PHY of USB, SATA and PCIE. Also moved the driver and include files under *phy* and

Re: [PATCH v11 0/8] PHY framework

2013-09-19 Thread Kishon Vijay Abraham I
Hi Greg, On Tuesday 17 September 2013 09:11 PM, Felipe Balbi wrote: > On Wed, Sep 04, 2013 at 02:27:06PM +0530, Kishon Vijay Abraham I wrote: >> On Tuesday 03 September 2013 09:20 PM, Greg KH wrote: >>> On Tue, Sep 03, 2013 at 08:55:23PM +0530, Kishon Vijay Abraham I w

[PATCH v12 3/7] usb: phy: twl4030: use the new generic PHY framework

2013-09-26 Thread Kishon Vijay Abraham I
/phy/. However using the old usb phy library cannot be completely removed because otg is intertwined with phy and moving to the new framework completely will break otg. Once we have a separate otg state machine, we can get rid of the usb phy library. Signed-off-by: Kishon Vijay Abraham I Acked-by

[PATCH v12 0/7] PHY framework

2013-09-26 Thread Kishon Vijay Abraham I
-usb2 and twl4030 to make use of the new framework Kishon Vijay Abraham I (7): drivers: phy: add generic PHY framework usb: phy: omap-usb2: use the new generic PHY framework usb: phy: twl4030: use the new generic PHY framework arm: omap3: twl: add phy consumer data in twl4030_usb_data ARM: dts:

[PATCH v12 7/7] usb: phy: twl4030-usb: remove *set_suspend* and *phy_init* ops

2013-09-26 Thread Kishon Vijay Abraham I
Now that twl4030-usb is adapted to the new generic PHY framework, *set_suspend* and *phy_init* ops can be removed from twl4030-usb driver. Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Reviewed-by: Sylwester Nawrocki --- drivers/phy/phy-twl4030-usb.c | 57

[PATCH v12 5/7] ARM: dts: omap: update usb_otg_hs data

2013-09-26 Thread Kishon Vijay Abraham I
-bindings.txt Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Acked-by: Tony Lindgren Reviewed-by: Sylwester Nawrocki --- Documentation/devicetree/bindings/usb/omap-usb.txt |5 + Documentation/devicetree/bindings/usb/usb-phy.txt |6 ++ arch/arm/boot/dts/omap3-beagle

[PATCH v12 4/7] arm: omap3: twl: add phy consumer data in twl4030_usb_data

2013-09-26 Thread Kishon Vijay Abraham I
The PHY framework uses the phy consumer data populated in platform data in the case of non-dt boot to return the reference to the PHY when the controller (PHY consumer) requests for it. So populated the phy consumer data in the platform data of twl usb. Signed-off-by: Kishon Vijay Abraham I

[PATCH v12 1/7] drivers: phy: add generic PHY framework

2013-09-26 Thread Kishon Vijay Abraham I
: Tomasz Figa Cc: Greg Kroah-Hartman Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Tested-by: Sylwester Nawrocki --- .../devicetree/bindings/phy/phy-bindings.txt | 66 ++ Documentation/phy.txt | 166 + MAINTAINERS

[PATCH v12 2/7] usb: phy: omap-usb2: use the new generic PHY framework

2013-09-26 Thread Kishon Vijay Abraham I
with PHY and moving to the new framework will break OTG. Once we have a separate OTG state machine, we can get rid of the USB PHY library. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Sylwester Nawrocki Acked-by: Felipe Balbi --- drivers/phy/Kconfig | 12

[PATCH v12 6/7] usb: musb: omap2430: use the new generic PHY framework

2013-09-26 Thread Kishon Vijay Abraham I
te state machine to handle otg, these can be moved out of xceiv and then we can start using the generic PHY framework. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Sylwester Nawrocki Acked-by: Felipe Balbi --- drivers/usb/musb/Kconfig |1 + drivers/usb/musb/musb_core.h |2 ++ dri

Re: [PATCH v11 2/8] usb: phy: omap-usb2: use the new generic PHY framework

2013-09-26 Thread Kishon Vijay Abraham I
Hi Greg, On Friday 27 September 2013 12:21 AM, Greg KH wrote: > On Wed, Aug 21, 2013 at 11:16:07AM +0530, Kishon Vijay Abraham I wrote: >> Used the generic PHY framework API to create the PHY. Now the power off and >> power on are done in omap_usb_power_off and omap_usb_power_

Re: [PATCH v12 0/7] PHY framework

2013-09-28 Thread Kishon Vijay Abraham I
On Saturday 28 September 2013 06:07 AM, Greg KH wrote: > On Fri, Sep 27, 2013 at 11:53:24AM +0530, Kishon Vijay Abraham I wrote: >> Added a generic PHY framework that provides a set of APIs for the PHY drivers >> to create/destroy a PHY and APIs for the PHY users to obtain a refe

Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-10 Thread Kishon Vijay Abraham I
On Thursday 12 September 2013 03:57 PM, Vivek Gautam wrote: > On Thu, Sep 12, 2013 at 3:40 PM, Kishon Vijay Abraham I wrote: >> On Thursday 12 September 2013 02:57 PM, Vivek Gautam wrote: >>> Hi Kishon, >>> >>> >>> On Mon, Sep 2, 2013 at 9:13 PM, Kis

[PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-10 Thread Kishon Vijay Abraham I
smps10 should be enabled only in the case of host mode. So stop doing always_on, boot_on from smps10_out1. The driver will enable it in host mode. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5-uevm.dts |2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2013-10-10 Thread Kishon Vijay Abraham I
From: George Cherian Added dr_mode property in dwc3 and set its default mode to device. Signed-off-by: George Cherian Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-10 Thread Kishon Vijay Abraham I
On Thursday 10 October 2013 07:49 PM, Nishanth Menon wrote: > On 16:19-20131010, Kishon Vijay Abraham I wrote: >> smps10 should be enabled only in the case of host mode. So stop >> doing always_on, boot_on from smps10_out1. The driver will enable it in host >> mode. >&g

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-10 Thread Kishon Vijay Abraham I
Hi, On Friday 11 October 2013 12:00 PM, Nishanth Menon wrote: > On Fri, Oct 11, 2013 at 1:13 AM, Kishon Vijay Abraham I wrote: >> >>> regulator-boot-on indicates that PMIC enables it by default as part of >>> OTP or some internal behavior -> Looking at the measure

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-10 Thread Kishon Vijay Abraham I
On Friday 11 October 2013 12:23 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 11 October 2013 12:00 PM, Nishanth Menon wrote: >> On Fri, Oct 11, 2013 at 1:13 AM, Kishon Vijay Abraham I >> wrote: >>> >>>> regulator-boot-on indicates that PMIC en

Re: [PATCH 3/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-10-14 Thread Kishon Vijay Abraham I
Hi Roger, On Friday 11 October 2013 08:32 PM, Roger Quadros wrote: > On 09/16/2013 10:37 AM, Roger Quadros wrote: >> On 09/16/2013 06:01 AM, Kishon Vijay Abraham I wrote: >>> On Thursday 12 September 2013 04:49 PM, Roger Quadros wrote: >>>> Hi Kishon, >>&g

Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-14 Thread Kishon Vijay Abraham I
Hi Roger, On Friday 11 October 2013 08:39 PM, Roger Quadros wrote: > Hi, > > On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: >> Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, >> power_on and power_off the following APIs are used

Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-14 Thread Kishon Vijay Abraham I
Hi Roger, On Monday 14 October 2013 03:51 PM, Roger Quadros wrote: > +Vivek > > On 10/14/2013 12:26 PM, Kishon Vijay Abraham I wrote: >> Hi Roger, >> >> On Friday 11 October 2013 08:39 PM, Roger Quadros wrote: >>> Hi, >>> >>> On 09/02/201

[PATCH v2 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2013-10-14 Thread Kishon Vijay Abraham I
d-off-by: Kishon Vijay Abraham I --- Changes from v1: Changed the commit log to explain why dr_mode was not set to OTG. arch/arm/boot/dts/omap5.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index 6d0a1d5..ef598af 100644 --- a

[PATCH v2 7/7] arm/dts: added dt properties to adapt to the new phy framwork

2013-10-15 Thread Kishon Vijay Abraham I
Added device tree bindings for dwc3, usb2 and usb3 PHYs. The documentation of these can be found at Documentation/devicetree/bindings/phy/phy-bindings.txt and Documentation/devicetree/bindings/phy/ti-phy.txt. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |5 - 1

[PATCH v2 5/7] usb: phy: omap-usb2: remove *set_suspend* callback from omap-usb2

2013-10-15 Thread Kishon Vijay Abraham I
Now that omap-usb2 is adapted to the new generic PHY framework, *set_suspend* ops can be removed from omap-usb2 driver. Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Reviewed-by: Sylwester Nawrocki --- This patch was deferred from Generic PHY framework series since dwc3 uses the

[PATCH v2 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY's

2013-10-15 Thread Kishon Vijay Abraham I
layer. Signed-off-by: Kishon Vijay Abraham I --- In usb_get_phy_by_phandle, index 0 always refers to usb2 phy and index 1 always refers to usb3 phy. Since we've lived so long with this, this patch will make an assumption that if only one entry is populated in *usb-phy* property, it will be us

[PATCH v2 4/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-10-15 Thread Kishon Vijay Abraham I
Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 driver in drivers/usb/phy to drivers/phy and also renamed the file to phy-ti-pipe3 since this same driver will be used for SATA PHY and PCIE PHY. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig

[PATCH v2 6/7] phy: omap-usb2: move omap_usb.h from linux/usb/ to linux/phy/

2013-10-15 Thread Kishon Vijay Abraham I
No functional change. Moved omap_usb.h from linux/usb/ to linux/phy/. Also removed the unused members of struct omap_usb (after phy-omap-pipe3 started using it's own header file) Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-omap-usb2.c |2 +- include/linux/{usb =

[PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-15 Thread Kishon Vijay Abraham I
apted to the Generic PHY Framework. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt |6 ++- drivers/usb/dwc3/Kconfig |1 + drivers/usb/dwc3/core.c| 52 drivers/usb/dwc3/c

[PATCH v2 3/7] Documentation: dt bindings: move ..usb/usb-phy.txt to ..phy/ti-phy.txt

2013-10-15 Thread Kishon Vijay Abraham I
Since now we have a separate folder for phy, move the PHY dt binding documentation of TI to that folder. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/{usb/usb-phy.txt => phy/ti-phy.txt} |9 + 1 file changed, 5 insertions(+), 4 deletions(-) ren

[PATCH v2 0/7] Make dwc3 use Generic PHY Framework

2013-10-15 Thread Kishon Vijay Abraham I
ce of PHYs has changed. * patch ordering has changed * udelay is replaced with usleep_range * A patch to remove set_suspend callback which was deferred from Generic PHY Framework series has been included. Kishon Vijay Abraham I (7): usb: dwc3: get "usb_phy" only if the platform indicat

Re: [PATCH v2 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY's

2013-10-16 Thread Kishon Vijay Abraham I
Hi roger, On Wednesday 16 October 2013 06:33 PM, Roger Quadros wrote: > Hi Kishon, > > On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: >> There can be systems which does not have a external usb_phy, so get >> usb_phy only if dt data indicates the presence of PHY i

Re: [PATCH v2 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2013-10-16 Thread Kishon Vijay Abraham I
Benoit, On Tuesday 15 October 2013 11:19 AM, Kishon Vijay Abraham I wrote: > From: George Cherian > > Added dr_mode property in dwc3 and set its default mode to device. > Currently dwc3 driver doesn't have support for OTG mode. So explicitly > setting to peripheral even dwc3

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-16 Thread Kishon Vijay Abraham I
Benoit, On Thursday 10 October 2013 04:19 PM, Kishon Vijay Abraham I wrote: > smps10 should be enabled only in the case of host mode. So stop > doing always_on, boot_on from smps10_out1. The driver will enable it in host > mode. Can you take this patch too? Thanks Kishon > >

Re: [PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-16 Thread Kishon Vijay Abraham I
Hi, On Wednesday 16 October 2013 06:48 PM, Roger Quadros wrote: > Hi, > > On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: >> Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, >> power_on and power_off the following APIs are used phy_init(), phy_ex

Re: [PATCH v2 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2013-10-21 Thread Kishon Vijay Abraham I
On Friday 18 October 2013 01:38 AM, Benoit Cousson wrote: > Hi Kishon, > > On 16/10/2013 15:17, Kishon Vijay Abraham I wrote: >> Benoit, >> >> On Tuesday 15 October 2013 11:19 AM, Kishon Vijay Abraham I wrote: >>> From: George Cherian >>> >>&

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-21 Thread Kishon Vijay Abraham I
On Friday 18 October 2013 01:39 AM, Benoit Cousson wrote: > Hi Kishon, > > On 16/10/2013 15:27, Nishanth Menon wrote: >> On 10/16/2013 08:17 AM, Kishon Vijay Abraham I wrote: >>> Benoit, >>> >>> On Thursday 10 October 2013 04:19 PM, Kishon Vijay Abraham I

Re: [PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Wednesday 16 October 2013 07:53 PM, Roger Quadros wrote: > On 10/16/2013 04:52 PM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 16 October 2013 06:48 PM, Roger Quadros wrote: >>> Hi, >>> >>> On 10/15/2013 10:54 PM, Kishon Vijay Ab

Re: [PATCH v2 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY's

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Thursday 17 October 2013 10:08 PM, Felipe Balbi wrote: > Hi, > > On Wed, Oct 16, 2013 at 01:24:11AM +0530, Kishon Vijay Abraham I wrote: >> There can be systems which does not have a external usb_phy, so get >> usb_phy only if dt data indicates the presence of PHY i

Re: [PATCH v2 4/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-10-21 Thread Kishon Vijay Abraham I
Hi, On Wednesday 16 October 2013 07:10 PM, Roger Quadros wrote: > Hi, > > On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: >> Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 >> driver in drivers/usb/phy to drivers/phy and also renamed

Re: [PATCH v2 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY's

2013-11-11 Thread Kishon Vijay Abraham I
Hi Felipe, On Thursday 17 October 2013 10:08 PM, Felipe Balbi wrote: > Hi, > > On Wed, Oct 16, 2013 at 01:24:11AM +0530, Kishon Vijay Abraham I wrote: >> There can be systems which does not have a external usb_phy, so get >> usb_phy only if dt data indicates the presence of

[PATCH v3 06/10] Documentation: dt bindings: move ..usb/usb-phy.txt to ..phy/ti-phy.txt

2013-11-25 Thread Kishon Vijay Abraham I
Since now we have a separate folder for phy, move the PHY dt binding documentation of TI to that folder. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/{usb/usb-phy.txt => phy/ti-phy.txt}|8 1 file changed, 4 insertions(+), 4 deletions(-) ren

[PATCH v3 00/10] Make dwc3 use Generic PHY Framework

2013-11-25 Thread Kishon Vijay Abraham I
eries has been included. Kishon Vijay Abraham I (10): usb: dwc3: invoke phy_resume after phy_init usb: dwc3: power off usb phy in error path usb: dwc3: preparation for adapting dwc3 to generic phy framework usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

[PATCH v3 08/10] usb: phy: omap-usb2: remove *set_suspend* callback from omap-usb2

2013-11-25 Thread Kishon Vijay Abraham I
Now that omap-usb2 is adapted to the new generic PHY framework, *set_suspend* ops can be removed from omap-usb2 driver. Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Reviewed-by: Sylwester Nawrocki --- drivers/phy/phy-omap-usb2.c | 25 - 1 file changed

[PATCH v3 09/10] phy: omap-usb2: move omap_usb.h from linux/usb/ to linux/phy/

2013-11-25 Thread Kishon Vijay Abraham I
No functional change. Moved omap_usb.h from linux/usb/ to linux/phy/. Also removed the unused members of struct omap_usb (after phy-omap-pipe3 started using it's own header file) Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-omap-usb2.c |2 +- include/linux/{usb =

[PATCH v3 10/10] arm/dts: added dt properties to adapt to the new phy framwork

2013-11-25 Thread Kishon Vijay Abraham I
Added device tree bindings for dwc3, usb2 and usb3 PHYs. The documentation of these can be found at Documentation/devicetree/bindings/phy/phy-bindings.txt and Documentation/devicetree/bindings/phy/ti-phy.txt. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |4 1

[PATCH v3 02/10] usb: dwc3: power off usb phy in error path

2013-11-25 Thread Kishon Vijay Abraham I
usb phy was power'ed on but was never power'ed off in the error path. Fix it. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 4dd1f7e..a49217a 100644 ---

[PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-11-25 Thread Kishon Vijay Abraham I
lways enable usb_phy layer. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/Kconfig |1 + drivers/usb/dwc3/core.c | 93 -- drivers/usb/dwc3/core.h | 15 ++ drivers/usb/dwc3/platform_data.h |5 ++ 4 files change

[PATCH v3 03/10] usb: dwc3: preparation for adapting dwc3 to generic phy framework

2013-11-25 Thread Kishon Vijay Abraham I
Invoke usb_phy api's only if usb_phy does not have error value. This is needed for both the legacy usb_phy and generic phy to co-exist in dwc3 core. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c | 42 -- 1 file changed, 28 inser

[PATCH v3 05/10] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-11-25 Thread Kishon Vijay Abraham I
apted to the Generic PHY Framework. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt |6 ++- drivers/usb/dwc3/Kconfig |1 + drivers/usb/dwc3/core.c| 66 +--- drivers/usb/dwc3/c

[PATCH v3 07/10] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-11-25 Thread Kishon Vijay Abraham I
Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 driver in drivers/usb/phy to drivers/phy and also renamed the file to phy-ti-pipe3 since this same driver will be used for SATA PHY and PCIE PHY. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/Kconfig

[PATCH v3 01/10] usb: dwc3: invoke phy_resume after phy_init

2013-11-25 Thread Kishon Vijay Abraham I
usb_phy_set_suspend(phy, 0) is called before usb_phy_init. Fix it. Reported-by: Roger Quadros Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index

Re: [PATCH] omap: twl-common: Fix musb-hdrc device name.

2013-12-03 Thread Kishon Vijay Abraham I
Hi, On Tuesday 03 December 2013 02:03 PM, Marek Belisko wrote: > Without this change when booting omap3 device (gta04) with board file > leads to follwing errors: > > [1.203308] musb-hdrc musb-hdrc.0.auto: unable to find phy > [1.209075] HS USB OTG: no transceiver configured > [1.2140

Re: [PATCH] omap: twl-common: Fix musb-hdrc device name.

2013-12-03 Thread Kishon Vijay Abraham I
Hi, On Tuesday 03 December 2013 02:38 PM, Belisko Marek wrote: > Hi, > > On Tue, Dec 3, 2013 at 9:58 AM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 03 December 2013 02:03 PM, Marek Belisko wrote: >>> Without this change when booting omap3 device

Re: [PATCH v2 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY's

2013-12-03 Thread Kishon Vijay Abraham I
Hi, On Tuesday 26 November 2013 03:02 AM, Felipe Balbi wrote: > Hi, > > On Mon, Nov 11, 2013 at 08:06:12PM +0530, Kishon Vijay Abraham I wrote: >>>> diff --git a/drivers/usb/dwc3/platform_data.h >>>> b/drivers/usb/dwc3/platform_data.h >>>> index 7

Re: [PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-12-03 Thread Kishon Vijay Abraham I
Hi, On Tuesday 03 December 2013 05:29 PM, Heikki Krogerus wrote: > Hi Kishon, > > On Wed, Oct 16, 2013 at 01:24:12AM +0530, Kishon Vijay Abraham I wrote: >> +count = of_property_match_string(node, "phy-names", "usb2-phy"); >> +if (count

<    4   5   6   7   8   9   10   11   12   13   >