[PATCH 0/2] DRA72/DRA74: Add 2 lane support

2016-01-06 Thread Kishon Vijay Abraham I
. Changes from RFC: *) .b1co_mode_sel_mask is now set with the correct value. *) cleanup the patch Kishon Vijay Abraham I (2): pci: host: pci-dra7xx: use "num-lanes" property to find phy count pci: host: pci-dra7xx: Enable x2 mode support Documentation/devicetree/bindings/pci/ti-pci.

[PATCH 1/2] phy: ti-pipe3: get tx and rx MEM resource

2016-01-06 Thread Kishon Vijay Abraham I
get tx and rx MEM resource since this has to be used to configure for DRA72x to work in X2 mode. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Signed-off-by: Sekhar Nori <nsek...@ti.com> --- drivers/phy/phy-ti-pipe3.c | 27 +++ 1 file changed, 2

[PATCH 2/2] pci: host: pci-dra7xx: Enable x2 mode support

2016-01-06 Thread Kishon Vijay Abraham I
Perform syscon configurations to get x2 mode to working in DRA74x and DRA72x. Also add a new compatible string to dfferentiate DRA72x and DRA74x, since b1c0 mask is different for both these platforms. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindin

[PATCH 1/2] pci: host: pci-dra7xx: use "num-lanes" property to find phy count

2016-01-06 Thread Kishon Vijay Abraham I
use "num-lanes" property to find phy count instead of the number phy-names property. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Signed-off-by: Sekhar Nori <nsek...@ti.com> --- drivers/pci/host/pci-dra7xx.c | 23 +++ 1 file changed, 11 inser

[PATCH 0/2] dra72: add support for PCIE 2 lane mode

2016-01-06 Thread Kishon Vijay Abraham I
to be done in order to test x2 mode in dra72-evm. Patch series is rebased on top of linux-phy next Kishon Vijay Abraham I (2): phy: ti-pipe3: get tx and rx MEM resource phy: ti-pipe3: configure usb3 phy to be used as pcie phy Documentation/devicetree/bindings/phy/ti-phy.txt |2 + drivers

[PATCH 2/2] phy: ti-pipe3: configure usb3 phy to be used as pcie phy

2016-01-06 Thread Kishon Vijay Abraham I
DRA72 uses USB3 PHY for the 2nd lane of PCIE. The configuration required to make USB3 PHY used for the 2nd lane of PCIe is done here. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/phy/ti-phy.txt |2 ++ drivers/phy/phy-ti-p

Re: Nokia N900: u-SD card in v4.2+

2016-01-06 Thread Kishon Vijay Abraham I
Hi, On Thursday 07 January 2016 02:16 AM, Pavel Machek wrote: > Hi! > > In v4.1, both internal MMC and u-SD cards work ok. > > In v4.2, only the internal MMC is detected. In v4.3, not even internal > MMC works. In v4.4, only the internal MMC is detected. > > Does it work for you? Any patches?

Re: [PATCH 2/2] pci: host: pci-dra7xx: Enable x2 mode support

2016-01-06 Thread Kishon Vijay Abraham I
Hi, On Wednesday 06 January 2016 07:43 PM, Rob Herring wrote: > On Wed, Jan 06, 2016 at 04:19:53PM +0530, Kishon Vijay Abraham I wrote: >> Perform syscon configurations to get x2 mode to working in DRA74x and >> DRA72x. Also add a new compatible string to dfferentiate >> DRA

Re: [PATCH v3 6/9] phy: ti-pipe3: use *syscon* framework API to power on/off the PHY

2015-12-21 Thread Kishon Vijay Abraham I
Hi On Sunday 20 December 2015 09:08 AM, Rob Herring wrote: > On Tue, Dec 15, 2015 at 02:46:05PM +0530, Kishon Vijay Abraham I wrote: >> Deprecate using phy-omap-control driver to power on/off the PHY and >> use *syscon* framework to do the same. >> >> Signed-off-by:

[PATCH v4 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-12-21 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dt

[PATCH v4 3/4] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-12-21 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/

[PATCH v4 2/4] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-12-21 Thread Kishon Vijay Abraham I
e PCIe PHY node since some of the syscon initializations is based on system clock frequency. Since "omap_control_pcie1phy" and "omap_control_pcie2phy" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7

[PATCH v4 4/4] ARM: dts: : Use "syscon-phy-power" instead of "ctrl-module"

2015-12-21 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA and USB PHY node. Also remove the unused control module dt nodes. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 16 ++

[PATCH v4 4/4] ARM: dts: : Use "syscon-phy-power" instead of "ctrl-module"

2015-12-21 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA and USB PHY node. Also remove the unused control module dt nodes. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 16 ++

[PATCH v4 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-12-21 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dt

[PATCH v4 3/4] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-12-21 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/

[PATCH v4 0/4] ARM: dts: use syscon property instead of ctrl-module

2015-12-21 Thread Kishon Vijay Abraham I
Changes from [1] in PHY patches include *) cleanup ti_pipe3_probe *) have mask, power_on and power_off values in usb_phy_data for omap-usb2 phy This series should be merged only after [2] Kishon Vijay Abraham I (4): ARM: dts: dra7: Add dt node for the sycon pcie ARM: dts: dra7: Use "syscon-phy-

[RESEND PATCH v4 0/4] ARM: dts: use syscon property instead of ctrl-module

2015-12-21 Thread Kishon Vijay Abraham I
Changes from [1] in PHY patches include *) cleanup ti_pipe3_probe *) have mask, power_on and power_off values in usb_phy_data for omap-usb2 phy This series should be merged only after [2] Kishon Vijay Abraham I (4): ARM: dts: dra7: Add dt node for the sycon pcie ARM: dts: dra7: Use "syscon-phy-

[PATCH v4 2/4] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-12-21 Thread Kishon Vijay Abraham I
e PCIe PHY node since some of the syscon initializations is based on system clock frequency. Since "omap_control_pcie1phy" and "omap_control_pcie2phy" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7

Re: [PATCH v3 9/9] phy: omap-usb2: use *syscon* framework API to power on/off the PHY

2015-12-20 Thread Kishon Vijay Abraham I
Hi Rob, On Sunday 20 December 2015 09:09 AM, Rob Herring wrote: > On Tue, Dec 15, 2015 at 02:46:08PM +0530, Kishon Vijay Abraham I wrote: >> Deprecate using phy-omap-control driver to power on/off the PHY, >> and use *syscon* framework to do the same. This handles >> po

Re: [PATCH v3 0/9] phy: use syscon framework APIs to set ctrl mod reg

2015-12-18 Thread Kishon Vijay Abraham I
Hi, On Tuesday 15 December 2015 08:56 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [151215 04:47]: >> On Tuesday 15 December 2015 05:25 PM, Arnd Bergmann wrote: >>>>> >>>>> Can you explain here what the conversion is good for? Wh

Re: [PATCH v3 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-12-18 Thread Kishon Vijay Abraham I
Hi, On Tuesday 15 December 2015 06:52 PM, Sergei Shtylyov wrote: > Hello. > > On 12/15/2015 12:39 PM, Kishon Vijay Abraham I wrote: > >> Add new device tree node for the control module register space where >> PCIe registers are present. >> >> Signed-off-by: K

[PATCH v3 5/9] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe

2015-12-15 Thread Kishon Vijay Abraham I
No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once PIPE3 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used ti_pipe3_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.

[PATCH v3 2/9] phy: ti-pipe3: move clk initialization to a separate function

2015-12-15 Thread Kishon Vijay Abraham I
No functional change. Moved clock initialization done in probe to a separate function as part of cleaning up ti_pipe3_probe. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/phy/phy-ti-pipe3.c | 127 +--- 1 file changed, 72 inse

[PATCH v3 4/9] phy: ti-pipe3: move mem resource initialization to a separate function

2015-12-15 Thread Kishon Vijay Abraham I
No functional change. Moved mem resource initialization done in probe to a separate function as part of cleaning up ti_pipe3_probe. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/phy/phy-ti-pipe3.c | 52 1 file chang

[PATCH v3 2/4] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-12-15 Thread Kishon Vijay Abraham I
e PCIe PHY node since some of the syscon initializations is based on system clock frequency. Since "omap_control_pcie1phy" and "omap_control_pcie2phy" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7

[PATCH v3 0/4] ARM: dts: use syscon property instead of ctrl-module

2015-12-15 Thread Kishon Vijay Abraham I
astebin.ubuntu.com/14025248/ The config I used: http://pastebin.ubuntu.com/14025336/ Kishon Vijay Abraham I (4): ARM: dts: dra7: Add dt node for the sycon pcie ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node ARM: dts: dra7: Use "ti,dra7x-usb2-phy2&quo

[PATCH v3 9/9] phy: omap-usb2: use *syscon* framework API to power on/off the PHY

2015-12-15 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to power on/off the PHY, and use *syscon* framework to do the same. This handles powering on/off the PHY for the USB2 PHYs used in various TI SoCs. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/phy/ti-p

[PATCH v3 8/9] phy: omap-usb2: use omap_usb_power_off to power off the PHY during probe

2015-12-15 Thread Kishon Vijay Abraham I
No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once phy-omap-usb2 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used omap_usb_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I <

[PATCH v3 1/9] phy: ti-pipe3: introduce local struct device* in probe

2015-12-15 Thread Kishon Vijay Abraham I
No functional change. Introduce local struct device pointer in probe and replace using >dev/phy->dev with the local device pointer. This is in preparation to split ti_pipe3_probe and add separate functions for getting mem resource, getting sysctrl and getting clocks. Signed-off-by: Kishon

[PATCH v3 3/4] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-12-15 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/

[PATCH v3 4/4] ARM: dts: : Use "syscon-phy-power" instead of "ctrl-module"

2015-12-15 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA and USB PHY node. Also remove the unused control module dt nodes. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 16 ++

[PATCH v3 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-12-15 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dt

[PATCH v3 6/9] phy: ti-pipe3: use *syscon* framework API to power on/off the PHY

2015-12-15 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to power on/off the PHY and use *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindings/phy/ti-phy.txt | 10 ++- drivers/phy/phy-ti-pipe3.c

[PATCH v3 7/9] phy: ti-pipe3: use *syscon* framework API to set PCS value of the PHY

2015-12-15 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to set PCS value of the PHY and start using *syscon* API to do the same. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Roger Quadros <rog...@ti.com> --- Documentation/devicetree/bindings/phy/ti-phy.txt |2 ++ drivers/phy/

[PATCH v3 3/9] phy: ti-pipe3: move sysctrl initialization to a separate function

2015-12-15 Thread Kishon Vijay Abraham I
No functional change. Moved sysctrl initialization done in probe to a separate function as part of cleaning up ti_pipe3_probe. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/phy/phy-ti-pipe3.c | 78 +--- 1 file changed, 45 inse

[PATCH v3 0/9] phy: use syscon framework APIs to set ctrl mod reg

2015-12-15 Thread Kishon Vijay Abraham I
DT DRA72 EVM : http://pastebin.ubuntu.com/14025233/ DRA7 EVM : http://pastebin.ubuntu.com/14025238/ AM43XX EVM: http://pastebin.ubuntu.com/14025329/ OMAP5 UEVM: http://pastebin.ubuntu.com/14025248/ The config I used: http://pastebin.ubuntu.com/14025336/ Kishon Vijay Abraham I (9): phy: ti-pi

Re: [PATCH v3 0/9] phy: use syscon framework APIs to set ctrl mod reg

2015-12-15 Thread Kishon Vijay Abraham I
Hi Arnd, On Tuesday 15 December 2015 04:26 PM, Arnd Bergmann wrote: > On Tuesday 15 December 2015 14:45:59 Kishon Vijay Abraham I wrote: >> This series is basically to deprecate using phy-omap-control and use >> syscon APIs to program the control module registers. >&g

Re: [PATCH v3 0/9] phy: use syscon framework APIs to set ctrl mod reg

2015-12-15 Thread Kishon Vijay Abraham I
Hi, On Tuesday 15 December 2015 05:25 PM, Arnd Bergmann wrote: > On Tuesday 15 December 2015 16:44:41 Kishon Vijay Abraham I wrote: >> Hi Arnd, >> >> On Tuesday 15 December 2015 04:26 PM, Arnd Bergmann wrote: >>> On Tuesday 15 December 2015 14:45:59 Kishon Vijay Abr

Re: [PATCH 1/2] usb: musb: core: Fix handling of the phy notifications

2015-12-06 Thread Kishon Vijay Abraham I
ude/linux/musb-omap.h. > > Cc: Bin Liu <b-...@ti.com> > Cc: Felipe Balbi <ba...@ti.com> > Cc: Kishon Vijay Abraham I <kis...@ti.com> > Cc: NeilBrown <n...@brown.name> > Signed-off-by: Tony Lindgren <t...@atomide.com> Reviewed-by: Kishon Vijay Abrah

Re: [PATCH 2/2] usb: musb: Fix unbalanced pm_runtime_enable

2015-12-06 Thread Kishon Vijay Abraham I
fe being set at the child. > > Cc: Bin Liu <b-...@ti.com> > Cc: Felipe Balbi <ba...@ti.com> > Cc: Kishon Vijay Abraham I <kis...@ti.com> > Cc: NeilBrown <n...@brown.name> > Signed-off-by: Tony Lindgren <t...@atomide.com> Reviewed-by: Kishon Vijay Ab

Re: PCIe regression with DRA7xx in 4.4-rc1

2015-11-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 24 November 2015 05:38 PM, Gabriele Paoloni wrote: > Hi Kishon > >> -Original Message----- >> From: Kishon Vijay Abraham I [mailto:kis...@ti.com] >> Sent: 24 November 2015 12:01 >> To: linux-...@vger.kernel.org; linux-ker...@vger.kernel.org;

PCIe regression with DRA7xx in 4.4-rc1

2015-11-24 Thread Kishon Vijay Abraham I
Hi, I'm seeing a regression with ("PCI: designware: Make driver arch-agnostic"). Logs using a SATA PCIe card [1]. The PCIe card enumerates fine but after that I observe "ata3.00: qc timeout (cmd 0xec), ata3.00: failed to IDENTIFY (I/O error, err_mask=0x4)" Logs using a Ethenet PCIe card [2].

Re: PCIe regression with DRA7xx in 4.4-rc1

2015-11-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 24 November 2015 05:44 PM, Jisheng Zhang wrote: > > > On Tue, 24 Nov 2015 17:31:07 +0530 > Kishon Vijay Abraham I wrote: > >> Hi, >> >> I'm seeing a regression with ("PCI: >> designware: Make driver arch-agnostic"). >> >&

Re: [PATCH v2 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-10-12 Thread Kishon Vijay Abraham I
Hi, On Tuesday 13 October 2015 03:42 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [151012 15:09]: >> Hi, >> >> On Tuesday 13 October 2015 03:33 AM, Tony Lindgren wrote: >>> * Kishon Vijay Abraham I <kis...@ti.com> [151012 14:

Re: [PATCH v2 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-10-12 Thread Kishon Vijay Abraham I
Hi, On Tuesday 13 October 2015 03:33 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [151012 14:50]: >> Hi Tony, >> >> On Tuesday 13 October 2015 02:51 AM, Tony Lindgren wrote: >>> * Kishon Vijay Abraham I <kis...@ti.com> [15

Re: [PATCH v2 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-10-12 Thread Kishon Vijay Abraham I
Hi Tony, On Tuesday 13 October 2015 02:51 AM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [150915 06:37]: >> Add new device tree node for the control module register space where >> PCIe registers are present. >> >> Signed-off-by: Kish

Re: [RFC PATCH 0/2] DRA72/DRA74: Add 2 lane support

2015-10-09 Thread Kishon Vijay Abraham I
Hi Bjorn, On Saturday 10 October 2015 04:20 AM, Bjorn Helgaas wrote: > [+cc Arnd, Rob] > > On Mon, Sep 28, 2015 at 06:27:36PM +0530, Kishon Vijay Abraham I wrote: >> Add driver modifications in pci-dra7xx to get x2 mode working in >> DRA72 and DRA74. Certain modifications is

Re: [RFC PATCH 0/2] DRA72/DRA74: Add 2 lane support

2015-10-09 Thread Kishon Vijay Abraham I
Hi, On Saturday 10 October 2015 04:46 AM, Kishon Vijay Abraham I wrote: > Hi Bjorn, > > On Saturday 10 October 2015 04:20 AM, Bjorn Helgaas wrote: >> [+cc Arnd, Rob] >> >> On Mon, Sep 28, 2015 at 06:27:36PM +0530, Kishon Vijay Abraham I wrote: >>> Add driver m

Re: All OMAP platforms: MMC is broken

2015-10-07 Thread Kishon Vijay Abraham I
Hi, On Thursday 08 October 2015 01:10 AM, Ulf Hansson wrote: > On 7 October 2015 at 17:52, Tony Lindgren wrote: >> * Ulf Hansson [151007 06:46]: >>> On 7 October 2015 at 15:26, Tony Lindgren wrote: >> Good idea, how about

Re: All OMAP platforms: MMC is broken

2015-10-07 Thread Kishon Vijay Abraham I
Hi, On Wednesday 07 October 2015 01:27 AM, Russell King - ARM Linux wrote: > On Wed, Oct 07, 2015 at 12:59:29AM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 06 October 2015 08:37 PM, Russell King - ARM Linux wrote: >>> On Tue, Oct 06, 2015 at 04:06:09

Re: All OMAP platforms: MMC is broken

2015-10-06 Thread Kishon Vijay Abraham I
Hi, On Tuesday 06 October 2015 08:37 PM, Russell King - ARM Linux wrote: > On Tue, Oct 06, 2015 at 04:06:09PM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Tuesday 06 October 2015 03:41 PM, Ulf Hansson wrote: >>> On 6 October 2015 at 11:44, Tony Lin

Re: All OMAP platforms: MMC is broken

2015-10-06 Thread Kishon Vijay Abraham I
Hi, On Tuesday 06 October 2015 03:41 PM, Ulf Hansson wrote: > On 6 October 2015 at 11:44, Tony Lindgren wrote: >> * Russell King - ARM Linux [151006 02:04]: >>> On Mon, Oct 05, 2015 at 07:38:13PM +0100, Russell King - ARM Linux wrote: On Mon, Oct

[RFC PATCH 1/2] pci: host: pci-dra7xx: use "num-lanes" property to find phy count

2015-09-28 Thread Kishon Vijay Abraham I
use "num-lanes" property to find phy count instead of the number phy-names property. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- drivers/pci/host/pci-dra7xx.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/driv

[RFC PATCH 2/2] pci: host: pci-dra7xx: Enable x2 mode support

2015-09-28 Thread Kishon Vijay Abraham I
Perform syscon configurations to get x2 mode to working in DRA74x and DRA72x. Also add a new compatible string to dfferentiate DRA72x and DRA74x, since b1c0 mask is different for both these platforms. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Documentation/devicetree/bindin

[RFC PATCH 0/2] DRA72/DRA74: Add 2 lane support

2015-09-28 Thread Kishon Vijay Abraham I
Add driver modifications in pci-dra7xx to get x2 mode working in DRA72 and DRA74. Certain modifications is needed in PHY driver also which I'll send as a separate series. Kishon Vijay Abraham I (2): pci: host: pci-dra7xx: use "num-lanes" property to find phy count pci: host:

[PATCH v2 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-09-15 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dt

[PATCH v2 4/4] ARM: dts: : Use "syscon-phy-power" instead of "ctrl-module"

2015-09-15 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA and USB PHY node. Also remove the unused control module dt nodes. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 16 ++

[PATCH v2 3/4] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-09-15 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/

[PATCH v2 0/4] ARM: dts: use syscon property instead of ctrl-module

2015-09-15 Thread Kishon Vijay Abraham I
in usb_phy_data for omap-usb2 phy This series should be merged only after [2] Did basic enumeration testing to make sure the patch series doesn't cause any regressions. [1] -> https://lkml.org/lkml/2015/6/23/189 [2] -> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg973939

[PATCH v2 2/4] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-09-15 Thread Kishon Vijay Abraham I
e PCIe PHY node since some of the syscon initializations is based on system clock frequency. Since "omap_control_pcie1phy" and "omap_control_pcie2phy" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dt

Re: [PATCH v3 0/2] regulator: Fix pbias regulator enable

2015-09-14 Thread Kishon Vijay Abraham I
Hi, On Tuesday 15 September 2015 01:52 AM, Tony Lindgren wrote: > Hi, > > * Ulf Hansson [150904 05:48]: >> >> Okay, just to be clear on the way forward. I spoked with Mark Brown >> offlist, and he will/has picked up the regulator patch and will send >> it as fix for the

Re: [PATCH] ARM: multi_v7_defconfig: Enable PBIAS regulator

2015-09-09 Thread Kishon Vijay Abraham I
hi, On Wednesday 09 September 2015 09:33 AM, Guenter Roeck wrote: > On Sun, Sep 06, 2015 at 04:41:10PM -0700, Guenter Roeck wrote: >> On Thu, Sep 03, 2015 at 03:25:11PM +0530, Kishon Vijay Abraham I wrote: >>> PBIAS regulator is required for MMC module in OMAP2, OMAP3, OMAP4,

Re: [PATCH] ARM: omap2plus_defconfig: make PCF857x built-in

2015-09-08 Thread Kishon Vijay Abraham I
Hello, On Wednesday 05 August 2015 07:13 PM, Kishon Vijay Abraham I wrote: > One of the lines from PCF857x is connected to the vdd line of MMC1 > in DRA74x and DRA72x EVMs and is modelled as a regulator. If PCF857x > is not made as built-in, the regulator_get in omap_hsmmc fai

[PATCH v3 0/2] regulator: Fix pbias regulator enable

2015-09-04 Thread Kishon Vijay Abraham I
y's review comments on adding a 'comment' for adding offset in the driver and adding a warning for using platform_get_resource. *) Added Tony's Acked-by. Tested these patches against mmc -next in omap4 panda, omap3 beagle xm, dra72 and omap5 uevm Kishon Vijay Abraham I (2): regulator: pbias: pro

[RESEND PATCH] ARM: multi_v7_defconfig: Enable PBIAS regulator

2015-09-04 Thread Kishon Vijay Abraham I
PBIAS regulator is required for MMC module in OMAP2, OMAP3, OMAP4, OMAP5 and DRA7 SoCs. Enable it here. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/configs/multi_v7_defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v3 1/2] regulator: pbias: program pbias register offset in pbias driver

2015-09-04 Thread Kishon Vijay Abraham I
com> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- .../bindings/regulator/pbias-regulator.txt |7 ++- drivers/regulator/pbias-regulator.c| 56 +--- 2 files changed, 56 insertions(+), 7

[PATCH v3 2/2] ARM: dts: : use "ti,pbias-" compatible string for pbias

2015-09-04 Thread Kishon Vijay Abraham I
Use platform specific compatible strings instead of the common "ti,pbias-omap" compatible string. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- arch/arm/boot/dts/dra7.dtsi |2 +- arch/arm/boot/dts/omap2430.dt

Re: [PATCH 0/4] omap: Fix broken address translation for pbias

2015-09-04 Thread Kishon Vijay Abraham I
Hi Tony, On Thursday 03 September 2015 08:40 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [150903 04:31]: >> pbias device stopped having memory resource after >> "ARM: dts: : add minimal l4 bus layout with control module >> s

[PATCH v2] ARM: dts: >: fix address translation for pbias

2015-09-04 Thread Kishon Vijay Abraham I
("ARM: dts: omap5: add minimal l4 bus layout with control module support") Fixes: d919501feffa ("ARM: dts: dra7: add minimal l4 bus layout with control module support") Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- Changes from v1: *) squashed [1] to a singl

Re: [PATCH] ARM: multi_v7_defconfig: Enable PBIAS regulator

2015-09-04 Thread Kishon Vijay Abraham I
Hi, On Thursday 03 September 2015 08:53 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I <kis...@ti.com> [150903 02:58]: >> PBIAS regulator is required for MMC module in OMAP2, OMAP3, OMAP4, >> OMAP5 and DRA7 SoCs. Enable it here. >> >> Signed-off-by: Kish

[PATCH v2 1/6] regulator: pbias: program pbias register offset in pbias driver

2015-09-03 Thread Kishon Vijay Abraham I
com> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- .../bindings/regulator/pbias-regulator.txt |7 ++- drivers/regulator/pbias-regulator.c| 56 +--- 2 files changed, 56 insertions(+), 7

[PATCH v2 0/6] regulator: Fix pbias regulator enable

2015-09-03 Thread Kishon Vijay Abraham I
the driver and adding a warning for using platform_get_resource. *) Added Tony's Acked-by. Tested these patches against mmc -next in omap4 panda, omap3 beagle xm, dra72 and omap5 uevm Kishon Vijay Abraham I (6): regulator: pbias: program pbias register offset in pbias driver ARM: dts: dra7: use &quo

[PATCH v2 2/6] ARM: dts: dra7: use "ti,pbias-dra7" compatible string for pbias

2015-09-03 Thread Kishon Vijay Abraham I
Use "ti,pbias-dra7" compatible string which is specifically added for DRA7 SoCs. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- arch/arm/boot/dts/dra7.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 4/6] ARM: dts: omap3: use "ti,pbias-omap3" compatible string for pbias

2015-09-03 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap3" compatible string which is specifically added for OMAP3. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- arch/arm/boot/dts/omap3.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH v2 3/6] ARM: dts: omap243x: use "ti,pbias-omap2" compatible string for pbias

2015-09-03 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap2" compatible string which is specifically added for OMAP2. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- arch/arm/boot/dts/omap2430.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v2 0/6] regulator: Fix pbias regulator enable

2015-09-03 Thread Kishon Vijay Abraham I
Hi, On Thursday 03 September 2015 01:09 PM, Ulf Hansson wrote: > +Olof > > On 3 September 2015 at 08:50, Kishon Vijay Abraham I <kis...@ti.com> wrote: >> vsel_reg and enable_reg of the pbias regulator descriptor should actually >> have the offset from syscon. >&

[PATCH v2 6/6] ARM: dts: omap5: use "ti,pbias-omap5" compatible string for pbias

2015-09-03 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap5" compatible string which is specifically added for OMAP5. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- arch/arm/boot/dts/omap5.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH v2 5/6] ARM: dts: omap4: use "ti,pbias-omap4" compatible string for pbias

2015-09-03 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap4" compatible string which is specifically added for OMAP4. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> Acked-by: Tony Lindgren <t...@atomide.com> --- arch/arm/boot/dts/omap4.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH] ARM: multi_v7_defconfig: Enable PBIAS regulator

2015-09-03 Thread Kishon Vijay Abraham I
PBIAS regulator is required for MMC module in OMAP2, OMAP3, OMAP4, OMAP5 and DRA7 SoCs. Enable it here. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/configs/multi_v7_defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH 1/4] ARM: dts: omap24xx: fix address translation for pbias

2015-09-03 Thread Kishon Vijay Abraham I
rying to convert the address to resource. Fix it here. Fixes: 72b10ac00eb1 ("ARM: dts: omap24xx: add minimal l4 bus layout with control module support") Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap2430.dtsi |1 + 1 file changed, 1 insertion(+)

[PATCH 4/4] ARM: dts: dra7: fix address translation for pbias

2015-09-03 Thread Kishon Vijay Abraham I
he address to resource. Fix it here. Fixes: d919501feffa ("ARM: dts: dra7: add minimal l4 bus layout with control module support") Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts

[PATCH 0/4] omap: Fix broken address translation for pbias

2015-09-03 Thread Kishon Vijay Abraham I
d the address in omap4 panda, omap5 uevm and dra72 boards. Kishon Vijay Abraham I (4): ARM: dts: omap24xx: fix address translation for pbias ARM: dts: omap4: fix address translation for pbias ARM: dts: omap5: fix address translation for pbias ARM: dts: dra7: fix address translation for pbi

[PATCH 3/4] ARM: dts: omap5: fix address translation for pbias

2015-09-03 Thread Kishon Vijay Abraham I
ile trying to convert the address to resource. Fix it here. Fixes: ed8509edddeb ("ARM: dts: omap5: add minimal l4 bus layout with control module support") Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap5.dtsi |1 + 1 file changed, 1 insertion(+) diff

[PATCH 2/4] ARM: dts: omap4: fix address translation for pbias

2015-09-03 Thread Kishon Vijay Abraham I
tion fails while trying to convert the address to resource. Fix it here. Fixes: 7415b0b4c645 ("ARM: dts: omap4: add minimal l4 bus layout with control module support") Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap4.dtsi |1 + 1 file cha

[PATCH 5/6] ARM: dts: OMAP4: use "ti,pbias-omap4" compatible string for pbias

2015-09-02 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap4" compatible string which is specifically added for OMAP4. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap4.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boo

[PATCH 4/6] ARM: dts: omap3: use "ti,pbias-omap3" compatible string for pbias

2015-09-02 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap3" compatible string which is specifically added for OMAP3. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap3.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boo

[PATCH 0/6] Fix pbias regulator enable

2015-09-02 Thread Kishon Vijay Abraham I
appens due to pbias node made as the child node of syscon. This breaks the pbias regulator enable. This series adds the 'offset' to be populated in vsel_reg and enable_reg in the pbias driver itself. Tested these patches against mmc -next in omap4 panda, omap3 beagle xm, dra72 and omap5 uevm Ki

[PATCH 1/6] regulator: pbias: program pbias register offset in pbias driver

2015-09-02 Thread Kishon Vijay Abraham I
com> Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- .../bindings/regulator/pbias-regulator.txt |7 ++- drivers/regulator/pbias-regulator.c| 52 +--- 2 files changed, 52 insertions(+), 7 deletions(-) diff --git a/Documentation/devicet

[PATCH 2/6] ARM: dts: dra7: use "ti,pbias-dra7" compatible string for pbias

2015-09-02 Thread Kishon Vijay Abraham I
Use "ti,pbias-dra7" compatible string which is specifically added for DRA7 SoCs. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/bo

[PATCH 6/6] ARM: dts: OMAP5: use "ti,pbias-omap5" compatible string for pbias

2015-09-02 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap5" compatible string which is specifically added for OMAP5. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap5.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boo

[PATCH 3/6] ARM: dts: omap243x: use "ti,pbias-omap2" compatible string for pbias

2015-09-02 Thread Kishon Vijay Abraham I
Use "ti,pbias-omap2" compatible string which is specifically added for OMAP2. Signed-off-by: Kishon Vijay Abraham I <kis...@ti.com> --- arch/arm/boot/dts/omap2430.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap2430.dtsi b/a

Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator

2015-09-01 Thread Kishon Vijay Abraham I
Hi Mark, On Monday 31 August 2015 08:22 PM, Mark Brown wrote: > On Mon, Aug 31, 2015 at 04:14:07PM +0530, Kishon Vijay Abraham I wrote: >> On Tuesday 25 August 2015 07:20 PM, Mark Brown wrote: >>> On Tue, Aug 25, 2015 at 01:03:04PM +0300, Grygorii Strashko wrote: >>>>

Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator

2015-09-01 Thread Kishon Vijay Abraham I
Now fixed Lee Jones mail address! On Tuesday 01 September 2015 03:10 PM, Kishon Vijay Abraham I wrote: > Hi Mark, > > On Monday 31 August 2015 08:22 PM, Mark Brown wrote: >> On Mon, Aug 31, 2015 at 04:14:07PM +0530, Kishon Vijay Abraham I wrote: >>> On Tuesday 25 August 2

Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator

2015-08-31 Thread Kishon Vijay Abraham I
Hi Mark, On Tuesday 25 August 2015 07:20 PM, Mark Brown wrote: > On Tue, Aug 25, 2015 at 01:03:04PM +0300, Grygorii Strashko wrote: >> On 08/19/2015 09:11 PM, Mark Brown wrote: > >>> So substract this address from the start of the resource to get the >>> offset? Or provide a wrapper function in

Re: [PATCH v3 02/15] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get

2015-08-30 Thread Kishon Vijay Abraham I
Hi, On Saturday 29 August 2015 12:33 AM, Tony Lindgren wrote: * Olof Johansson o...@lixom.net [150828 11:11]: Hi, On Thu, Aug 27, 2015 at 2:13 AM, Kishon Vijay Abraham I kis...@ti.com wrote: Now return error only if the return value of devm_regulator_get_optional() is not the same

Re: [PATCH v3 13/15] mmc: host: omap_hsmmc: use regulator_is_enabled to find pbias status

2015-08-27 Thread Kishon Vijay Abraham I
Hi Uffe, On Thursday 27 August 2015 06:12 PM, Ulf Hansson wrote: On 27 August 2015 at 14:41, Ulf Hansson ulf.hans...@linaro.org wrote: On 27 August 2015 at 11:14, Kishon Vijay Abraham I kis...@ti.com wrote: Use regulator_is_enabled of pbias regulator to find pbias regulator status instead

Re: [PATCH v3 00/15] omap_hsmmc: regulator usage cleanup and fixes

2015-08-27 Thread Kishon Vijay Abraham I
On Thursday 27 August 2015 06:39 PM, Ulf Hansson wrote: On 27 August 2015 at 11:13, Kishon Vijay Abraham I kis...@ti.com wrote: This patch series does the following *) Uses devm_regulator_get_optional() for vmmc and then removes the CONFIG_REGULATOR check altogether. *) return

[PATCH v3 10/15] mmc: host: omap_hsmmc: avoid pbias regulator enable on power off

2015-08-27 Thread Kishon Vijay Abraham I
Fix omap_hsmmc_set_power so that pbias regulator is not enabled during power off. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v3 11/15] mmc: host: omap_hsmmc: don't use -set_power to set initial regulator state

2015-08-27 Thread Kishon Vijay Abraham I
takes care of setting the voltages which is not needed at this point. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 66 ++--- 1 file changed, 56 insertions(+), 10 deletions

  1   2   3   4   5   6   7   8   9   10   >