RE: [PATCH] sdhci: Add quirk and device tree parameter to force SD test mode

2016-08-22 Thread Haibo Chen
> -Original Message- > From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- > ow...@vger.kernel.org] On Behalf Of Zach Brown > Sent: Tuesday, August 23, 2016 6:56 AM > To: adrian.hun...@intel.com > Cc: ulf.hans...@linaro.org; mark.rutl...@arm.com; robh...@kernel.org; > linux-...@vger.ke

RE: [PATCH 2/2] regulator: core: Ensure we are at least in bounds for our constraints

2016-03-30 Thread Haibo Chen
regulator-max-microvolt = <330>; 35 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; 36 enable-active-high; 37 }; 38 }; Best Regards Haibo Chen > -Original Message- > From: linux-mmc-ow...@

[PATCH] mmc: sdhci: disable irq in sdhci host suspend ranther than free this irq

2016-01-28 Thread Haibo Chen
ed to the sdhci driver. Fixes: 781e989cf593 ("mmc: sdhci: convert to new SDIO IRQ handling") Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c ind

RE: [RFC PATCH 10/21] mmc: sdhci: remove SDHCI_QUIRK_BROKEN_CARD_DETECTION

2016-01-26 Thread Haibo Chen
(gpio_cd)) > return !!gpio_cd; > > - /* If polling, assume that the card is always present. */ > - if (host->quirks & SDHCI_QUIRK_BROKEN_CARD_DETECTION) > - return 1; Why simply remove these code rather than use this: If(host-&

RE: [RFC PATCH 14/21] mmc: sdhci-esdhc-imx: remove SDHCI_QUIRK_BROKEN_CARD_DETECTION

2016-01-26 Thread Haibo Chen
.kernel.org; linux- > ker...@vger.kernel.org; Shawn Lin ; Dong > Aisheng ; Haibo Chen > > Subject: [RFC PATCH 14/21] mmc: sdhci-esdhc-imx: remove > SDHCI_QUIRK_BROKEN_CARD_DETECTION > > sdhci_esdhc_imx_pdata need SDHCI_QUIRK_BROKEN_CARD_DETECTION, > so we replace it with MMC_CAP

[PATCH v5 2/4] Documentation: add the binding file for Freescale imx7d ADC driver

2015-12-08 Thread Haibo Chen
The patch adds the binding file for Freescale imx7d ADC driver. Signed-off-by: Haibo Chen Acked-by: Rob Herring --- .../devicetree/bindings/iio/adc/imx7d-adc.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc

[PATCH v5 3/4] ARM: dts: imx7d.dtsi: add ADC support

2015-12-08 Thread Haibo Chen
Add imx7d ADC support. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index ebc053a..aa0624d 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm

[PATCH v5 4/4] ARM: dts: imx7d-sdb: add ADC support

2015-12-08 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 --- a/arch/arm/boot/dts/imx7d

[PATCH v5 0/4] Add i.mx7d adc driver support

2015-12-08 Thread Haibo Chen
use static const array to replace the switch case code Haibo Chen (4): iio: adc: add IMX7D ADC driver support Documentation: add the binding file for Freescale imx7d ADC driver ARM: dts: imx7d.dtsi: add ADC support ARM: dts: imx7d-sdb: add ADC support .../devicetree/bindings/iio/adc/imx

[PATCH v5 1/4] iio: adc: add IMX7D ADC driver support

2015-12-08 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c | 589

[PATCH v4 4/4] ARM: dts: imx7d-sdb: add ADC support

2015-12-01 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 --- a/arch/arm/boot/dts/imx7d

[PATCH v4 3/4] ARM: dts: imx7d.dtsi: add ADC support

2015-12-01 Thread Haibo Chen
Add imx7d ADC support. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index ebc053a..aa0624d 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm

[PATCH v4 0/4] Add i.mx7d adc driver support

2015-12-01 Thread Haibo Chen
D_ for all the register -use BIT macro to define a single bit -remove the dma_en from struct adc_feature which is not support currently -use static const array to replace the switch case code Haibo Chen (4): iio: adc: add IMX7D ADC driver support Documentation: add the binding file for Frees

[PATCH v4 2/4] Documentation: add the binding file for Freescale imx7d ADC driver

2015-12-01 Thread Haibo Chen
The patch adds the binding file for Freescale imx7d ADC driver. Signed-off-by: Haibo Chen Acked-by: Rob Herring --- .../devicetree/bindings/iio/adc/imx7d-adc.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc

[PATCH v4 1/4] iio: adc: add IMX7D ADC driver support

2015-12-01 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c | 588

[PATCH v3 3/4] ARM: dts: imx7d.dtsi: add ADC support

2015-11-20 Thread Haibo Chen
Add imx7d ADC support. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index ebc053a..aa0624d 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm

[PATCH v3 0/4] Add i.mx7d adc driver support

2015-11-20 Thread Haibo Chen
BIT macro to define a single bit -remove the dma_en from struct adc_feature which is not support currently -use static const array to replace the switch case code *** BLURB HERE *** Haibo Chen (4): iio: adc: add IMX7D ADC driver support Documentation: add the binding file for Freescale imx7d

[PATCH v3 1/4] iio: adc: add IMX7D ADC driver support

2015-11-20 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c | 570

[PATCH v3 2/4] Documentation: add the binding file for Freescale imx7d ADC driver

2015-11-20 Thread Haibo Chen
The patch adds the binding file for Freescale imx7d ADC driver. Signed-off-by: Haibo Chen Acked-by: Rob Herring --- .../devicetree/bindings/iio/adc/imx7d-adc.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc

[PATCH v3 4/4] ARM: dts: imx7d-sdb: add ADC support

2015-11-20 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 --- a/arch/arm/boot/dts/imx7d

Re: [PATCH v2 1/4] iio: adc: add IMX7D ADC driver support

2015-11-13 Thread Haibo Chen
On Tue, Nov 10, 2015 at 03:58:14PM +0100, Lars-Peter Clausen wrote: > On 11/09/2015 02:28 PM, Haibo Chen wrote: > > Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC > > driver support, and the driver only support ADC software trigger. > > > >

[PATCH 1/2] mmc: sdhci-esdhc-imx: move the setting of watermark level out of probe

2015-11-10 Thread Haibo Chen
level as 0, and set the read watermark level as 128. This value is incorrect. This patch move the setting of watermark level register out of probe, so after system resume back, mmc driver can set this watermark level register back to 0x10401040. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci

[PATCH 2/2] mmc: sdhci-esdhc-imx: correct the tuning-step setting

2015-11-10 Thread Haibo Chen
Here we use '|=' to set the tuning-step, but before that, we should clear the tuning-step, otherwise we could got the wrong setting. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/

[PATCH v2 3/4] ARM: dts: imx7d.dtsi: add ADC support

2015-11-09 Thread Haibo Chen
Add imx7d ADC support. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index ebc053a..87c3319 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm

[PATCH v2 2/4] Documentation: add the binding file for Freescale imx7d ADC driver

2015-11-09 Thread Haibo Chen
The patch adds the binding file for Freescale imx7d ADC driver. Signed-off-by: Haibo Chen --- .../devicetree/bindings/iio/adc/imx7d-adc.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/imx7d-adc.txt diff --git

[PATCH v2 4/4] ARM: dts: imx7d-sdb: add ADC support

2015-11-09 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 --- a/arch/arm/boot/dts/imx7d

[PATCH v2 1/4] iio: adc: add IMX7D ADC driver support

2015-11-09 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c | 571

[PATCH v2 0/4] Add i.mx7d adc driver support

2015-11-09 Thread Haibo Chen
This patch add imx7d adc driver support. Changes in V2: -prefix defines with IMX7D_ for all the register -use BIT macro to define a single bit -remove the dma_en from struct adc_feature which is not support currently -use static const array to replace the switch case code Haibo Chen (4): iio

[PATCH 5/5] ARM: dts: imx7d-sdb: add ADC support

2015-10-08 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 --- a/arch/arm/boot/dts/imx7d

[PATCH 1/5] iio: adc: add IMX7D ADC driver support

2015-10-08 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c | 586

[PATCH 4/5] ARM: dts: imx7d.dtsi: add ADC support

2015-10-08 Thread Haibo Chen
Add imx7d ADC support. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index ebc053a..87c3319 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm

[PATCH 2/5] Documentation: add the binding file for Freescale imx7d ADC driver

2015-10-08 Thread Haibo Chen
The patch adds the binding file for Freescale imx7d ADC driver. Signed-off-by: Haibo Chen --- .../devicetree/bindings/iio/adc/imx7d-adc.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/imx7d-adc.txt diff --git

[PATCH 3/5] clk: imx7d: add ADC root clock

2015-10-08 Thread Haibo Chen
Add ADC root clock support in imx7d clock tree. Signed-off-by: Haibo Chen --- drivers/clk/imx/clk-imx7d.c | 1 + include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c

[PATCH] mmc: sdhci: call sdhci_init() before request irq

2015-09-15 Thread Haibo Chen
handling this endless irq, can't response to other event. So we should call sdhci_init() before request irq in sd resume. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/mmc/host/sdhc

[PATCH v3 0/5] Add imx6ul touch screen controller support

2015-08-28 Thread Haibo Chen
v2: -Add property in devicetree documentation. -Add tsc disable code in tsc_remove function. -Remove some redundant code. Haibo Chen (5): input: touchscreen: add imx6ul_tsc driver support Documentation: Detail permitted DT properties for the imx6ul_tsc ARM: imx_v6_v7_defconfig: enable

[PATCH v3 3/5] ARM: imx_v6_v7_defconfig: enable imx6ul_tsc

2015-08-28 Thread Haibo Chen
Enable imx6ul touchscreen controller Signed-off-by: Haibo Chen --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 79194c6..61d4e02 100644 --- a/arch/arm/configs

[PATCH v3 5/5] ARM: dts: imx6ul-14x14-evk.dts: add tsc support

2015-08-28 Thread Haibo Chen
Add touch screen surpport for i.MX6UL-EVK board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ul-14x14-evk.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts index 25746b1..f7ad467

[PATCH v3 4/5] ARM: dts: imx6ul.dtsi: add TSC support

2015-08-28 Thread Haibo Chen
Add imx6ul touchscreen controller support. TSC module need ADC2 module to measure the touchscreen coordinate value. This patch put TSC and ADC2 together, make ADC2 module only be used for TSC, can't be used as a normal ADC. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ul.dtsi

[PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support

2015-08-28 Thread Haibo Chen
Freescale i.MX6UL contains a internal touchscreen controller, this patch add a driver to support this controller. Signed-off-by: Haibo Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/imx6ul_tsc.c | 524

[PATCH v3 2/5] Documentation: Detail permitted DT properties for the imx6ul_tsc

2015-08-28 Thread Haibo Chen
Here we apply required documentation for the imx6ul touch screen controller driver which describe available properties and how to use them. Signed-off-by: Haibo Chen --- .../bindings/input/touchscreen/imx6ul_tsc.txt | 36 ++ 1 file changed, 36 insertions(+) create mode

Re: [PATCH v6 0/6] mmc: imx: a few fixes and new feature

2015-08-24 Thread Haibo Chen
On Thu, Aug 13, 2015 at 04:58:56PM +0800, Dong Aisheng wrote: > On Tue, Aug 11, 2015 at 07:38:25PM +0800, Haibo Chen wrote: > > Changes for v6: > > -remove duplicate code in esdhc_set_uhs_signaling(). > > -fix a typo for patch-2. > > -make commit log of patch-3 more sp

[PATCH] mmc: sdhci: fix dma memory leak in sdhci_pre_req()

2015-08-24 Thread Haibo Chen
eak issue. Fixes: commit 348487cb28e66b0 ("mmc: sdhci: use pipeline mmc requests to improve performance") Cc: sta...@vger.kernel.org # 4.0+ Reported-and-tested-by: Jiri Slaby Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci.c | 67 ++-

[PATCH v6 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-08-11 Thread Haibo Chen
The imx7d usdhc is derived from imx6sx, the difference is that imx7d support HS400. So introduce a new compatible string for imx7d and add HS400 support for imx7d usdhc. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 86 -- 1 file changed

[PATCH v6 3/6] mmc: sdhci-esdhc-imx: add imx7d support in bingding doc

2015-08-11 Thread Haibo Chen
Add a required property "fsl,imx7d-usdhc" in binding doc. Add an optional property "fsl,tuning-step" in binding doc. Signed-off-by: Haibo Chen --- Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation

[PATCH v6 2/6] mmc: sdhci-esdhc-imx: add tuning-step setting support

2015-08-11 Thread Haibo Chen
d the tuning-step setting in driver, so that user can set the tuning-step value in dts. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 9 + include/linux/platform_data/mmc-esdhc-imx.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/mmc/host/sdhci-

[PATCH v6 5/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1

2015-08-11 Thread Haibo Chen
value, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 298551d..ac8ec01 100644 --- a/dr

[PATCH v6 0/6] mmc: imx: a few fixes and new feature

2015-08-11 Thread Haibo Chen
Changes for v6: -remove duplicate code in esdhc_set_uhs_signaling(). -fix a typo for patch-2. -make commit log of patch-3 more specific. Haibo Chen (6): mmc: sdhci-esdhc-imx: add imx7d support and support HS400 mmc: sdhci-esdhc-imx: add tuning-step setting support mmc: sdhci-esdhc-imx: add

[PATCH v6 4/6] ARM: dts: imx7d-sdb: add eMMC5.0 support

2015-08-11 Thread Haibo Chen
imx7d-sdb board has a eMMC5.0 on usdhc3. This eMMC support HS400. This patch add usdhc3 support for HS400 Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d

[PATCH v6 6/6] mmc: sdhci-esdhc-imx: change default watermark level and burst length

2015-08-11 Thread Haibo Chen
han I/O speed. So we should improve the speed of data moving on AHB bus. This patch set the default burst length as 16, and set the default watermark level as 64. The test result is the clock signal has no stop during the eMMC HS400 operation. Signed-off-by: Haibo Chen --- drivers/mmc/host/

[PATCH v5 3/6] mmc: sdhci-esdhc-imx: add compatible string in bingding doc

2015-08-10 Thread Haibo Chen
Add a required property "fsl,imx7d-usdhc" in binding doc. Add an optional property "fsl,tuning-step" in binding doc. Signed-off-by: Haibo Chen --- Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation

[PATCH v5 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-08-10 Thread Haibo Chen
The imx7d usdhc is derived from imx6sx, the difference is that imx7d support HS400. So introduce a new compatible string for imx7d and add HS400 support for imx7d usdhc. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 88 -- 1 file changed

[PATCH v5 6/6] mmc: sdhci-esdhc-imx: change default watermark level and burst length

2015-08-10 Thread Haibo Chen
han I/O speed. So we should improve the speed of data moving on AHB bus. This patch set the default burst length as 16, and set the default watermark level as 64. The test result is the clock signal has no stop during the eMMC HS400 operation. Signed-off-by: Haibo Chen --- drivers/mmc/host/

[PATCH v5 0/6] mmc: imx: a few fixes and new feature

2015-08-10 Thread Haibo Chen
Changes for v5: -move the clear exist timing setting to a common place rather than only in HS200 mode. -put the patch 6 ahead of patch 5. Haibo Chen (6): mmc: sdhci-esdhc-imx: add imx7d support and support HS400 mmc: sdhci-esdhc-imx: add tuning-step seting support mmc: sdhci-esdhc-imx: add

[PATCH v5 5/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1

2015-08-10 Thread Haibo Chen
value, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 03c9f33..d7ec993 100644 --- a/dr

[PATCH v5 2/6] mmc: sdhci-esdhc-imx: add tuning-step seting support

2015-08-10 Thread Haibo Chen
d the tuning-step setting in driver, so that user can set the tuning-step value in dts. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 9 + include/linux/platform_data/mmc-esdhc-imx.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/mmc/host/sdhci-

[PATCH v5 4/6] ARM: dts: imx7d-sdb: add eMMC5.0 support

2015-08-10 Thread Haibo Chen
imx7d-sdb board has a eMMC5.0 on usdhc3. This eMMC support HS400. This patch add usdhc3 support for HS400 Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d

[PATCH] mmc: sdhci: fix dma memory leak in sdhci_pre_req()

2015-08-07 Thread Haibo Chen
eak issue. Fixes: commit 348487cb28e66b0 ("mmc: sdhci: use pipeline mmc requests to improve performance") Cc: sta...@vger.kernel.org # 4.0+ Reported-by: Jiri Slaby Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci.c | 67 ++-- drivers/mm

[PATCH v4 2/6] mmc: sdhci-esdhc-imx: add tuning-step seting support

2015-08-05 Thread Haibo Chen
d the tuning-step setting in driver, so that user can set the tuning-step value in dts. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 9 + include/linux/platform_data/mmc-esdhc-imx.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/mmc/host/sdhci-

[PATCH v4 4/6] ARM: dts: imx7d-sdb: add eMMC5.0 support

2015-08-05 Thread Haibo Chen
imx7d-sdb board has a eMMC5.0 on usdhc3. This eMMC support HS400. This patch add usdhc3 support for HS400 Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d

[PATCH v4 5/6] mmc: sdhci-esdhc-imx: change default watermark level and burst length

2015-08-05 Thread Haibo Chen
han I/O speed. So we should improve the speed of data moving on AHB bus. This patch set the default burst length as 16, and set the default watermark level as 64. The test result is the clock signal has no stop during the eMMC HS400 operation. Signed-off-by: Haibo Chen --- drivers/mmc/host/

[PATCH v4 3/6] mmc: sdhci-esdhc-imx: add compatible string in bingding doc

2015-08-05 Thread Haibo Chen
Add a required property "fsl,imx7d-usdhc" in binding doc. Add an optional property "fsl,tuning-step" in binding doc. Signed-off-by: Haibo Chen --- Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation

[PATCH v4 6/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1

2015-08-05 Thread Haibo Chen
value, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 97aa944..3334762 100644 --- a/dr

[PATCH v4 0/6] mmc: imx: a few fixes and new feature

2015-08-05 Thread Haibo Chen
Changes for v4: -Call esdhc_set_strobe_dll() only when device clock is over 100MHz in HS400 mode. -Add detail description of tuning-step. -Change to default watermark level and burst length for all imx SoC, not only imx7d. Haibo Chen (6): mmc: sdhci-esdhc-imx: add imx7d support and support

[PATCH v4 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-08-05 Thread Haibo Chen
The imx7d usdhc is derived from imx6sx, the difference is that imx7d support HS400. So introduce a new compatible string for imx7d and add HS400 support for imx7d usdhc. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 81 ++ 1 file changed

[PATCH v3 2/6] mmc: sdhci-esdhc-imx: add tuning-step seting support

2015-07-29 Thread Haibo Chen
h add the tuning-step setting in driver, so that user can set the tuning-step value in dts. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 9 + include/linux/platform_data/mmc-esdhc-imx.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/mmc/host/

[PATCH v3 3/6] ARM: dts: imx7d-sdb: add eMMC5.0 support

2015-07-29 Thread Haibo Chen
imx7d-sdb board has a eMMC5.0 on usdhc3. This eMMC support HS400. This patch add usdhc3 support for HS400 Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d

[PATCH v3 5/6] mmc: sdhci-esdhc-imx: config watermark level and burst length

2015-07-29 Thread Haibo Chen
ation. For other imx usdhc, remain the default value: burst length as 8, watermark level as 16. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/

[PATCH v3 6/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1

2015-07-29 Thread Haibo Chen
, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 37d0095..dd945e5 100644 --- a/drivers/mmc

[PATCH v3 0/6] mmc: imx: a few fixes and new feature

2015-07-29 Thread Haibo Chen
Changes for v3: -Add property describe in binding doc. Haibo Chen (6): mmc: sdhci-esdhc-imx: add imx7d support and support HS400 mmc: sdhci-esdhc-imx: add tuning-step seting support ARM: dts: imx7d-sdb: add eMMC5.0 support mmc: sdhci-esdhc-imx: add compatible string in bingding doc mmc

[PATCH v3 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-07-29 Thread Haibo Chen
The imx7d usdhc is derived from imx6sx, the difference is that imx7d support HS400. So introduce a new compatible string for imx7d and add HS400 support for imx7d usdhc. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 66 ++ 1 file changed

[PATCH v3 4/6] mmc: sdhci-esdhc-imx: add compatible string in bingding doc

2015-07-29 Thread Haibo Chen
Add a required property "fsl,imx7d-usdhc" in binding doc. Add an optional property "fsl,tuning-step" in binding doc. Signed-off-by: Haibo Chen --- Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/dev

[PATCH v2 1/5] input: touchscreen: add imx6ul_tsc driver support

2015-07-28 Thread Haibo Chen
Freescale i.MX6UL contains a internal touchscreen controller, this patch add a driver to support this controller. Signed-off-by: Haibo Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/imx6ul_tsc.c | 504

[PATCH v2 5/5] ARM: dts: imx6ul-14x14-evk.dts: add tsc support

2015-07-28 Thread Haibo Chen
Add touch screen surpport for i.MX6UL-EVK board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ul-14x14-evk.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts index 61b41ee..9995656

[PATCH v2 2/5] Documentation: Detail permitted DT properties for the imx6ul_tsc

2015-07-28 Thread Haibo Chen
Here we apply required documentation for the imx6ul touch screen controller driver which describe available properties and how to use them. Signed-off-by: Haibo Chen --- .../bindings/input/touchscreen/imx6ul_tsc.txt | 36 ++ 1 file changed, 36 insertions(+) create mode

[PATCH v2 0/5] Add imx6ul touch screen controller support

2015-07-28 Thread Haibo Chen
i.MX6UL contains a touch screen controller. This patch set add imx6ul touch screen controller driver support. Changes for v2: -Add property in devicetree Documentation. -Add tsc disable code in tsc_remove function. -Remove some redundant code. Haibo Chen (5): input: touchscreen: add

[PATCH v2 4/5] ARM: dts: imx6ul.dtsi: add TSC support

2015-07-28 Thread Haibo Chen
Add imx6ul touchscreen controller support. TSC module need ADC2 module to measure the touchscreen coordinate value. This patch put TSC and ADC2 together, make ADC2 module only be used for TSC, can't be used as a normal ADC. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ul.dtsi

[PATCH v2 3/5] ARM: imx_v6_v7_defconfig: enable imx6ul_tsc

2015-07-28 Thread Haibo Chen
Enable imx6ul touchscreen controller Signed-off-by: Haibo Chen --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index e1ba3e2..9823ddc 100644 --- a/arch/arm/configs

[PATCH 1/5] input: touchscreen: add imx6ul_tsc driver support

2015-07-27 Thread Haibo Chen
Freescale i.MX6UL contains a internal touchscreen controller, this patch add a driver to support this controller. Signed-off-by: Haibo Chen --- drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/imx6ul_tsc.c | 510

[PATCH 5/5] ARM: dts: imx6ul-14x14-evk.dts: add tsc support

2015-07-27 Thread Haibo Chen
Add touch screen surpport for i.MX6UL-EVK board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ul-14x14-evk.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts index 61b41ee..323d32d

[PATCH 4/5] ARM: dts: imx6ul.dtsi: add TSC support

2015-07-27 Thread Haibo Chen
Add imx6ul touchscreen controller support. TSC module need ADC2 module to measure the touchscreen coordinate value. This patch put TSC and ADC2 together, make ADC2 module only be used for TSC, can't be used as a normal ADC. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx6ul.dtsi

[PATCH 2/5] Documentation: Detail permitted DT properties for the imx6ul_tsc

2015-07-27 Thread Haibo Chen
Here we apply required documentation for the imx6ul touch screen controller driver which describe available properties and how to use them. Signed-off-by: Haibo Chen --- .../devicetree/bindings/input/touchscreen/imx6ul_tsc.txt | 14 ++ 1 file changed, 14 insertions(+) create mode

[PATCH 3/5] ARM: imx_v6_v7_defconfig: enable imx6ul_tsc

2015-07-27 Thread Haibo Chen
Enable imx6ul touchscreen controller Signed-off-by: Haibo Chen --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index e1ba3e2..9823ddc 100644 --- a/arch/arm/configs

[PATCH 0/5] Add imx6ul touch screen controller support

2015-07-27 Thread Haibo Chen
i.MX6UL contains a touch screen controller. This patch set add imx6ul touch screen controller driver support. Haibo Chen (5): input: touchscreen: add imx6ul_tsc driver support Documentation: Detail permitted DT properties for the imx6ul_tsc ARM: imx_v6_v7_defconfig: enable imx6ul_tsc

[PATCH v2 3/4] mmc: sdhci-esdhc-imx: config watermark level and burst length

2015-06-23 Thread Haibo Chen
ation. For other imx usdhc, remain the default value: burst length as 8, watermark level as 16. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/

[PATCH v2 2/4] mmc: sdhci-esdhc-imx: add tuning-step seting support

2015-06-23 Thread Haibo Chen
d the tuning-step setting in driver, so that user can set the tuning-step value in dts. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 9 + include/linux/platform_data/mmc-esdhc-imx.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/mmc/host/

[PATCH v2 4/4] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1

2015-06-23 Thread Haibo Chen
, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 1f0e0d9..e6a1995 100644 --- a/drivers/mmc

[PATCH v2 1/4] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-06-23 Thread Haibo Chen
The imx7d usdhc is derived from imx6sx, the difference is that imx7d support HS400. So introduce a new compatible string for imx7d and add HS400 support for imx7d usdhc. Signed-off-by: Haibo Chen --- drivers/mmc/host/sdhci-esdhc-imx.c | 66 ++ 1 file changed

[PATCH v2 0/4] mmc: imx: a few fixes and add a new feature

2015-06-23 Thread Haibo Chen
Patch 1 add imx7d support, and also add HS400 mode support. Patch 2 add tuning-step, which can be get from dts. Patch 3 and Patch 4 do some small fixes. Haibo Chen (4): mmc: sdhci-esdhc-imx: add imx7d support and support HS400 mmc: sdhci-esdhc-imx: add tuning-step seting support mmc: sdhci