[PATCH v3 5/6] ARM: dts: omap: update usb_otg_hs data

2013-03-20 Thread Kishon Vijay Abraham I
Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to include the binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap

[PATCH v3 3/6] usb: otg: twl4030: use the new generic PHY framework

2013-03-20 Thread Kishon Vijay Abraham I
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 --- drivers/usb/otg/twl4030-usb.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/usb/otg/twl4030

[PATCH v3 4/6] ARM: OMAP: USB: Add phy binding information

2013-03-20 Thread Kishon Vijay Abraham I
s OTG in it (struct usb_phy has struct usb_otg as member). Until we have a separate OTG state machine to handle all of that, the new generic PHY framework and the old phy library will co-exist. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/board-2430sdp.c |2 ++ arc

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

2013-03-20 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 --- drivers/usb/musb/musb_core.h |2 ++ drivers/usb/musb/omap2430.c | 22 -- 2 files changed, 18 insertio

[PATCH v3 1/6] drivers: phy: add generic PHY framework

2013-03-20 Thread Kishon Vijay Abraham I
hy b/Documentation/ABI/testing/sysfs-class-phy new file mode 100644 index 000..47f17c9 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-phy @@ -0,0 +1,15 @@ +What: /sys/class/phy//label +Date: Feb 2013 +KernelVersion: 3.10 +Contact: Kishon Vijay Abraham I +Descri

[PATCH v3 0/6] Generic PHY Framework

2013-03-20 Thread Kishon Vijay Abraham I
d*. Changes from v1: * Added Documentation for the PHY framework * Added few more APIs mostly w.r.t devres * Modified omap-usb2 and twl4030 to make use of the new framework Did USB enumeration testing in panda and beagle. Kishon Vijay Abraham I (6): drivers: phy: add generic PHY framework usb:

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

2013-03-20 Thread Kishon Vijay Abraham I
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 --- drivers/usb/phy/omap-usb2.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/drivers/usb/phy/omap-usb2.c

[PATCH 0/5] ARM: OMAP: arm part of usb patches

2013-02-05 Thread Kishon Vijay Abraham I
CONFIG_OMAP_CONTROL_USB is not set. Boot tested panda board. Felipe Balbi (1): usb: omap_control_usb: fix compile warning Kishon Vijay Abraham I (4): ARM: OMAP4: remove control module address space from PHY and OTG ARM: OMAP: devices: create device for usb part of control module ARM: OMAP2

[PATCH 4/5] ARM: OMAP: USB: Add phy binding information

2013-02-05 Thread Kishon Vijay Abraham I
forms. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/board-2430sdp.c |2 ++ arch/arm/mach-omap2/board-3430sdp.c |2 ++ arch/arm/mach-omap2/board-4430sdp.c |2 ++ arch/arm/mach-omap2/board-cm-t35.c |2 ++ arc

[PATCH 1/5] ARM: OMAP4: remove control module address space from PHY and OTG

2013-02-05 Thread Kishon Vijay Abraham I
Now that we have a separate driver for the control module, stop populating the control module device data in other modules (PHY and OTG) device info. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 13 - 1 file

[PATCH 5/5] usb: omap_control_usb: fix compile warning

2013-02-05 Thread Kishon Vijay Abraham I
From: Felipe Balbi When CONFIG_OMAP_CONTROL_USB isn't enabled, there's a compile warning stating that a particular function isn't a prototype. Fix it. Signed-off-by: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I --- include/linux/usb/omap_control_usb.h |2 +- 1

[PATCH 2/5] ARM: OMAP: devices: create device for usb part of control module

2013-02-05 Thread Kishon Vijay Abraham I
A seperate driver has been added to handle the usb part of control module. A device for the above driver is created here, using the register address information to be used by the driver for powering on the PHY and for writing to the mailbox. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony

[PATCH 3/5] ARM: OMAP2: MUSB: Specify omap4 has mailbox

2013-02-05 Thread Kishon Vijay Abraham I
Added has_mailbox to the musb platform data to specify that omap uses an external mailbox (in control module) to communicate with the musb core during device connect and disconnect. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/usb-musb.c |3

[PATCH] usb: gadget: make usb functions to load before gadget driver

2013-02-06 Thread Kishon Vijay Abraham I
The current ordering in makefile makes gadget drivers to be loaded before usb functions making usb_get_function_instance() to fail when the modules are *built-in* the kernel. Changed the ordering here so that USB functions are loaded before gadget drivers. Signed-off-by: Kishon Vijay Abraham I

[PATCH v2 2/5] ARM: OMAP: devices: create device for usb part of control module

2013-02-06 Thread Kishon Vijay Abraham I
A seperate driver has been added to handle the usb part of control module. A device for the above driver is created here, using the register address information to be used by the driver for powering on the PHY and for writing to the mailbox. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony

[PATCH v2 5/5] usb: omap_control_usb: fix compile warning

2013-02-06 Thread Kishon Vijay Abraham I
From: Felipe Balbi When CONFIG_OMAP_CONTROL_USB isn't enabled, there's a compile warning stating that a particular function isn't a prototype. Fix it. Signed-off-by: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I --- include/linux/usb/omap_control_usb.h |2 +- 1

[PATCH v2 3/5] ARM: OMAP2: MUSB: Specify omap4 has mailbox

2013-02-06 Thread Kishon Vijay Abraham I
Added has_mailbox to the musb platform data to specify that omap uses an external mailbox (in control module) to communicate with the musb core during device connect and disconnect. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/usb-musb.c |3

[PATCH v2 4/5] ARM: OMAP: USB: Add phy binding information

2013-02-06 Thread Kishon Vijay Abraham I
forms. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/board-2430sdp.c |2 ++ arch/arm/mach-omap2/board-3430sdp.c |2 ++ arch/arm/mach-omap2/board-4430sdp.c |2 ++ arch/arm/mach-omap2/board-cm-t35.c |2 ++ arc

[PATCH v2 1/5] ARM: OMAP4: remove control module address space from PHY and OTG

2013-02-06 Thread Kishon Vijay Abraham I
Now that we have a separate driver for the control module, stop populating the control module device data in other modules (PHY and OTG) device info. Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 13 - 1 file

[PATCH v2 0/5] ARM: OMAP: arm part of usb patches

2013-02-06 Thread Kishon Vijay Abraham I
CONFIG_OMAP_CONTROL_USB is not set. Changes from v1: Fixed alignment in omap4_control_usb as suggested by Sergei. Boot tested panda board. Felipe Balbi (1): usb: omap_control_usb: fix compile warning Kishon Vijay Abraham I (4): ARM: OMAP4: remove control module address space from PHY and OTG

[PATCH 1/8] ARM: dts: omap: Add omap control usb data

2013-02-06 Thread Kishon Vijay Abraham I
Add omap control usb data in omap4 device tree file. This will have the register address of registers to power on the PHY and to write to mailbox. The information about this data node is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Signed-off-by: Kishon Vijay Abraham I

[PATCH 2/8] ARM: dts: omap: Add omap-usb2 dt data

2013-02-06 Thread Kishon Vijay Abraham I
Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index ffc7352..c829d7e 100644 --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -438,6 +438,11

[PATCH 7/8] ARM: dts: omap5: add dwc3 omap dt data

2013-02-06 Thread Kishon Vijay Abraham I
Add dwc3 omap glue data to the omap5 dt data file. The information about the dt node added here is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH 5/8] ARM: dts: omap5: Add ocp2scp data

2013-02-06 Thread Kishon Vijay Abraham I
Add ocp2scp data node in omap5 device tree file. The information for the node added here can be found @ Documentation/devicetree/bindings/bus/omap-ocp2scp.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |8 1 file changed, 8 insertions(+) diff --git a

[PATCH 8/8] ARM: dts: omap5: add dwc3 core dt data

2013-02-06 Thread Kishon Vijay Abraham I
Add dwc3 core dt data as a subnode to dwc3 omap glue data in omap5 dt data file. The information for the entered data node is available @ Documentation/devicetree/bindings/usb/dwc3.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |7 +++ 1 file changed, 7

[PATCH 6/8] ARM: dts: omap5: Add omap-usb3 and omap-usb2 dt data

2013-02-06 Thread Kishon Vijay Abraham I
Add omap-usb3 and omap-usb2 data node in omap5 device tree file. The information for the node added here is available @ Documentation/devicetree/bindings/usb/usb-phy.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi | 14 ++ 1 file changed, 14 insertions

[PATCH 3/8] ARM: dts: omap: Add usb_otg and glue data

2013-02-06 Thread Kishon Vijay Abraham I
. The information about usb otg node is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Acked-by: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |1 + arch/arm/boot/dts/omap3-beagle-xm.dts |6 ++ arch

[PATCH 4/8] ARM: dts: omap5: Add omap control usb data

2013-02-06 Thread Kishon Vijay Abraham I
Add omap control usb data in omap5 device tree file. This will have the register address of registers to power on the USB2 PHY and USB3 PHY. The information for the node added here is available in Documentation/devicetree/bindings/usb/omap-usb.txt Signed-off-by: Kishon Vijay Abraham I --- arch

[PATCH 0/8] ARM: dts: omap: Add dts data for USB

2013-02-06 Thread Kishon Vijay Abraham I
Hi Benoit, Here are the dt data patches to get usb device functional in OMAP platforms. This series applies cleanly in both for_3.9/dts and 3.8-rc6. All the patches deal with modifying arch/arm/boot except one which modifies Documentation/../usb/omap-usb.txt Kishon Vijay Abraham I (8): ARM

Re: [PATCH v4 1/6] drivers: phy: add generic PHY framework

2013-04-02 Thread Kishon Vijay Abraham I
Hi, On Thursday 28 March 2013 09:15 PM, Stephen Warren wrote: On 03/27/2013 11:43 PM, Kishon Vijay Abraham I wrote: The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the diff --git a/Documentation

Re: [PATCH v4 1/6] drivers: phy: add generic PHY framework

2013-04-02 Thread Kishon Vijay Abraham I
Hi, On Tuesday 02 April 2013 01:04 AM, Sylwester Nawrocki wrote: Just couple minor comments... On 03/28/2013 06:43 AM, Kishon Vijay Abraham I wrote: The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY

Re: [PATCH v3 01/11] usb: phy: Add APIs for runtime power management

2013-04-02 Thread Kishon Vijay Abraham I
Hi, On Monday 01 April 2013 07:24 PM, Vivek Gautam wrote: Adding APIs to handle runtime power management on PHY devices. PHY consumers may need to wake-up/suspend PHYs when they work across autosuspend. Signed-off-by: Vivek Gautam --- include/linux/usb/phy.h | 141 +

Re: [PATCH v4 1/6] drivers: phy: add generic PHY framework

2013-04-02 Thread Kishon Vijay Abraham I
On Tuesday 02 April 2013 09:10 PM, Stephen Warren wrote: On 04/02/2013 02:37 AM, Kishon Vijay Abraham I wrote: Hi, On Thursday 28 March 2013 09:15 PM, Stephen Warren wrote: On 03/27/2013 11:43 PM, Kishon Vijay Abraham I wrote: The PHY framework provides a set of APIs for the PHY drivers to

Re: [PATCH v4 0/6] Generic PHY Framework

2013-04-02 Thread Kishon Vijay Abraham I
Hi, On Friday 29 March 2013 12:01 AM, David Miller wrote: You really need to CC: net...@vger.kernel.org rather than me explicitly on this patch set. I was CC'ing whatever get_maintainer shows. I'll make sure to CC net...@vger.kernel.org though there's nothing related to network in this patc

Re: [PATCH v4 0/6] Generic PHY Framework

2013-04-02 Thread Kishon Vijay Abraham I
Hi, On Wednesday 03 April 2013 12:01 PM, David Miller wrote: From: Kishon Vijay Abraham I Date: Wed, 3 Apr 2013 11:29:53 +0530 Hi, On Friday 29 March 2013 12:01 AM, David Miller wrote: You really need to CC: net...@vger.kernel.org rather than me explicitly on this patch set. I was

[PATCH v5 5/6] ARM: dts: omap: update usb_otg_hs data

2013-04-03 Thread Kishon Vijay Abraham I
-bindings.txt Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |5 + Documentation/devicetree/bindings/usb/usb-phy.txt |6 ++ arch/arm/boot/dts/omap3.dtsi |2 ++ arch/arm/boot/dts/omap4.dtsi

[PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
or dt binding is can be found at Documentation/devicetree/bindings/phy/phy-bindings.txt Signed-off-by: Kishon Vijay Abraham I --- Documentation/ABI/testing/sysfs-class-phy | 15 + .../devicetree/bindings/phy/phy-bindings.txt | 67 +++ Documentation/ph

[PATCH v5 0/6] Generic PHY Framework

2013-04-03 Thread Kishon Vijay Abraham I
t and phy_bind_mutex). * Changed the sysfs entry name from *bind* to *phy_bind*. Changes from v1: * Added Documentation for the PHY framework * Added few more APIs mostly w.r.t devres * Modified omap-usb2 and twl4030 to make use of the new framework Did USB enumeration testing in panda and beagle. Kisho

[PATCH v5 4/6] ARM: OMAP: USB: Add phy binding information

2013-04-03 Thread Kishon Vijay Abraham I
In order for controllers to get PHY in case of non dt boot, the phy binding information should be added in the platform specific initialization code using phy_bind. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/usb-musb.c |7 ++- 1 file changed, 6 insertions(+), 1

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

2013-04-03 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 --- drivers/usb/musb/musb_core.h |2 ++ drivers/usb/musb/omap2430.c | 22 -- 2 files changed, 18 insertio

[PATCH v5 3/6] usb: otg: twl4030: use the new generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
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 --- drivers/usb/otg/twl4030-usb.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/usb/otg/twl4030

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

2013-04-03 Thread Kishon Vijay Abraham I
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 --- drivers/usb/phy/omap-usb2.c | 48 +++ 1 file changed, 48 insertions(+) diff --git a/drivers/usb/phy/omap-usb2.c

Re: [PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
Hi, On Wednesday 03 April 2013 07:12 PM, Felipe Balbi wrote: On Wed, Apr 03, 2013 at 06:23:49PM +0530, Kishon Vijay Abraham I wrote: The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without

Re: [PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-03 Thread Kishon Vijay Abraham I
Hi, On Wednesday 03 April 2013 07:57 PM, Felipe Balbi wrote: hi, On Wed, Apr 03, 2013 at 07:48:42PM +0530, Kishon Vijay Abraham I wrote: +struct phy *of_phy_xlate(struct phy *phy, struct of_phandle_args *args) +{ + return phy; +} +EXPORT_SYMBOL_GPL(of_phy_xlate); so you get a PHY and

Re: [PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-04 Thread Kishon Vijay Abraham I
Hi, On Wednesday 03 April 2013 09:17 PM, Felipe Balbi wrote: Hi, On Wed, Apr 03, 2013 at 08:02:52PM +0530, Kishon Vijay Abraham I wrote: + ret = -EINVAL; + goto err0; + } + + if (!phy_class) + phy_core_init(); why don't you setu

Re: [PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-04 Thread Kishon Vijay Abraham I
Hi, On Thursday 04 April 2013 03:16 AM, Sylwester Nawrocki wrote: On 04/03/2013 02:53 PM, Kishon Vijay Abraham I wrote: . . . . diff --git a/Documentation/phy.txt b/Documentation/phy.txt new file mode 100644 index 000..7785ec0 --- /dev/null +++ b/Documentation/phy.txt @@ -0,0 +1,113

Re: [PATCH v5 1/6] drivers: phy: add generic PHY framework

2013-04-04 Thread Kishon Vijay Abraham I
Hi, On Thursday 04 April 2013 04:11 PM, Sylwester Nawrocki wrote: Hi, On 04/04/2013 11:21 AM, Kishon Vijay Abraham I wrote: On Thursday 04 April 2013 03:16 AM, Sylwester Nawrocki wrote: On 04/03/2013 02:53 PM, Kishon Vijay Abraham I wrote: +4. Getting a reference to the PHY + +Before the

[PATCH v3 2/4] ARM: OMAP: devices: create device for usb part of control module

2013-01-24 Thread Kishon Vijay Abraham I
A seperate driver has been added to handle the usb part of control module. A device for the above driver is created here, using the register address information to be used by the driver for powering on the PHY and for writing to the mailbox. Signed-off-by: Kishon Vijay Abraham I --- arch/arm

[PATCH v3 0/4] usb: musb/dwc3: add driver for control module

2013-01-24 Thread Kishon Vijay Abraham I
27;ve kept this patch series and all the patch series to follow in a single branch git://gitorious.org/linux-usb/linux-usb.git omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Did basic enumeration testing in omap4 panda, omap3 beagle and omap5 evm. Kishon Vijay Abraham

[PATCH v3 1/4] drivers: usb: phy: add a new driver for usb part of control module

2013-01-24 Thread Kishon Vijay Abraham I
glue and in omap-usb2 phy will be removed. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt | 30 +- Documentation/devicetree/bindings/usb/usb-phy.txt |5 + drivers/usb/phy/Kconfig| 10 + drivers/usb/phy/Makefile

[PATCH v3 4/4] drivers: usb: start using the control module driver

2013-01-24 Thread Kishon Vijay Abraham I
Start using the control module driver for powering on the PHY and for writing to the mailbox instead of writing to the control module registers on their own. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |4 ++ Documentation/devicetree/bindings

[PATCH v3 3/4] ARM: OMAP2: MUSB: Specify omap4 has mailbox

2013-01-24 Thread Kishon Vijay Abraham I
Added has_mailbox to the musb platform data to specify that omap uses an external mailbox (in control module) to communicate with the musb core during device connect and disconnect. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/usb-musb.c |3 +++ include/linux/usb/musb.h

[PATCH v2 2/3] ARM: dts: omap: Add omap-usb2 dt data

2013-01-24 Thread Kishon Vijay Abraham I
Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index ffc7352..5f68d68 100644 --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -438,6 +438,10

[PATCH v2 1/3] ARM: dts: omap: Add omap control usb data

2013-01-24 Thread Kishon Vijay Abraham I
Add omap control usb data in omap4 device tree file. This will have the register address of registers to power on the PHY and to write to mailbox. The information about this data node is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Signed-off-by: Kishon Vijay Abraham I

[PATCH v2 0/3] ARM: dts: omap: add dt data for MUSB

2013-01-24 Thread Kishon Vijay Abraham I
usb/linux-usb.git omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Kishon Vijay Abraham I (3): ARM: dts: omap: Add omap control usb data ARM: dts: omap: Add omap-usb2 dt data ARM: dts: omap: Add usb_otg and glue data Documentation/devicetree/bindings/usb/omap-usb.tx

[PATCH v2 3/3] ARM: dts: omap: Add usb_otg and glue data

2013-01-24 Thread Kishon Vijay Abraham I
. The information about this node is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Acked-by: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |2 ++ arch/arm/boot/dts/omap3-beagle-xm.dts |6 ++ arch

[PATCH v2 0/6] USB: Add support for multiple PHYs of same type

2013-01-24 Thread Kishon Vijay Abraham I
n testing in omap4 panda and omap3 beagle. Kishon Vijay Abraham I (6): usb: otg: Add an API to bind the USB controller and PHY usb: otg: utils: add facilities in phy lib to support multiple PHYs of same type ARM: OMAP: USB: Add phy binding information drivers: usb: musb: omap: make use o

[PATCH v2 2/6] usb: otg: utils: add facilities in phy lib to support multiple PHYs of same type

2013-01-24 Thread Kishon Vijay Abraham I
start to use the new API. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/otg.c | 118 ++- include/linux/usb/phy.h | 13 ++ 2 files changed, 130 insertions(+), 1 deletion(-) diff --git a/drivers/usb/otg/otg.c b/drivers/usb/otg

[PATCH v2 1/6] usb: otg: Add an API to bind the USB controller and PHY

2013-01-24 Thread Kishon Vijay Abraham I
a new API to pass the binding information. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/otg.c | 37 + include/linux/usb/phy.h | 22 ++ 2 files changed, 59 insertions(+) diff --git a/drivers/usb/otg/otg.c b/drivers/us

[PATCH v2 4/6] drivers: usb: musb: omap: make use of the new PHY lib APIs

2013-01-24 Thread Kishon Vijay Abraham I
New PHY lib APIs like usb_add_phy_dev() and devm_usb_get_phy_dev() are used in MUSB (OMAP), in order to make use of the binding information provided in the board file (of OMAP platforms). All the platforms should be modified similar to this to add and get the PHY. Signed-off-by: Kishon Vijay

[PATCH v2 3/6] ARM: OMAP: USB: Add phy binding information

2013-01-24 Thread Kishon Vijay Abraham I
forms. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/board-2430sdp.c |2 ++ arch/arm/mach-omap2/board-3430sdp.c |2 ++ arch/arm/mach-omap2/board-4430sdp.c |2 ++ arch/arm/mach-omap2/board-cm-t35.c |2 ++ arch/arm/mach-omap2/

[PATCH v2 6/6] USB: MUSB: OMAP: get PHY by phandle for dt boot

2013-01-24 Thread Kishon Vijay Abraham I
The OMAP glue has been modified to get PHY by phandle for dt boot. Signed-off-by: Kishon Vijay Abraham I --- There were some comments w.r.t this patch for returning EPROBE_DEFER if not able to get the phy, in my previous version. Currently we can't have that because the gadget driver doesn

[PATCH v2 5/6] usb: otg: add device tree support to otg library

2013-01-24 Thread Kishon Vijay Abraham I
Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/otg.c | 80 +++ include/linux/usb/phy.h |8 + 2 files changed, 88 insertions(+) diff --git a/drivers/usb/otg/otg.c b/drivers/usb/otg/otg.c index 4bb4333..e181439 100644 --- a/drivers

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

2013-01-24 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 | 28 +++- 1 file changed, 27 insert

[PATCH v3 0/2] usb: phy: add usb3 phy driver

2013-01-24 Thread Kishon Vijay Abraham I
/gitorious.org/linux-usb/linux-usb.git omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Did enumeration testing on omap4 panda and omap5 evm. Kishon Vijay Abraham I (2): usb: phy: add a new driver for usb3 phy usb: phy: omap-usb2: enable 960Mhz clock for omap5 Docu

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

2013-01-24 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 | 23 ++ drivers/usb/phy/Kconfig | 10

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

2013-01-24 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 00/11] usb: dwc3 core/dwc3-omap: add dt support

2013-01-24 Thread Kishon Vijay Abraham I
to follow in a single branch git://gitorious.org/linux-usb/linux-usb.git omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Did enumeration testing on omap5 evm. Kishon Vijay Abraham I (11): usb: dwc3-omap: use device_for_each_child to handle child removal usb: dwc3

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

2013-01-24 Thread Kishon Vijay Abraham I
. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt | 28 drivers/usb/dwc3/dwc3-omap.c | 45 +--- 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/usb

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

2013-01-24 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 04/11] usb: dwc3-omap: Remove explicit writes to SYSCONFIG register

2013-01-24 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 07/11] usb: dwc3-omap: remove platform data associated with dwc3-omap

2013-01-24 Thread Kishon Vijay Abraham I
omap5 is not going to have support for non-dt boot making the platform data associated with dwc3 useless. Removed it here. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c| 24 ++-- include/linux/platform_data/dwc3-omap.h |4 2

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

2013-01-24 Thread Kishon Vijay Abraham I
Used device_for_each_child() to handle child device (dwc3 core) removal during devexit of dwc3 omap. This is in preparation for creating the child devices from subnode of dwc3 omap glue using of_platform_populate. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 12

[PATCH v3 08/11] usb: dwc3-omap: stop using nop-usb-xceiv

2013-01-24 Thread Kishon Vijay Abraham I
Now that we have drivers for omap-usb2 phy and omap-usb3 phy, stop using nop-usb-xceiv. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 67 -- 1 file changed, 67 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers

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

2013-01-24 Thread Kishon Vijay Abraham I
Added dt support for dwc3 core and update the documentation with device tree binding information. Getting a PHY is now done using devm_usb_get_phy_by_phandle() for dt boot. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/dwc3.txt | 22

[PATCH v3 10/11] usb: dwc3: core: enable the USB2 and USB3 phy in probe

2013-01-24 Thread Kishon Vijay Abraham I
Enabled the USB2 and USB3 PHY in probe by calling usb_phy_set_suspend and disabled the PHYs on driver removal. When PM is implemented this will be optimized to enable the PHYs only when needed. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c |6 ++ 1 file changed, 6

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

2013-01-24 Thread Kishon Vijay Abraham I
Used of_platform_populate() to create dwc3 core platform_device from device tree data. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/dwc3-omap.c | 40 ++-- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/drivers/usb/dwc3/dwc3

[PATCH v3 11/11] usb: dwc3: core: stray statements are removed

2013-01-24 Thread Kishon Vijay Abraham I
No functional change. Stray statements where removed from dwc3 core. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/core.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index af189d5..ee1fa18 100644 --- a/drivers/usb/dwc3

[PATCH v1 0/8] usb: otg: palmas-usb: fixes/cleanups to get dwc3 working

2013-01-24 Thread Kishon Vijay Abraham I
-palmas I've kept this patch series and the patch series to follow in a single branch git://gitorious.org/linux-usb/linux-usb.git omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Did enumeration testing on omap5 evm. Kishon Vijay Abraham I (8): usb: otg: palma

[PATCH v1 3/8] usb: otg: palmas-usb: remove compiler warning

2013-01-24 Thread Kishon Vijay Abraham I
commit 696c5c04 (USB: Palmas OTG Transceiver Driver) introduced empty palmas_vbus_irq/palmas_id_irq with only *palmas_usb* declaration. Removed these unnecessary functions. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/palmas-usb.c | 38 -- 1

[PATCH v1 1/8] usb: otg: palmas-usb: make palmas-usb as a comparator driver

2013-01-24 Thread Kishon Vijay Abraham I
palmas-usb is made as a comparator driver to omap usb2 phy, so that omap usb can make use of palmas for srp and also to set vbus. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/palmas-usb.c | 20 ++-- include/linux/mfd/palmas.h |3 +++ 2 files changed, 21

[PATCH v1 6/8] usb: otg: palmas-usb: call regulator enable/disable only on valid regulator

2013-01-24 Thread Kishon Vijay Abraham I
The calls to regulator enable/disable was done unconditionally which might result in warn dumps if *no_control_vbus* is set. So always call regulator enable/disable on valid regulator. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/palmas-usb.c | 17 + 1 file

[PATCH v1 7/8] usb: otg: palmas-usb: pass the correct dev ptr in regulator get

2013-01-24 Thread Kishon Vijay Abraham I
regulator_get is passing the device pointer of the parent (palmas) instead of the child (palmas-usb). It's been fixed here. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/palmas-usb.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/otg/p

[PATCH v1 8/8] usb: otg: palmas-usb: fix cold plug issue

2013-01-24 Thread Kishon Vijay Abraham I
if the cable is connected even before the palmas-usb is loaded, the cable connect detection event will be missed. It's fixed here by checking for VBUS line states when palmas-usb is loaded. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/palmas-usb.c |5 + 1 file chang

[PATCH v1 4/8] usb: otg: palmas-usb: use mailbox API to send VBUS or ID events

2013-01-24 Thread Kishon Vijay Abraham I
Whenever palmas detects a VBUS or ID event, the mailbox API in dwc3 glue is called. The mailbox API takes care of notifying it to the core. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Moiz Sonasath --- drivers/usb/otg/palmas-usb.c | 32 +--- include/linux

[PATCH v1 5/8] usb: otg: palmas-usb: use bool to read property instead of u32

2013-01-24 Thread Kishon Vijay Abraham I
properies like wakeup and no_control_vbus can be represented in boolean, so read those properties using of_property_read_bool. Also updated the documentation with device tree binding information for palmas-usb. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/usb/twl

[PATCH v1 2/8] usb: otg: palmas-usb: use devres API to allocate resources

2013-01-24 Thread Kishon Vijay Abraham I
used devres API while allocating resources so that these resources are released automatically on driver detach. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/otg/palmas-usb.c | 47 ++ 1 file changed, 15 insertions(+), 32 deletions(-) diff --git

[PATCH 1/6] ARM: dts: omap5: Add omap control usb data

2013-01-24 Thread Kishon Vijay Abraham I
Add omap control usb data in omap5 device tree file. This will have the register address of registers to power on the USB2 PHY and USB3 PHY. The information for the node added here is available in Documentation/devicetree/bindings/usb/omap-usb.txt Signed-off-by: Kishon Vijay Abraham I --- arch

[PATCH 4/6] ARM: dts: omap5: add dwc3 omap dt data

2013-01-24 Thread Kishon Vijay Abraham I
Add dwc3 omap glue data to the omap5 dt data file. The information about the dt node added here is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH 0/6] ARM: dts: omap: add dt data for dwc3

2013-01-24 Thread Kishon Vijay Abraham I
omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Did enumeration testing on omap5 evm. Kishon Vijay Abraham I (6): ARM: dts: omap5: Add omap control usb data ARM: dts: omap5: Add ocp2scp data ARM: dts: omap5: Add omap-usb3 and omap-usb2 dt data ARM: dts: omap5: add

[PATCH 5/6] ARM: dts: omap5: add dwc3 core dt data

2013-01-24 Thread Kishon Vijay Abraham I
Add dwc3 core dt data as a subnode to dwc3 omap glue data in omap5 dt data file. The information for the entered data node is available @ Documentation/devicetree/bindings/usb/dwc3.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |7 +++ 1 file changed, 7

[PATCH 2/6] ARM: dts: omap5: Add ocp2scp data

2013-01-24 Thread Kishon Vijay Abraham I
Add ocp2scp data node in omap5 device tree file. The information for the node added here can be found @ Documentation/devicetree/bindings/bus/omap-ocp2scp.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |8 1 file changed, 8 insertions(+) diff --git a

[PATCH 6/6] ARM: dts: palmas: update dt data for palmas-usb

2013-01-24 Thread Kishon Vijay Abraham I
Update palmas-usb data node in palmas device tree file Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/palmas.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/palmas.dtsi b/arch/arm/boot/dts/palmas.dtsi index d20adb4..0cf39da 100644

[PATCH 3/6] ARM: dts: omap5: Add omap-usb3 and omap-usb2 dt data

2013-01-24 Thread Kishon Vijay Abraham I
Add omap-usb3 and omap-usb2 data node in omap5 device tree file. The information for the node added here is available @ Documentation/devicetree/bindings/usb/usb-phy.txt Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi | 14 ++ 1 file changed, 14 insertions

[PATCH v4 2/4] ARM: OMAP: devices: create device for usb part of control module

2013-01-25 Thread Kishon Vijay Abraham I
A seperate driver has been added to handle the usb part of control module. A device for the above driver is created here, using the register address information to be used by the driver for powering on the PHY and for writing to the mailbox. Signed-off-by: Kishon Vijay Abraham I --- arch/arm

[PATCH v4 4/4] drivers: usb: start using the control module driver

2013-01-25 Thread Kishon Vijay Abraham I
Start using the control module driver for powering on the PHY and for writing to the mailbox instead of writing to the control module registers on their own. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |4 ++ Documentation/devicetree/bindings

[PATCH v4 1/4] drivers: usb: phy: add a new driver for usb part of control module

2013-01-25 Thread Kishon Vijay Abraham I
glue and in omap-usb2 phy will be removed. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt | 30 +- Documentation/devicetree/bindings/usb/usb-phy.txt |5 + drivers/usb/phy/Kconfig| 10 + drivers/usb/phy/Makefile

[PATCH v4 3/4] ARM: OMAP2: MUSB: Specify omap4 has mailbox

2013-01-25 Thread Kishon Vijay Abraham I
Added has_mailbox to the musb platform data to specify that omap uses an external mailbox (in control module) to communicate with the musb core during device connect and disconnect. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/usb-musb.c |3 +++ include/linux/usb/musb.h

[PATCH v4 0/4] usb: musb/dwc3: add driver for control module

2013-01-25 Thread Kishon Vijay Abraham I
usb/linux-usb.git omap5-with-palmas (changes up to 23b4dfa2ab7052569cd88acc6383c4b1a8e8a482) Did basic enumeration testing in omap4 panda, omap3 beagle and omap5 evm. Kishon Vijay Abraham I (4): drivers: usb: phy: add a new driver for usb part of control module ARM: OMAP: devices: create device f

[PATCH v3 3/3] ARM: dts: omap: Add usb_otg and glue data

2013-01-25 Thread Kishon Vijay Abraham I
. The information about usb otg node is available @ Documentation/devicetree/bindings/usb/omap-usb.txt Acked-by: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |2 ++ arch/arm/boot/dts/omap3-beagle-xm.dts |6 ++ arch

  1   2   3   4   5   6   7   8   9   10   >