[PATCH v3 09/15] mmc: host: omap_hsmmc: add separate function to set pbias

2015-08-27 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions to set pbias and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 78

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

2015-08-27 Thread Kishon Vijay Abraham I
Use regulator_is_enabled of pbias regulator to find pbias regulator status instead of maintaining a custom bookkeeping pbias_enabled variable. 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

[PATCH v3 14/15] mmc: host: omap_hsmmc: use ios-vdd for setting vmmc voltage

2015-08-27 Thread Kishon Vijay Abraham I
vdd voltage is set in mmc core to ios-vdd and vmmc should actually be set to this voltage. Modify omap_hsmmc_enable_supply to not take vdd as argument since now it's directly set to the voltage in ios-vdd. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t

[PATCH v3 15/15] mmc: host: omap_hsmmc: remove CONFIG_REGULATOR check

2015-08-27 Thread Kishon Vijay Abraham I
Now that support for platforms which have optional regulator is added, remove CONFIG_REGULATOR check in omap_hsmmc. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 34 +++--- 1 file

[PATCH v3 12/15] mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on previous state

2015-08-27 Thread Kishon Vijay Abraham I
enable vmmc_aux regulator only if it is in disabled state and disable vmmc_aux regulator only if it is in enabled state. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 10 -- 1 file changed, 8 insertions

[PATCH v3 08/15] mmc: host: omap_hsmmc: add separate functions for enable/disable supply

2015-08-27 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions for enable/disable supply and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 101

[PATCH v3 05/15] mmc: host: omap_hsmmc: use mmc_host's vmmc and vqmmc

2015-08-27 Thread Kishon Vijay Abraham I
No functional change. Instead of using omap_hsmmc_host's vcc and vcc_aux members, use vmmc and vqmmc present in mmc_host which is present for the same purpose. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Reviewed-by: Roger Quadros rog...@ti.com Tested-by: Tony Lindgren t...@atomide.com

[PATCH v3 06/15] mmc: host: omap_hsmmc: remove unnecessary pbias set_voltage

2015-08-27 Thread Kishon Vijay Abraham I
Remove the unnecessary pbias regulator_set_voltage done after pbias regulator_disable in omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Reviewed-by: Roger Quadros rog...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c |1 - 1 file

[PATCH v3 07/15] mmc: host: omap_hsmmc: return error if any of the regulator APIs fail

2015-08-27 Thread Kishon Vijay Abraham I
Return error if any of the regulator APIs (regulator_enable, regulator_disable, regulator_set_voltage) fails in omap_hsmmc_set_power to avoid undefined behavior. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 52

[PATCH v3 04/15] mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulator

2015-08-27 Thread Kishon Vijay Abraham I
-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 3fde2f9..30f363d 100644

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

2015-08-27 Thread Kishon Vijay Abraham I
Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com

[PATCH v3 01/15] mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc

2015-08-27 Thread Kishon Vijay Abraham I
-off-by: Kishon Vijay Abraham I kis...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 19ae7e6..9b335af 100644

[PATCH v3 03/15] mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get()

2015-08-27 Thread Kishon Vijay Abraham I
-by: Kishon Vijay Abraham I kis...@ti.com Reviewed-by: Roger Quadros rog...@ti.com Tested-by: Tony Lindgren t...@atomide.com --- drivers/mmc/host/omap_hsmmc.c | 38 -- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b

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

2015-08-27 Thread Kishon Vijay Abraham I
Vijay Abraham I (15): mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get() mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulator mmc: host

Re: [PATCH v2 16/16] mmc: host: omap_hsmmc: use mmc_of_parse_voltage to get ocr_avail

2015-08-26 Thread Kishon Vijay Abraham I
Hi Ulf, On Tuesday 25 August 2015 08:20 PM, Ulf Hansson wrote: On 3 August 2015 at 14:26, Kishon Vijay Abraham I kis...@ti.com wrote: From: Roger Quadros rog...@ti.com For platforms that doesn't have explicit regulator control in MMC, populate voltage-ranges in MMC device tree node and use

Re: [PATCH 12/17] ARM: dts: am57xx-beagle-x15: Fix regulator populated in MMC1 dt node

2015-08-25 Thread Kishon Vijay Abraham I
Hi Tony, On Thursday 30 July 2015 01:07 AM, Nishanth Menon wrote: On 07/29/2015 06:09 AM, Kishon Vijay Abraham I wrote: For beagle x15, both the vdd and io lines are connected to the same regulator (ldo1_reg). However vmmc_aux is populated to vdd_3v3. Remove it. Signed-off-by: Kishon Vijay

[PATCH v2 02/11] mmc: host: omap_hsmmc: separate setting voltage capabilities from bus power

2015-08-25 Thread Kishon Vijay Abraham I
omap_hsmmc_conf_bus_power to be invoked every time there is a voltage switch. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH v2 01/11] mmc: host: omap_hsmmc: Support vmmc_aux to switch to 1.8v

2015-08-25 Thread Kishon Vijay Abraham I
Add support for vmmc_aux to switch to 1.8v. Also use iov instead of vdd to indicate io voltage. This is in preparation for adding support for io signal voltage switch. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 48

[PATCH v2 04/11] mmc: host: omap_hsmmc: add voltage switch support for UHS SD card

2015-08-25 Thread Kishon Vijay Abraham I
the voltage switch sequence] Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 129 + 1 file changed, 129 insertions(+) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index d3fe0f8..7dac486 100644

[PATCH v2 03/11] mmc: host: omap_hsmmc: program HCTL based on signal_voltage set by mmc core

2015-08-25 Thread Kishon Vijay Abraham I
set on power mode status being changed to MMC_POWER_ON. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index

[PATCH v2 07/11] mmc: host: omap_hsmmc: add tuning support

2015-08-25 Thread Kishon Vijay Abraham I
host caps field. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Viswanath Puttagunta vi...@ti.com Signed-off-by: Sourav Poddar sourav.pod...@ti.com [kis...@ti.com : cleanup the tuning sequence] Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 234

[PATCH v2 08/11] mmc: host: omap_hsmmc: Workaround for errata id i802

2015-08-25 Thread Kishon Vijay Abraham I
of the tuning end flag. Assertion of tuning end flag is what masks the interrupts. Because of this race, an erroneous DCRC interrupt occurs. The suggested workaround is to disable DCRC interrupts during the tuning procedure which is implemented here. Signed-off-by: Kishon Vijay Abraham I kis

[PATCH v2 11/11] mmc: host: omap_hsmmc: add software timer when timeout greater than hardware capablility

2015-08-25 Thread Kishon Vijay Abraham I
-by: Mugunthan V N mugunthan...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 71 +++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index

[PATCH v2 09/11] mmc: host: omap_hsmmc: Allow io voltage switch even for fixed vdd

2015-08-25 Thread Kishon Vijay Abraham I
Now that vmmc regulator is made optional, do not bail out if vmmc regulator is not found. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c |7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH v2 10/11] mmc: host: omap_hsmmc: remove incorrect voltage switch sequence

2015-08-25 Thread Kishon Vijay Abraham I
in start_signal_voltage_switch ops to be used by mmc core for switching voltages. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 81 - 1 file changed, 81 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH v2 06/11] mmc: host: omap_hsmmc: set timing in the UHSMS field

2015-08-25 Thread Kishon Vijay Abraham I
Add a separate function to set the UHSMS field to one of SDR104, SDR50, DDR50, SDR25 or SDR12 depending on the inserted SD card. This is required for tuning to succeed in the case of SDR104/HS200 or SDR50. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c

[PATCH v2 05/11] mmc: host: omap_hsmmc: set clk rate to the max frequency

2015-08-25 Thread Kishon Vijay Abraham I
Set the clock rate of the functional clock to the max frequency that is passed to the driver either using pdata or dt. Also remove unnecessary setting of host-fclk to NULL. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 13 - 1 file changed

[PATCH v2 00/11] omap_hsmmc: voltage switching and tuning

2015-08-25 Thread Kishon Vijay Abraham I
, Beagle-x15, AM437x EVM, Beaglebone black, OMAP5 uEVM and OMAP4 PANDA, OMAP3 beagle xm. Also performed PM suspend/resume test with OMAP3 beagle xm. Balaji T K (2): mmc: host: omap_hsmmc: add voltage switch support for UHS SD card mmc: host: omap_hsmmc: add tuning support Kishon Vijay Abraham I (8

Re: [PATCH v2 00/16] omap_hsmmc: regulator usage cleanup and fixes

2015-08-21 Thread Kishon Vijay Abraham I
Hi Tony, On Friday 21 August 2015 01:11 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150820 05:39]: Hi, On Monday 03 August 2015 05:56 PM, Kishon Vijay Abraham I wrote: Changes from v1: *) return on -EPROBE_DEFER and other fatal errors. (Don't return only

Re: [PATCH] usb: musb: omap2430: use *syscon* framework API to write to mailbox register

2015-08-20 Thread Kishon Vijay Abraham I
Hi, On Thursday 06 August 2015 02:17 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150805 07:10]: On Wednesday 05 August 2015 01:31 PM, Tony Lindgren wrote: We don't have syscon-otghs and to me it seems we need a PHY driver as I pointed out at: If *syscon-otghs

Re: [PATCH v2 00/16] omap_hsmmc: regulator usage cleanup and fixes

2015-08-20 Thread Kishon Vijay Abraham I
Hi, On Monday 03 August 2015 05:56 PM, Kishon Vijay Abraham I wrote: Changes from v1: *) return on -EPROBE_DEFER and other fatal errors. (Don't return only if the return value is -ENODEV) *) Remove the beagle x15 dts patch. It can be part of a different series. *) Avoid using

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

2015-08-19 Thread Kishon Vijay Abraham I
Hi Mark Brown, On Wednesday 19 August 2015 11:41 PM, Mark Brown wrote: On Tue, Aug 18, 2015 at 11:23:54AM +0530, Kishon Vijay Abraham I wrote: On Friday 14 August 2015 11:30 PM, Mark Brown wrote: On Mon, Jul 27, 2015 at 04:54:09PM +0530, Kishon Vijay Abraham I wrote: is moved as a child

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

2015-08-17 Thread Kishon Vijay Abraham I
Hi Mark Brown, On Friday 14 August 2015 11:30 PM, Mark Brown wrote: On Mon, Jul 27, 2015 at 04:54:09PM +0530, Kishon Vijay Abraham I wrote: vsel_reg and enable_reg of the pbias regulator descriptor should actually have the offset from syscon. However after the pbias device tree node I'm

Re: [PATCH v5 0/3] dra7xx: Add PM support to PCIe

2015-08-11 Thread Kishon Vijay Abraham I
On Wednesday 12 August 2015 02:22 AM, Bjorn Helgaas wrote: On Fri, Jul 31, 2015 at 05:55:09PM +0530, Kishon Vijay Abraham I wrote: This series adds PM support to pci-dra7xx so that PCI clocks can be disabled during suspend and enabled back during resume without affecting PCI functionality

Re: [PATCH 0/4] omap: Fix broken pbias device creation

2015-08-07 Thread Kishon Vijay Abraham I
Hi Peter, On Friday 07 August 2015 05:18 PM, Peter Robinson wrote: On Wed, Aug 5, 2015 at 11:00 AM, Tony Lindgren t...@atomide.com wrote: * Grygorii Strashko grygorii.stras...@ti.com [150729 02:01]: On 07/27/2015 03:16 PM, Kishon Vijay Abraham I wrote: pbias device creation got broken once

Re: [PATCH 00/11] omap_hsmmc: voltage switching and tuning

2015-08-07 Thread Kishon Vijay Abraham I
Hi, On Thursday 06 August 2015 12:18 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150805 08:03]: Hi, On Wednesday 05 August 2015 04:13 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150730 00:49]: Patch series implements voltage switching and tuning

Re: [PATCH] usb: musb: omap2430: use *syscon* framework API to write to mailbox register

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 August 2015 09:28 PM, Felipe Balbi wrote: Hi, On Tue, Aug 04, 2015 at 07:36:09PM +0530, Kishon Vijay Abraham I wrote: Deprecate using phy-omap-control driver to write to the mailbox register and start using *syscon* framework to do the same. Signed-off-by: Kishon Vijay

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

2015-08-05 Thread Kishon Vijay Abraham I
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 fails making it difficult to use MMC1 as rootfs. Make PCF857x built-in. Signed-off-by: Kishon Vijay

Re: [PATCH] usb: musb: omap2430: use *syscon* framework API to write to mailbox register

2015-08-05 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 05 August 2015 01:31 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150804 07:11]: Deprecate using phy-omap-control driver to write to the mailbox register and start using *syscon* framework to do the same. .. @@ -512,6 +558,40 @@ static const struct

Re: [PATCH 1/7] phy: ti-pipe3: cleanup ti_pipe3_probe()

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 August 2015 09:30 PM, Felipe Balbi wrote: On Tue, Aug 04, 2015 at 08:50:40PM +0530, Kishon Vijay Abraham I wrote: No functional change. Add separate functions for pll, clocks and syscon to make ti_pipe3_probe clean. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com I

Re: [PATCH 2/7] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Tuesday 04 August 2015 09:36 PM, Felipe Balbi wrote: On Tue, Aug 04, 2015 at 08:50:41PM +0530, Kishon Vijay Abraham I wrote: No functional change. Previously omap_control_phy_power() was used to power there is a slight functional change. You moved PHY power off from before to after

Re: [PATCH 6/7] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-08-05 Thread Kishon Vijay Abraham I
Hi Roger, On Wednesday 05 August 2015 01:55 PM, Roger Quadros wrote: On 05/08/15 11:23, Roger Quadros wrote: On 04/08/15 18:20, Kishon Vijay Abraham I wrote: The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, add a new compatible

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

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 August 2015 02:05 PM, Roger Quadros wrote: On 04/08/15 18:20, 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 powering on/off the PHY for the USB2 PHYs used in various TI

Re: [PATCH 10/10] ARM: dts: omap4: Use syscon-otghs instead of ctrl-module in USB node

2015-08-05 Thread Kishon Vijay Abraham I
Hi Roger, On Wednesday 05 August 2015 01:38 PM, Roger Quadros wrote: On 05/08/15 11:02, Roger Quadros wrote: Kishon, On 04/08/15 18:30, Kishon Vijay Abraham I wrote: Add syscon-otghs property and remove the deprecated ctrl-module property from MUSB devicetree node. Since

Re: [PATCH 00/11] omap_hsmmc: voltage switching and tuning

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 August 2015 04:13 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150730 00:49]: Patch series implements voltage switching and tuning for omap_hsmmc driver. Did basic read/write test in J6, J6 Eco, Beagle-x15, AM437x EVM, Beaglebone black, OMAP5 uEVM

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

2015-08-05 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 05 August 2015 03:17 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150727 04:27]: vsel_reg and enable_reg of the pbias regulator descriptor should actually have the offset from syscon. However after the pbias device tree node is moved as a child node

Re: [PATCH 0/7] ARM: dts: MMC fixes for DRA7 based boards

2015-08-05 Thread Kishon Vijay Abraham I
Hi, On Wednesday 05 August 2015 04:24 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150730 01:16]: Miscellaneous fixes in dts files for MMC device tree nodes. Did basic read/write test in J6, J6 Eco and Beagle-x15 Balaji T K (1): ARM: dts: dra7-evm: add evm_3v3_sd

[PATCH] usb: musb: omap2430: use *syscon* framework API to write to mailbox register

2015-08-04 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to write to the mailbox register and start using *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- Documentation/devicetree/bindings/usb/omap-usb.txt |7 +- drivers/usb/musb/omap2430.c

[PATCH 1/7] phy: ti-pipe3: cleanup ti_pipe3_probe()

2015-08-04 Thread Kishon Vijay Abraham I
No functional change. Add separate functions for pll, clocks and syscon to make ti_pipe3_probe clean. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/phy/phy-ti-pipe3.c | 165 1 file changed, 104 insertions(+), 61 deletions(-) diff

[PATCH 5/7] phy: omap-usb2: use omap_usb_power_off to power off the PHY during probe

2015-08-04 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 kis

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

2015-08-04 Thread Kishon Vijay Abraham I
the dt patches and after applying the dt patches (dt patches will be posted shortly). [1] - https://lkml.org/lkml/2015/6/23/189 [2] - http://permalink.gmane.org/gmane.linux.kernel/2012427 Kishon Vijay Abraham I (7): phy: ti-pipe3: cleanup ti_pipe3_probe() phy: ti-pipe3: use ti_pipe3_power_off

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

2015-08-04 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/phy-ti-pipe3.c

[PATCH 6/7] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-08-04 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, add a new compatible string. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- Documentation/devicetree/bindings/phy/ti-phy.txt |2 ++ drivers/phy/phy-omap-usb2.c

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

2015-08-04 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 | 90

[PATCH 2/7] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe

2015-08-04 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.com

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

2015-08-04 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-phy.txt

[PATCH 04/10] ARM: dts: dra7: Use ti,dra7x-usb2-phy2 compatible string for USB2 PHY2

2015-08-04 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/dra7.dtsi |2 +- 1

[PATCH 05/10] ARM: dts: dra7: Use syscon-phy-power instead of ctrl-module in USB PHY node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-phy-power property and remove the deprecated ctrl-module property from USB PHY devicetree nodes. Since omap_control_usb2phy1, omap_control_usb3phy1 and omap_control_usb2phy2 devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch

[PATCH 03/10] ARM: dts: dra7: Use syscon-phy-power and syscon-pcs in PCIe PHY node

2015-08-04 Thread Kishon Vijay Abraham I
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.dtsi | 28 +++- 1 file changed, 7 insertions(+), 21

[PATCH 01/10] ARM: dts: dra7: Add dt node for PCIe registers in sysctrl space

2015-08-04 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/dts/dra7

[PATCH 02/10] ARM: dts: dra7: Use syscon-phy-power instead of ctrl-module in SATA PHY node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-phy-power property and remove the deprecated ctrl-module property from SATA PHY node. Since omap_control_sata note is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch/arm/boot/dts/dra7.dtsi | 10 +- 1 file changed, 1 insertion(+), 9

[PATCH 06/10] ARM: dts: am4372: Use syscon-phy-power instead of ctrl-module in USB PHY node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-phy-power property and remove the deprecated ctrl-module property from USB PHY device tree node. Since am43xx_control_usb2phy1 and am43xx_control_usb2phy2 devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch/arm/boot/dts/am4372

[PATCH 09/10] ARM: dts: omap4: Use syscon-phy-power instead of ctrl-module in USB PHY node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-phy-power property and remove the deprecated ctrl-module property from USB PHY dt node. Since omap_control_usb2phy devicetree node is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch/arm/boot/dts/omap4.dtsi |8 +--- 1 file changed, 1

[PATCH 10/10] ARM: dts: omap4: Use syscon-otghs instead of ctrl-module in USB node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-otghs property and remove the deprecated ctrl-module property from MUSB devicetree node. Since omap_control_usbotg devicetree node is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch/arm/boot/dts/omap4.dtsi |8 +--- 1 file changed, 1

[PATCH 07/10] ARM: dts: OMAP5: Use syscon-phy-power instead of ctrl-module in USB PHY node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-phy-power property and remove the deprecated ctrl-module property from USB PHY devicetree node. Since omap_control_usb2phy and omap_control_usb3phy devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch/arm/boot/dts/omap5.dtsi

[PATCH 08/10] ARM: dts: OMAP5: Use syscon-phy-power instead of ctrl-module in SATA PHY node

2015-08-04 Thread Kishon Vijay Abraham I
Add syscon-phy-power property and remove the deprecated ctrl-module property from SATA PHY node. Since omap_control_sata devicetree node is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- arch/arm/boot/dts/omap5.dtsi | 10 +- 1 file changed, 1

[PATCH 00/10] ARM: dts: use syscon property instead of ctrl-module

2015-08-04 Thread Kishon Vijay Abraham I
://www.spinics.net/lists/linux-omap/msg120644.html [3] - http://permalink.gmane.org/gmane.linux.kernel/2012427 [4] - http://permalink.gmane.org/gmane.linux.kernel/2012604 Kishon Vijay Abraham I (10): ARM: dts: dra7: Add dt node for PCIe registers in sysctrl space ARM: dts: dra7: Use syscon-phy

Re: [PATCH v3 2/3] ARM: dts: dra7: Add syscon-pllreset syscon to SATA PHY

2015-08-04 Thread Kishon Vijay Abraham I
On Tuesday 04 August 2015 02:11 PM, Tony Lindgren wrote: * Roger Quadros rog...@ti.com [150804 01:22]: Tony, On 17/07/15 16:47, Roger Quadros wrote: This register is required to be passed to the SATA PHY driver to workaround errata i783 (SATA Lockup After SATA DPLL Unlock/Relock).

Re: [PATCH v2 3/3] ARM: dts: dra7: Add scm_conf@1c04 node

2015-08-03 Thread Kishon Vijay Abraham I
Hi Roger, On Monday 27 July 2015 03:57 PM, Roger Quadros wrote: This region contains CTRL_CORE_SMA_SW2..9 registers which are not specific to any domain and can be reasonably accessed via syscon driver. Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/boot/dts/dra7.dtsi | 7

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

2015-08-03 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 --- drivers/mmc/host/omap_hsmmc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH v2 08/16] mmc: host: omap_hsmmc: add separate functions for enable/disable supply

2015-08-03 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions for enable/disable supply and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 101 +++-- 1 file

[PATCH v2 00/16] omap_hsmmc: regulator usage cleanup and fixes

2015-08-03 Thread Kishon Vijay Abraham I
/7/27/391 This series is in preparation for implementing the voltage switch sequence so that UHS cards can be supported. Did basic read/write test in J6, J6 Eco, Beagle-x15, AM437x EVM, Beaglebone black, OMAP5 uEVM and OMAP4 PANDA. Kishon Vijay Abraham I (15): mmc: host: omap_hsmmc: use

[PATCH v2 12/16] mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on previous state

2015-08-03 Thread Kishon Vijay Abraham I
enable vmmc_aux regulator only if it is in disabled state and disable vmmc_aux regulator only if it is in enabled state. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2 16/16] mmc: host: omap_hsmmc: use mmc_of_parse_voltage to get ocr_avail

2015-08-03 Thread Kishon Vijay Abraham I
-by: Murali Karicheri m-kariche...@ti.com Signed-off-by: Franklin S Cooper Jr fcoo...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt |2 ++ drivers/mmc/host/omap_hsmmc.c |9 - 2 files changed, 10

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

2015-08-03 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 --- drivers/mmc/host/omap_hsmmc.c | 66 ++--- 1 file changed, 56 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c

[PATCH v2 09/16] mmc: host: omap_hsmmc: add separate function to set pbias

2015-08-03 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions to set pbias and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 78 + 1 file changed, 48

[PATCH v2 13/16] mmc: host: omap_hsmmc: use regulator_is_enabled to find pbias status

2015-08-03 Thread Kishon Vijay Abraham I
Use regulator_is_enabled of pbias regulator to find pbias regulator status instead of maintaining a custom bookkeeping pbias_enabled variable. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions

[PATCH v2 01/16] mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc

2015-08-03 Thread Kishon Vijay Abraham I
-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 4d12032..b4b1bde 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers

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

2015-08-03 Thread Kishon Vijay Abraham I
. Thanks Kishon /Andi 2015-07-29 13:09 GMT+02:00 Kishon Vijay Abraham I kis...@ti.com: This patch series does the following *) Uses devm_regulator_get_optional() for vmmc and then removes the CONFIG_REGULATOR check altogether. *) return on -EPROBE_DEFER *) enable/disable vmmc_aux

[PATCH v2 05/16] mmc: host: omap_hsmmc: use mmc_host's vmmc and vqmmc

2015-08-03 Thread Kishon Vijay Abraham I
No functional change. Instead of using omap_hsmmc_host's vcc and vcc_aux members, use vmmc and vqmmc present in mmc_host which is present for the same purpose. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Reviewed-by: Roger Quadros rog...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 63

[PATCH v2 14/16] mmc: host: omap_hsmmc: use ios-vdd for setting vmmc voltage

2015-08-03 Thread Kishon Vijay Abraham I
vdd voltage is set in mmc core to ios-vdd and vmmc should actually be set to this voltage. Modify omap_hsmmc_enable_supply to not take vdd as argument since now it's directly set to the voltage in ios-vdd. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c

[PATCH v2 15/16] mmc: host: omap_hsmmc: remove CONFIG_REGULATOR check

2015-08-03 Thread Kishon Vijay Abraham I
Now that support for platforms which have optional regulator is added, remove CONFIG_REGULATOR check in omap_hsmmc. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 35 +++ 1 file changed, 3 insertions(+), 32 deletions

[PATCH v2 07/16] mmc: host: omap_hsmmc: return error if any of the regulator APIs fail

2015-08-03 Thread Kishon Vijay Abraham I
Return error if any of the regulator APIs (regulator_enable, regulator_disable, regulator_set_voltage) fails in omap_hsmmc_set_power to avoid undefined behavior. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 52

[PATCH v2 03/16] mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get()

2015-08-03 Thread Kishon Vijay Abraham I
-by: Kishon Vijay Abraham I kis...@ti.com Reviewed-by: Roger Quadros rog...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 38 -- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index

[PATCH v2 02/16] mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get

2015-08-03 Thread Kishon Vijay Abraham I
Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 22

[PATCH v2 04/16] mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulator

2015-08-03 Thread Kishon Vijay Abraham I
-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 9d062a1..8cf040f 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers

[PATCH v2 06/16] mmc: host: omap_hsmmc: remove unnecessary pbias set_voltage

2015-08-03 Thread Kishon Vijay Abraham I
Remove the unnecessary pbias regulator_set_voltage done after pbias regulator_disable in omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Reviewed-by: Roger Quadros rog...@ti.com --- drivers/mmc/host/omap_hsmmc.c |1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v5 3/3] PCI: host: pci-dra7xx: Idle the module by disabling MSE bit

2015-07-31 Thread Kishon Vijay Abraham I
bit on suspend and enabled it back on resume. Clearing MSE bit is required to get clocks to be idled after suspend. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Signed-off-by: Sekhar Nori nsek...@ti.com --- drivers/pci/host/pci-dra7xx.c | 40 1 file

[PATCH v5 1/3] PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure

2015-07-31 Thread Kishon Vijay Abraham I
Fix the error handling code in case pm_runtime_get_sync fails. Now when pm_runtime_get_sync fails pm_runtime_disable is invoked so that there is no unbalanced pm_runtime_enable calls. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/pci/host/pci-dra7xx.c |4 +++- 1 file

[PATCH v5 2/3] PCI: host: pci-dra7xx: add pm support to pci dra7xx

2015-07-31 Thread Kishon Vijay Abraham I
Add PM support to pci-dra7xx so that PCI clocks can be disabled during suspend and enabled back during resume without affecting PCI functionality. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/pci/host/pci-dra7xx.c | 51 + 1 file

[PATCH v5 0/3] dra7xx: Add PM support to PCIe

2015-07-31 Thread Kishon Vijay Abraham I
to test that, I'll post a separate patch for handling that. Kishon Vijay Abraham I (3): PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure PCI: host: pci-dra7xx: add pm support to pci dra7xx PCI: host: pci-dra7xx: Idle the module by disabling MSE bit drivers/pci/host/pci-dra7xx.c

Re: [PATCH 01/17] mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc

2015-07-31 Thread Kishon Vijay Abraham I
Hi Grygorii, On Wednesday 29 July 2015 05:39 PM, Grygorii Strashko wrote: On 07/29/2015 02:09 PM, Kishon Vijay Abraham I wrote: Since vmmc can be optional for some platforms, use devm_regulator_get_optional() for vmmc. Now return error only in the case of -EPROBE_DEFER and for all other cases

[PATCH 01/11] mmc: host: omap_hsmmc: Support vmmc_aux to switch to 1.8v

2015-07-30 Thread Kishon Vijay Abraham I
Add support for vmmc_aux to switch to 1.8v. Also use iov instead of vdd to indicate io voltage. This is in preparation for adding support for io signal voltage switch. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 47

[PATCH 08/11] mmc: host: omap_hsmmc: Workaround for errata id i802

2015-07-30 Thread Kishon Vijay Abraham I
of the tuning end flag. Assertion of tuning end flag is what masks the interrupts. Because of this race, an erroneous DCRC interrupt occurs. The suggested workaround is to disable DCRC interrupts during the tuning procedure which is implemented here. Signed-off-by: Kishon Vijay Abraham I kis

[PATCH 09/11] mmc: host: omap_hsmmc: Allow io voltage switch even for fixed vdd

2015-07-30 Thread Kishon Vijay Abraham I
Now that vmmc regulator is made optional, do not bail out if vmmc regulator is not found. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c |7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH 06/11] mmc: host: omap_hsmmc: set timing in the UHSMS field

2015-07-30 Thread Kishon Vijay Abraham I
Add a separate function to set the UHSMS field to one of SDR104, SDR50, DDR50, SDR25 or SDR12 depending on the inserted SD card. This is required for tuning to succeed in the case of SDR104/HS200 or SDR50. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c

[PATCH 11/11] mmc: host: omap_hsmmc: add software timer when timeout greater than hardware capablility

2015-07-30 Thread Kishon Vijay Abraham I
-by: Mugunthan V N mugunthan...@ti.com Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 71 +++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index

[PATCH 10/11] mmc: host: omap_hsmmc: remove incorrect voltage switch sequence

2015-07-30 Thread Kishon Vijay Abraham I
in start_signal_voltage_switch ops to be used by mmc core for switching voltages. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 81 - 1 file changed, 81 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host

[PATCH 0/7] ARM: dts: MMC fixes for DRA7 based boards

2015-07-30 Thread Kishon Vijay Abraham I
Miscellaneous fixes in dts files for MMC device tree nodes. Did basic read/write test in J6, J6 Eco and Beagle-x15 Balaji T K (1): ARM: dts: dra7-evm: add evm_3v3_sd regulator Kishon Vijay Abraham I (5): ARM: dts: dra72-evm: add evm_3v3_sd regulator ARM: dts: dra72-evm: Set max clock

[PATCH 07/11] mmc: host: omap_hsmmc: add tuning support

2015-07-30 Thread Kishon Vijay Abraham I
host caps field. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Viswanath Puttagunta vi...@ti.com Signed-off-by: Sourav Poddar sourav.pod...@ti.com [kis...@ti.com : cleanup the tuning sequence] Signed-off-by: Kishon Vijay Abraham I kis...@ti.com --- drivers/mmc/host/omap_hsmmc.c | 234

<    1   2   3   4   5   6   7   8   9   10   >