[PATCH v3 4/9] mmc: sdhci-st: Add st_mmcss_cconfig function to configure mmcss glue registers.

2015-03-30 Thread Peter Griffin
STiH407 family SoC's have glue registers in the flashSS subsystem which are used to configure the Arasan HC. This patch configures these glue registers according to what has been specified in the DT. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro

[PATCH v3 5/9] mmc: sdhci-st: Add sdhci_st_set_uhs_signaling function.

2015-03-30 Thread Peter Griffin
-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Acked-by: Maxime Coquelin maxime.coque...@st.com --- drivers/mmc/host/sdhci-st.c | 51 + 1 file changed, 51 insertions(+) diff --git a/drivers/mmc/host/sdhci

[PATCH v3 7/9] mmc: sdhci-st: Update ST SDHCI binding documentation.

2015-03-30 Thread Peter Griffin
are provided for both eMMC (which has additional bindings) and also sd slot for STiH407. Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- Documentation/devicetree/bindings/mmc/sdhci-st.txt | 100 ++--- 1 file changed, 90 insertions

[PATCH v3 0/9] Add sd/emmc support for stih407 family silicon

2015-03-30 Thread Peter Griffin
patches to aid review process (Ulf) regards, Peter. Peter Griffin (9): mmc: sdhci-st: Add macros for register offsets and bitfields for mmcss glue regs mmc: sdhci-st: Add support for de-asserting reset signal and top regs resource mmc: sdhci-st: Add delay management functions for top

[PATCH v3 3/9] mmc: sdhci-st: Add delay management functions for top registers (eMMC).

2015-03-30 Thread Peter Griffin
on the loopback clock on Read Path to capture read data reliably. On TX path the clock on which output data is transmitted is delayed, resulting in delay of TX data. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci

[PATCH v3 9/9] ARM: STi: DT: STiH418: Add dt nodes for sdhci and emmc.

2015-03-30 Thread Peter Griffin
Add dt nodes to enable sdhci / eMMC for stih418-b2199 board. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/boot/dts/stih418-b2199.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stih418-b2199.dts b/arch/arm/boot/dts/stih418-b2199.dts

[PATCH v3 1/9] mmc: sdhci-st: Add macros for register offsets and bitfields for mmcss glue regs

2015-03-30 Thread Peter Griffin
The stih407 family SoC's have additional glue registers in the flashSS which are used to configure the Arasan controller. This patch adds macros for the register offsets and bitfields which will be used by subsequent patches to support stih407 family SoC's. Signed-off-by: Peter Griffin

[PATCH v3 8/9] ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc.

2015-03-30 Thread Peter Griffin
The nodes have been split to allow as much commonality as possible. The stih407 has a silicon bug with eMMC UHS modes (with top regs) and as such doesn't have any of the uhs dt properties. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/boot/dts/stih407-family.dtsi | 30

Re: [PATCH v2 5/8] mmc: sdhci-st: Add sdhci_st_set_uhs_signaling function.

2015-03-30 Thread Peter Griffin
Hi Maxime, On Tue, 03 Mar 2015, Maxime Coquelin wrote: On 02/26/2015 02:10 PM, Peter Griffin wrote: To allow UHS modes to work properly we need to provide the st specific set_uhs_signaling callback function. This function differs from the generic sdhci_set_uhs_signaling callback in that we

Re: [PATCH v2 1/8] mmc: sdhci-st: Add macros for register offsets and bitfields for mmcss glue regs

2015-03-30 Thread Peter Griffin
Hi Maxime, On Tue, 03 Mar 2015, Maxime Coquelin wrote: + +#define ST_MMC_CCONFIG_REG_10x400 Maybe my mail client, but I see a tab instead of a space after #define. Yes your correct, have fixed all occurances in v3 regards, Peter. -- To unsubscribe from this list: send the

Re: [PATCH v2 8/8] ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc.

2015-03-30 Thread Peter Griffin
Hi Maxime, On Tue, 03 Mar 2015, Maxime Coquelin wrote: On 02/26/2015 02:10 PM, Peter Griffin wrote: The nodes have been split to allow as much commonality as possible. The stih407 has a silicon bug with eMMC UHS modes (with top regs) and as such doesn't have any of the uhs dt properties

Re: [PATCH v2 3/8] mmc: sdhci-st: Add delay management functions for top registers (eMMC).

2015-03-30 Thread Peter Griffin
Hi Maxime, On Tue, 03 Mar 2015, Maxime Coquelin wrote: On 02/26/2015 02:10 PM, Peter Griffin wrote: Due to the tight timing constriants in some UHS modes, it is required to have s/constriant/constraints/ Will fix. snip + +static inline void st_mmcss_set_static_delay(void __iomem *ioaddr

[PATCH v3 6/9] mmc: sdhci-st: Update the quirks for this controller.

2015-03-30 Thread Peter Griffin
/mmcblk0p1 /dev/mmcblk0p1: Timing buffered disk reads: 118 MB in 3.00 seconds = 39.28 MB/sec This is better than the 3.10 kernel which achieves 77.59 MB/sec at 200Mhz clock (same board/soc/eMMC). Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall

[PATCH v2 4/8] mmc: sdhci-st: Add st_mmcss_cconfig function to configure mmcss glue registers.

2015-02-26 Thread Peter Griffin
STiH407 family SoC's have glue registers in the flashSS subsystem which are used to configure the Arasan HC. This patch configures these glue registers according to what has been specified in the DT. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro

[PATCH v2 8/8] ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc.

2015-02-26 Thread Peter Griffin
The nodes have been split to allow as much commonality as possible. The stih407 has a silicon bug with eMMC UHS modes (with top regs) and as such doesn't have any of the uhs dt properties. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/boot/dts/stih407-family.dtsi | 30

[PATCH v2 0/8] Add sd/emmc support for stih407 family silicon

2015-02-26 Thread Peter Griffin
to be using some of the uhs bindings such as sd-uhs-sdr104. Changes since v1: - Partition the changes into smaller patches to aid review process (Ulf) regards, Peter. Peter Griffin (8): mmc: sdhci-st: Add macros for register offsets and bitfields for mmcss glue regs mmc: sdhci-st: Add support

[PATCH v2 6/8] mmc: sdhci-st: Update the quirks for this controller.

2015-02-26 Thread Peter Griffin
/mmcblk0p1 /dev/mmcblk0p1: Timing buffered disk reads: 118 MB in 3.00 seconds = 39.28 MB/sec This is better than the 3.10 kernel which achieves 77.59 MB/sec at 200Mhz clock (same board/soc/eMMC). Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall

[PATCH v2 5/8] mmc: sdhci-st: Add sdhci_st_set_uhs_signaling function.

2015-02-26 Thread Peter Griffin
-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci-st.c | 50 + 1 file changed, 50 insertions(+) diff --git a/drivers/mmc/host/sdhci-st.c b/drivers/mmc/host/sdhci-st.c index 11cf4e2

[PATCH v2 3/8] mmc: sdhci-st: Add delay management functions for top registers (eMMC).

2015-02-26 Thread Peter Griffin
on the loopback clock on Read Path to capture read data reliably. On TX path the clock on which output data is transmitted is delayed, resulting in delay of TX data. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci

[PATCH v2 2/8] mmc: sdhci-st: Add support for de-asserting reset signal and top regs resource

2015-02-26 Thread Peter Griffin
, which will be used by subsequent patches. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci-st.c | 52 ++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git

[PATCH v2 1/8] mmc: sdhci-st: Add macros for register offsets and bitfields for mmcss glue regs

2015-02-26 Thread Peter Griffin
The stih407 family SoC's have additional glue registers in the flashSS which are used to configure the Arasan controller. This patch adds macros for the register offsets and bitfields which will be used by subsequent patches to support stih407 family SoC's. Signed-off-by: Peter Griffin

[PATCH v2 7/8] mmc: sdhci-st: Update ST SDHCI binding documentation.

2015-02-26 Thread Peter Griffin
are provided for both eMMC (which has additional bindings) and also sd slot for stih407. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- Documentation/devicetree/bindings/mmc/sdhci-st.txt | 100 ++--- 1 file changed, 90 insertions(+), 10 deletions(-) diff --git a/Documentation

[PATCH 2/4] sdhci-st: Add support for stih407 family silicon.

2015-01-20 Thread Peter Griffin
kernel which achieves 77.59 MB/sec at 200Mhz clock (same board/soc/eMMC). Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host/sdhci-st.c | 351 +++- 1 file changed, 343 insertions

[PATCH 0/4] Add sd/emmc support for stih407 family silicon

2015-01-20 Thread Peter Griffin
platform to be using some of the uhs bindings such as sd-uhs-sdr104. regards, Peter. Peter Griffin (4): clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate sdhci-st: Add support for stih407 family silicon. mmc: sdhci-st: Update ST SDHCI binding documentation. ARM: STi: DT

[PATCH 1/4] clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate

2015-01-20 Thread Peter Griffin
which matches the original comment and patch description more closely. Although no clocks appear to hit this case currently when booting an upstream kernel. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/clk/st/clk-flexgen.c

[PATCH 4/4] ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc.

2015-01-20 Thread Peter Griffin
The nodes have been split to allow as much commonality as possible. The stih407 has a silicon bug with eMMC UHS modes (with top regs) and as such doesn't have any of the uhs dt properties. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/boot/dts/stih407-family.dtsi | 30

[PATCH 3/4] mmc: sdhci-st: Update ST SDHCI binding documentation.

2015-01-20 Thread Peter Griffin
are provided for both eMMC (which has additional bindings) and also sd slot for stih407. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- Documentation/devicetree/bindings/mmc/sdhci-st.txt | 100 ++--- 1 file changed, 90 insertions(+), 10 deletions(-) diff --git a/Documentation

Re: [PATCH 1/5] mmc: remove .owner field for drivers using module_platform_driver

2014-08-21 Thread Peter Griffin
Hi Michal, On Mon, 18 Aug 2014, Michal Simek wrote: I have checked this for all xilinx drivers we have in the tree and I have sent similar patches. This problem is probably in all subsystems. Yep With communication with Mark Brown. Don't you have cocinelle script for fixing this

[PATCH] mmc: sdhci-pxav3: set_uhs_signaling is initialized twice differently

2014-08-15 Thread Peter Griffin
it can't use the generic callback. This happened in commit 96d7b78cfc2f (mmc: sdhci: convert sdhci_set_uhs_signaling() into a library function) commit a702c8abb2a9 (mmc: host: split up sdhci-pxa, create sdhci-pxav3.c)' Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/sdhci

Re: [PATCH] mmc: sdhci-pxav3: set_uhs_signaling is initialized twice differently

2014-08-15 Thread Peter Griffin
Hi Russell, This happened in commit 96d7b78cfc2f (mmc: sdhci: convert sdhci_set_uhs_signaling() into a library function) commit a702c8abb2a9 (mmc: host: split up sdhci-pxa, create sdhci-pxav3.c)' This is exactly why named initialisers should always follow the declaration order in the

[PATCH v2] mmc: sdhci-pxav3: set_uhs_signaling is initialized twice differently

2014-08-15 Thread Peter Griffin
initialisers always follow the declaration order in the structure definition. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/sdhci-pxav3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 6f842fb..3f350ea

[PATCH v3] mmc: sdhci-pxav3: set_uhs_signaling is initialized twice differently

2014-08-15 Thread Peter Griffin
initialisers always follow the declaration order in the structure definition. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/sdhci-pxav3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c

Re: [PATCH v2] mmc: sdhci-pxav3: set_uhs_signaling is initialized twice differently

2014-08-15 Thread Peter Griffin
Hi, This means that uhs is currently broken for this platform currently, as pxav3 has some special constriants which means it can't use the generic callback. This happened in commit 96d7b78cfc2f (mmc: sdhci: convert sdhci_set_uhs_signaling() into a library function) commit a702c8abb2a9

[PATCH 0/5] MMC cleanup of dev_pm_ops and .owner

2014-08-12 Thread Peter Griffin
This series cleans up a few platform drivers in how they are declaring there dev_pm_ops structs, and gets rid of a few now redundant #else conditions. Also it removes the .owner field of drivers which use module_platform_driver api to register themselves, as this field gets overwritten. Peter

[PATCH 5/5] mmc: sdhci-acpi.c: Use SET_RUNTIME_PM_OPS macro to set runtime pm callbacks

2014-08-12 Thread Peter Griffin
This allows us to get rid of the #else condition, as the macro compiles away to nothing if not enabled. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/sdhci-acpi.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/sdhci

[PATCH 3/5] mmc: dw_mmc-pltfm: Remove superflous #else condition on CONFIG_PM_SLEEP

2014-08-12 Thread Peter Griffin
As the code is using SIMPLE_DEV_PM_OPS helper, this compiles away to nothing if CONFIG_PM_SLEEP is disabled. Thus we don't need to #define the suspend/resume callbacks to NULL. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/dw_mmc-pltfm.c | 3 --- 1 file changed, 3

[PATCH 2/5] mmc: dw_mmc-pci: Remove superflous #else condition on CONFIG_PM_SLEEP

2014-08-12 Thread Peter Griffin
As the code is using SIMPLE_DEV_PM_OPS helper, this compiles away to nothing if CONFIG_PM_SLEEP is disabled. Thus we don't need to #define the suspend/resume callbacks to NULL. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/dw_mmc-pci.c | 3 --- 1 file changed, 3

[PATCH 4/5] mmc: sdhci-pci: Use SET_RUNTIME_PM_OPS macro to set runtime pm callbacks

2014-08-12 Thread Peter Griffin
This allows us to get rid of the #else condition, as the macro compiles away to nothing if not enabled. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/sdhci-pci.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/sdhci

[PATCH 1/5] mmc: remove .owner field for drivers using module_platform_driver

2014-08-12 Thread Peter Griffin
This patch removes the superflous .owner field for drivers which use the module_platform_driver API, as this is overriden in platform_driver_register anyway. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- drivers/mmc/host/jz4740_mmc.c | 1 - drivers/mmc/host/moxart-mmc.c | 1

Re: [PATCH v2 08/10] ARM: STi: DT: Enable second sdhci controller for stih416 b2020 boards.

2014-07-09 Thread Peter Griffin
Hi Ulf, Many thanks for looking at this. + + mmc1: sdhci@fe81f000 { + status = okay; + bus-width= 8; + non-removable; + }; }; Hi Peter, I was trying to apply this

Re: [PATCH v3 01/10] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-07-09 Thread Peter Griffin
Hi Ulf, On Wed, 09 Jul 2014, Ulf Hansson wrote: On 4 June 2014 18:30, Peter Griffin peter.grif...@linaro.org wrote: This platform driver adds initial support for the SDHCI host controller found on STMicroelectronics SoCs. It has been tested on STiH41x b2020 platforms currently

[PATCH v4 00/10] Add SDHCI support for ST Microelectronics SoCs

2014-07-09 Thread Peter Griffin
function for set_clock Peter Griffin (10): mmc: sdhci-st: Intial support for ST SDHCI controller mmc: sdhci-st: ST Microelectronics SDHCI binding documentation. ARM: STi: DT: Add sdhci pins for stih416 ARM: STi: DT: Add sdhci controller for stih416 ARM: STi: DT: Add sdhci pin configuration

[PATCH v4 07/10] ARM: STi: DT: Enable mmc0 for both stih415 and stih416 SoCs

2014-07-09 Thread Peter Griffin
Because the first sdhci controller is present on both stih415 and stih416 SoC which can both populate the b2020 board, it can be enabled in the generic DT file. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones

[PATCH v4 09/10] ARM: update multi_v7_defconfig for STI

2014-07-09 Thread Peter Griffin
This patch enables SDHCI STI platform driver. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 5348364..8c12c4e 100644

[PATCH v4 05/10] ARM: STi: DT: Add sdhci pin configuration for stih415

2014-07-09 Thread Peter Griffin
This patch adds the required pin config for the sdhci controller present in the stih415 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com

[PATCH v4 08/10] ARM: STi: DT: Enable second sdhci controller for stih416 b2020 boards.

2014-07-09 Thread Peter Griffin
The second controller is only present on the stih416 SoC. Also mark this as non-removeable as its eMMC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque

[PATCH v4 06/10] ARM: STi: DT: Add sdhci controller for stih415

2014-07-09 Thread Peter Griffin
This patch adds device tree config for the sdhci controller on the stih415 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v4 04/10] ARM: STi: DT: Add sdhci controller for stih416

2014-07-09 Thread Peter Griffin
This patch adds device tree config for both sdhci controllers on the stih416 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v4 03/10] ARM: STi: DT: Add sdhci pins for stih416

2014-07-09 Thread Peter Griffin
This adds the required pin config for both SDHCI controllers on the stih416 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v4 02/10] mmc: sdhci-st: ST Microelectronics SDHCI binding documentation.

2014-07-09 Thread Peter Griffin
This patch adds the device tree binding documentation for the ST SDHCI driver. It documents the differences between the core properties described by mmc.txt and the properties used by the sdhci-st driver. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin

[PATCH v4 01/10] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-07-09 Thread Peter Griffin
This platform driver adds initial support for the SDHCI host controller found on STMicroelectronics SoCs. It has been tested on STiH41x b2020 platforms currently. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones

Re: [PATCH 1/8] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-06-04 Thread Peter Griffin
Hi Srini, Thanks for reviewing, see my comments below: - On Fri, 23 May 2014, Srinivas Kandagatla wrote: +struct st_mmc_platform_data { +struct reset_control *rstc; +}; st_mmc_platform_data name is bit missleading as this data is not part of platform data. Probably you could

Re: [PATCH 1/8] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-06-04 Thread Peter Griffin
Hi Maxime, Thanks fo reviewing, see my comments below: - +struct st_mmc_platform_data { +struct reset_control *rstc; +}; Since it uses the generic reset framework, could we imagine moving the reset to the sdhci_pltfm_host struct? Doing this, we could get rid of st_mmc_platform_data.

[PATCH v2 05/10] ARM: STi: DT: Add sdhci pin configuration for stih415

2014-06-04 Thread Peter Griffin
This patch adds the required pin config for the sdhci controller present in the stih415 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com

[PATCH v2 07/10] ARM: STi: DT: Enable mmc0 for both stih415 and stih416 SoCs

2014-06-04 Thread Peter Griffin
Because the first sdhci controller is present on both stih415 and stih416 SoC which can both populate the b2020 board, it can be enabled in the generic DT file. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones

[PATCH v2 00/10] Add SDHCI support for STMicroelectronics SoCs

2014-06-04 Thread Peter Griffin
- Remove / change some debug messages - Remove final break from switch case Peter Griffin (10): mmc: sdhci-st: Intial support for ST SDHCI controller mmc: sdhci-st: ST Microelectronics SDHCI binding documentation. ARM: STi: DT: Add sdhci pins for stih416 ARM: STi: DT: Add sdhci controller

[PATCH v2 03/10] ARM: STi: DT: Add sdhci pins for stih416

2014-06-04 Thread Peter Griffin
This adds the required pin config for both SDHCI controllers on the stih416 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v2 02/10] mmc: sdhci-st: ST Microelectronics SDHCI binding documentation.

2014-06-04 Thread Peter Griffin
This patch adds the device tree binding documentation for the ST SDHCI driver. It documents the differences between the core properties described by mmc.txt and the properties used by the sdhci-st driver. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin

[PATCH v2 06/10] ARM: STi: DT: Add sdhci controller for stih415

2014-06-04 Thread Peter Griffin
This patch adds device tree config for the sdhci controller on the stih415 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v2 09/10] ARM: update multi_v7_defconfig for STI

2014-06-04 Thread Peter Griffin
This patch enables SDHCI STI platform driver. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index d4e8a47..48951fc 100644

[PATCH v2 08/10] ARM: STi: DT: Enable second sdhci controller for stih416 b2020 boards.

2014-06-04 Thread Peter Griffin
The second controller is only present on the stih416 SoC. Also mark this as non-removeable as its eMMC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque

[PATCH v2 04/10] ARM: STi: DT: Add sdhci controller for stih416

2014-06-04 Thread Peter Griffin
This patch adds device tree config for both sdhci controllers on the stih416 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v2 10/10] MAINTAINERS: Add sdhci-st file to ARCH/STI architecture

2014-06-04 Thread Peter Griffin
Signed-off-by: Peter Griffin peter.grif...@linaro.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6dc67b1..19dc265 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1306,6 +1306,7 @@ F:drivers/pinctrl/pinctrl-st.c F: drivers/media

[PATCH v2 01/10] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-06-04 Thread Peter Griffin
This platform driver adds initial support for the SDHCI host controller found on STMicroelectronics SoCs. It has been tested on STiH41x b2020 platforms currently. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones

[PATCH v3 00/10] Add SDHCI support for ST Microelectronics SoCs

2014-06-04 Thread Peter Griffin
- Remove / change some debug messages - Remove final break from switch case Changes since v2 - Update CC list with alkml and lkml lists Peter Griffin (10): mmc: sdhci-st: Intial support for ST SDHCI controller mmc: sdhci-st: ST Microelectronics SDHCI binding documentation. ARM: STi: DT: Add sdhci

[PATCH v3 06/10] ARM: STi: DT: Add sdhci controller for stih415

2014-06-04 Thread Peter Griffin
This patch adds device tree config for the sdhci controller on the stih415 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v3 07/10] ARM: STi: DT: Enable mmc0 for both stih415 and stih416 SoCs

2014-06-04 Thread Peter Griffin
Because the first sdhci controller is present on both stih415 and stih416 SoC which can both populate the b2020 board, it can be enabled in the generic DT file. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones

[PATCH v3 09/10] ARM: update multi_v7_defconfig for STI

2014-06-04 Thread Peter Griffin
This patch enables SDHCI STI platform driver. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index d4e8a47..48951fc 100644

[PATCH v3 08/10] ARM: STi: DT: Enable second sdhci controller for stih416 b2020 boards.

2014-06-04 Thread Peter Griffin
The second controller is only present on the stih416 SoC. Also mark this as non-removeable as its eMMC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque

[PATCH v3 10/10] MAINTAINERS: Add sdhci-st file to ARCH/STI architecture

2014-06-04 Thread Peter Griffin
Signed-off-by: Peter Griffin peter.grif...@linaro.org --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6dc67b1..19dc265 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1306,6 +1306,7 @@ F:drivers/pinctrl/pinctrl-st.c F: drivers/media

[PATCH v3 05/10] ARM: STi: DT: Add sdhci pin configuration for stih415

2014-06-04 Thread Peter Griffin
This patch adds the required pin config for the sdhci controller present in the stih415 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com

[PATCH v3 02/10] mmc: sdhci-st: ST Microelectronics SDHCI binding documentation.

2014-06-04 Thread Peter Griffin
This patch adds the device tree binding documentation for the ST SDHCI driver. It documents the differences between the core properties described by mmc.txt and the properties used by the sdhci-st driver. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin

[PATCH v3 01/10] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-06-04 Thread Peter Griffin
This platform driver adds initial support for the SDHCI host controller found on STMicroelectronics SoCs. It has been tested on STiH41x b2020 platforms currently. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones

[PATCH v3 04/10] ARM: STi: DT: Add sdhci controller for stih416

2014-06-04 Thread Peter Griffin
This patch adds device tree config for both sdhci controllers on the stih416 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

[PATCH v3 03/10] ARM: STi: DT: Add sdhci pins for stih416

2014-06-04 Thread Peter Griffin
This adds the required pin config for both SDHCI controllers on the stih416 SoC. Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com Signed-off-by: Peter Griffin peter.grif...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Acked-by: Maxime Coquelin maxime.coque...@st.com --- arch/arm

Re: Add SDHCI support for STMicroelectronics SoCs

2014-06-02 Thread Peter Griffin
Hi Maxime, On Thu, 22 May 2014, Maxime Coquelin wrote: Initially it supports the stih416 and stih415 SoCs, and has been tested on a stih416-b2020 board. In next version, could you also add drivers/mmc/host/sdhci-st.c in the ARM/STI ARCHITECTURE field of MAINTAINERS file? Was out on hols

Re: [PATCH 1/8] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-06-02 Thread Peter Griffin
Hi Lee, Thanks for your feedback, all your other comments will be fixed in v2. However see comments below for this patch + clk_prepare_enable(clk); Move this down as far as it will go. When do you _need_ the clock running by? + host-mmc-caps |= MMC_CAP_8_BIT_DATA |

Add SDHCI support for STMicroelectronics SoCs

2014-05-22 Thread Peter Griffin
This series adds a SDHCI platform driver for ST SoCs, along with the additional device tree bindings and configuration to enable the controller to work properly. Initially it supports the stih416 and stih415 SoCs, and has been tested on a stih416-b2020 board. regards, Peter. -- To unsubscribe

[PATCH 4/8] ARM: STi: DT: Add sdhci controller for stih416

2014-05-22 Thread Peter Griffin
This patch adds device tree config for both sdhci controllers on the stih416 SoC. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- arch/arm/boot/dts/stih416.dtsi | 24 1 file changed, 24 insertions

[PATCH 5/8] ARM: STi: DT: Add sdhci pin configuration for stih415

2014-05-22 Thread Peter Griffin
This patch adds the required pin config for the sdhci controller present in the stih415 SoC. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- arch/arm/boot/dts/stih415-pinctrl.dtsi | 21 + arch/arm/boot/dts

[PATCH 2/8] mmc: sdhci-st: STMicroelectronics SDHCI binding documentation.

2014-05-22 Thread Peter Griffin
This patch adds the device tree binding documentation for ST SDHCI driver. It contains the differences between the core properties in mmc.txt and the properties used by the sdhci-st driver. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall

[PATCH 7/8] ARM: STi: DT: Enable second sdhci controller for stih416 b2020 boards.

2014-05-22 Thread Peter Griffin
The second controller is only present on the stih416 SoC. Also mark this as non-removeable as its eMMC. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- arch/arm/boot/dts/stih416-b2020.dts | 8 1 file changed, 8

[PATCH 8/8] ARM: update multi_v7_defconfig for STI

2014-05-22 Thread Peter Griffin
This patch enables SDHCI STI platform driver. Signed-off-by: Peter Griffin peter.grif...@linaro.org --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index d4e8a47..48951fc 100644

[PATCH 6/8] ARM: STi: DT: Enable mmc0 for both stih415 and stih416 SoCs

2014-05-22 Thread Peter Griffin
Because the first sdhci controller is present on both stih415 and stih416 SoC which can both populate the b2020 board, it can be enabled in the generic DT file. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- arch/arm/boot/dts

[PATCH 3/8] ARM: STi: DT: Add sdhci pins for stih416

2014-05-22 Thread Peter Griffin
This adds the required pin config for both SDHCI controllers on the stih416 SoC. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 39 ++ 1 file changed, 39

[PATCH 1/8] mmc: sdhci-st: Intial support for ST SDHCI controller

2014-05-22 Thread Peter Griffin
This platform driver adds initial support for the SDHCI host controller found on STMicroelectronics SoCs. It has been tested on STiH41x b2020 platforms currently. Signed-off-by: Peter Griffin peter.grif...@linaro.org Signed-off-by: Giuseppe Cavallaro peppe.cavall...@st.com --- drivers/mmc/host