[PATCH v5] regulator: pfuze100: add pfuze100 regulator driver

2013-07-24 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 113 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |1 + drivers/regulator/pfuze100

Re: [PATCH v5] regulator: pfuze100: add pfuze100 regulator driver

2013-07-25 Thread Robin Gong
On Thu, Jul 25, 2013 at 04:40:44PM +0800, Shawn Guo wrote: On Thu, Jul 25, 2013 at 11:33:18AM +0800, Robin Gong wrote: @@ -0,0 +1,113 @@ +PFUZE100 family of regulators + +Required properties: +- compatible: fsl,pfuze100 +- reg: I2C slave address +- regulators: This is the list

Re: [PATCH v5] regulator: pfuze100: add pfuze100 regulator driver

2013-07-25 Thread Robin Gong
On Thu, Jul 25, 2013 at 10:16:42AM +0100, Mark Brown wrote: On Thu, Jul 25, 2013 at 04:58:10PM +0800, Robin Gong wrote: Shawn, I notice there are the same descriptions in the many docs of regulator drivers, can we consider the 'regulators' child node as one of special property

[PATCH V6] regulator: pfuze100: add pfuze100 regulator driver

2013-07-25 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com Tested-by: Steffen Trumtrar s.trumt...@pengutronix.de --- .../devicetree/bindings/regulator/pfuze100.txt | 115 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile

[PATCH] regulator:pfuze100: fix build warning and correct the binding doc

2013-07-25 Thread Robin Gong
fix building warning and correct the binding doc Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt |2 ++ drivers/regulator/pfuze100-regulator.c |2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git

[PATCH] regulator:pfuze100: add MODULE_LICENSE() in pfuze100 driver

2013-07-28 Thread Robin Gong
Fix building error on x86_64 and i386: WARNING: modpost: missing MODULE_LICENSE() in drivers/regulator/pfuze100-regulator.o Signed-off-by: Robin Gong b38...@freescale.com --- drivers/regulator/pfuze100-regulator.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers

Re: [PATCH] regulator: pfuze100: Fix module alias prefix

2013-07-28 Thread Robin Gong
); MODULE_AUTHOR(Robin Gong b38...@freescale.com); MODULE_DESCRIPTION(Regulator Driver for Freescale PFUZE100 PMIC); -MODULE_ALIAS(pfuze100-regulator); +MODULE_ALIAS(i2c:pfuze100-regulator); -- 1.8.1.2 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: regulator: pfuze100: A few small questions

2013-07-29 Thread Robin Gong
On Mon, Jul 29, 2013 at 04:20:03PM +0800, Axel Lin wrote: 2013/7/29 Axel Lin axel@ingics.com: Hi Robin, 2 questions about the code in pfuze100 driver: 1) Both PFUZE100_REVID and PFUZE100_FABID are defined as 0x3. So I'm wondering if it's a typo in one of the register address? If

Re: [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend

2013-07-29 Thread Robin Gong
Yes, it's reasonable from performance view. On Mon, Jul 29, 2013 at 03:38:58PM +0800, Axel Lin wrote: All table based voltage list have ascendant order. Use regulator_map_voltage_ascend for them. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/pfuze100-regulator.c | 1 +

Re: regulator: pfuze100: A few small questions

2013-07-29 Thread Robin Gong
On Mon, Jul 29, 2013 at 11:44:40PM +0800, Axel Lin wrote: Current code adjust min_uV and uV_step when SW2~SW4 high bit is set. I'm wondering if n_voltages is correct or not in this case because the n_voltages is calculated by original equation (max-min/step + 1). What is the max_uV when

Re: regulator: pfuze100: A few small questions

2013-07-29 Thread Robin Gong
On Tue, Jul 30, 2013 at 10:26:40AM +0800, Axel Lin wrote: 2013/7/30 Robin Gong b38...@freescale.com: On Mon, Jul 29, 2013 at 11:44:40PM +0800, Axel Lin wrote: Current code adjust min_uV and uV_step when SW2~SW4 high bit is set. I'm wondering if n_voltages is correct or not in this case

Re: [PATCH RFT] regulator: pfuze100: Fix n_voltages setting for SW2~SW4 with high bit set

2013-07-29 Thread Robin Gong
Ok for me. On Tue, Jul 30, 2013 at 10:46:28AM +0800, Axel Lin wrote: Current code adjust min_uV and uV_step but missed adjusting the n_voltages setting. When BIT6 is clear: n_voltages = (1975000 - 40) / 25000 + 1 = 64 When BIT6 is set: n_voltages = (330 - 80) /

[PATCH v2] regulator: pfuze100: add pfuze100 regulator driver

2013-07-11 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 113 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |1 + drivers/regulator/pfuze100

[PATCH v2] regulator: pfuze100: add pfuze100 regulator driver

2013-07-11 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 113 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |1 + drivers/regulator/pfuze100

Re: [PATCH v2] regulator: pfuze100: add pfuze100 regulator driver

2013-07-12 Thread Robin Gong
Mark, Thanks for your kindly review, please see below comments. On Fri, Jul 12, 2013 at 03:40:37PM +0100, Mark Brown wrote: On Fri, Jul 12, 2013 at 12:54:15PM +0800, Robin Gong wrote: Add pfuze100 regulator driver. This looks mostly good. A few small issues below but nothing major

Re: [PATCH v2] regulator: pfuze100: add pfuze100 regulator driver

2013-07-15 Thread Robin Gong
Shawn, Thanks for your carefully review and I will correct it and send the patch again. some comments below: + +struct pfuze_regulator { + struct regulator_desc desc; + unsigned char stby_reg; + unsigned char stby_mask; +}; + +enum pfuze_id { + PFUZE_ID_PFUZE100, +

[PATCH v3] regulator: pfuze100: add pfuze100 regulator driver

2013-07-19 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 113 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |1 + drivers/regulator/pfuze100

Re: [PATCH RFT] regulator: pfuze100: Fix n_voltages setting for SW2~SW4 with high bit set

2013-07-30 Thread Robin Gong
Hi Mark, Thanks for your kindly remind. On Tue, Jul 30, 2013 at 11:21:10AM +0100, Mark Brown wrote: On Tue, Jul 30, 2013 at 11:23:11AM +0800, Robin Gong wrote: Ok for me. For Linux kernel process you should say Acked-by: Robin Gong b38...@freescale.com or Reviewed

Re: [PATCH] regulator: pfuze100: Simplify pfuze100_set_ramp_delay implementation

2013-07-31 Thread Robin Gong
From software view this patch looks better, although original code match better with the data sheet. Thanks Axel. Reviewed-by: Robin Gong b38...@freescale.com Thanks. On Tue, Jul 30, 2013 at 10:47:44PM +0800, Axel Lin wrote: Simplify the equation to calculate ramp_delay. Below equations

Re: [PATCH] regulator: pfuze100: Fix off-by-one for max_register setting

2013-08-01 Thread Robin Gong
this fix is required. Yes, you are right. Reviewed-by: Robin Gong b38...@freescale.com Thanks. Thanks, Axel drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100

[PATCH v2] regulator: pfuze100: add pfuze200 support

2014-03-03 Thread Robin Gong
support pfuze200 chip which remove SW1C and SW4 based on pfuze100. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/regulator/pfuze100-regulator.c | 196 +++- include/linux/regulator/pfuze100.h | 14 +++ 2 files changed, 157 insertions(+), 53

[PATCH v3] regulator: pfuze100: add pfuze200 support

2014-03-04 Thread Robin Gong
support pfuze200 chip which remove SW1C and SW4 based on pfuze100. Signed-off-by: Robin Gong b38...@freescale.com --- v3: 1. add device tree binding doc for PFUZE200 2. fix building error for non-devicetree case. --- .../devicetree/bindings/regulator/pfuze100.txt | 96

[PATCH V1] spi: imx: add dma support for ecspi

2014-02-12 Thread Robin Gong
Add basical dma support for ecspi. Validate on i.MX6qsabresd board. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/spi/spi-imx.c | 221 ++-- 1 files changed, 211 insertions(+), 10 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers

[PATCH v1] regulator: pfuze100: add pfuze100 regulator driver

2013-07-09 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |2 + drivers/regulator/pfuze-regulator.h| 110 drivers/regulator/pfuze100-regulator.c | 993

[PATCH v4] regulator: pfuze100: add pfuze100 regulator driver

2013-07-21 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 113 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |1 + drivers/regulator/pfuze100

Re: [PATCH v4] regulator: pfuze100: add pfuze100 regulator driver

2013-07-22 Thread Robin Gong
On Mon, Jul 22, 2013 at 05:11:00PM +0800, Shawn Guo wrote: On Sun, Jul 21, 2013 at 05:17:27PM +0800, Robin Gong wrote: Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/regulator/pfuze100.txt | 113 + drivers/regulator

Re: [PATCH v4] regulator: pfuze100: add pfuze100 regulator driver

2013-07-24 Thread Robin Gong
On Wed, Jul 24, 2013 at 10:30:41AM +0200, Steffen Trumtrar wrote: Hi! I tested your patch and had to change two things to actually make it work. See below... On Sun, Jul 21, 2013 at 05:17:27PM +0800, Robin Gong wrote: Add pfuze100 regulator driver. Signed-off-by: Robin Gong b38

Re: [PATCH v3] dma: imx-sdma: add support for sdma memory copy

2014-05-21 Thread Robin Gong
On Wed, May 21, 2014 at 04:26:52PM +0530, Vinod Koul wrote: On Tue, May 06, 2014 at 10:12:48AM +0800, Robin Gong wrote: add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- change: --v3: 1. remove

Re: [PATCH v3] dma: imx-sdma: add support for sdma memory copy

2014-05-13 Thread Robin Gong
ping! On Tue, May 06, 2014 at 10:12:48AM +0800, Robin Gong wrote: add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- change: --v3: 1. remove redundant check for bus width --v2: 1. correct some printk

[PATCH v1 2/2] update binding doc of leds-gpio.txt

2014-01-20 Thread Robin Gong
Update the binding doc for new property: retain-state-suspended Signed-off-by: Robin Gong b38...@freescale.com --- .../devicetree/bindings/leds/leds-gpio.txt | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds

[PATCH v1 1/2] leds: leds-gpio: add retain-state-suspended property

2014-01-20 Thread Robin Gong
Some gpio-leds need retain the state even in suspend, such as charger led. But this property missed in devicetree, add it. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/leds/leds-gpio.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/leds/leds

[PATCH v3] dma: imx-sdma: add support for sdma memory copy

2014-04-30 Thread Robin Gong
add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- change: --v3: 1. remove redundant check for bus width --v2: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy

[PATCH v3] dma: imx-sdma: add support for sdma memory copy

2014-05-05 Thread Robin Gong
add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- change: --v3: 1. remove redundant check for bus width --v2: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy

[PATCH v2] dma: imx-sdma: add support for sdma memory copy

2014-04-23 Thread Robin Gong
add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- change: --v2: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean. --- drivers

Re: [PATCH v2] dma: imx-sdma: add support for sdma memory copy

2014-04-24 Thread Robin Gong
On Thu, Apr 24, 2014 at 11:50:06AM +0300, Andy Shevchenko wrote: On Thu, 2014-04-24 at 13:09 +0800, Robin Gong wrote: add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- change: --v2: 1. correct some

Re: [PATCH v1] dma: imx-sdma: add support for sdma memory copy

2014-04-22 Thread Robin Gong
On Tue, Apr 22, 2014 at 10:28:05AM +, Shevchenko, Andriy wrote: On Fri, 2014-04-18 at 17:41 +0800, Robin Gong wrote: On Thu, Apr 17, 2014 at 10:24:50AM +, Shevchenko, Andriy wrote: On Thu, 2014-04-17 at 18:01 +0800, Robin Gong wrote: [] + dev_dbg(sdma-dev, memcpy: %x

[PATCH v1] dma: imx-sdma: add support for sdma memory copy

2014-04-17 Thread Robin Gong
add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188 +-- 1 files changed, 164 insertions(+), 24 deletions(-) diff --git a/drivers/dma/imx-sdma.c b

Re: [PATCH v1] dma: imx-sdma: add support for sdma memory copy

2014-04-18 Thread Robin Gong
On Thu, Apr 17, 2014 at 10:24:50AM +, Shevchenko, Andriy wrote: On Thu, 2014-04-17 at 18:01 +0800, Robin Gong wrote: add device_prep_dma_memcpy and device_prep_dma_sg for memory copy by sdma. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188

Re: [PATCH] regulator: Kconfig: Improve PFUZE100 entry text

2013-12-23 Thread Robin Gong
Acked-by: Robin gong yibin.g...@freescale.com On Mon, Dec 23, 2013 at 05:35:35PM -0200, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Make PFUZE100 entry consistent with other Freescale PMIC entries, so that now we can have: * Freescale MC13783 regulator

[PATCH v4] spi: spi-imx: add DMA support

2014-08-22 Thread Robin Gong
(1.0 MB) copied, 4.83181 s, 217 kB/s Signed-off-by: Frank Li frank...@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- drivers/spi/spi-imx.c | 303 - 1 file changed, 297 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-imx.c

Re: [PATCH v4] spi: spi-imx: add DMA support

2014-08-26 Thread Robin Gong
On Mon, Aug 25, 2014 at 10:07:22AM +0200, Marek Vasut wrote: On Saturday, August 23, 2014 at 02:13:55 AM, Robin Gong wrote: After enable DMA Please also add a commit message which describes the change, not only some test results. [...] Ok, I will enrich it in next version

Re: [PATCH v4] spi: spi-imx: add DMA support

2014-08-26 Thread Robin Gong
On Tue, Aug 26, 2014 at 09:26:40AM +0200, Marek Vasut wrote: On Tuesday, August 26, 2014 at 09:17:59 AM, Robin Gong wrote: On Mon, Aug 25, 2014 at 10:07:22AM +0200, Marek Vasut wrote: On Saturday, August 23, 2014 at 02:13:55 AM, Robin Gong wrote: After enable DMA Please also add

[PATCH v3] spi: spi-imx: add DMA support

2014-08-20 Thread Robin Gong
(1.0 MB) copied, 4.83181 s, 217 kB/s Signed-off-by: Frank Li frank...@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- Change from v2: http://thread.gmane.org/gmane.linux.ports.arm.kernel/291722/focus=294363 1. dma setup only for imx51-ecspi 2. use one small dummy buffer(1 bd size

[PATCH v5 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
for bus width. change from v1: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg

[PATCH v4 2/3] dma: imx-sdma: correct print format

2014-10-22 Thread Robin Gong
correct print format for 'size_t', 'dma_address_t',etc. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc4a0df..7e8aa2d 100644

[PATCH v5 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
for bus width. change from v1: 1. correct some printk format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg

[PATCH v5 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-22 Thread Robin Gong
Code reorg for transfer prepare and bus width check to make code cleaner. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 127 +++-- 1 file changed, 60 insertions(+), 67 deletions(-) diff --git a/drivers/dma/imx-sdma.c b

[PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
Add device_prep_dma_memcpy and device_prep_dma_sg common interfaces for imx-sdma driver to support memory copy in two ways: continuous memory buffers or scatter lists. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188

[PATCH v5 2/3] dma: imx-sdma: correct the printk format

2014-10-22 Thread Robin Gong
Correct the printk format for 'size_t', 'dma_address_t', etc. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 5424d9a..377bb18

[PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-22 Thread Robin Gong
Add device_prep_dma_memcpy and device_prep_dma_sg common interfaces for imx-sdma driver to support memory copy in two ways: continuous memory buffers or scatter lists. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188

Re: [PATCH v4 0/3] add power off driver for i.mx6

2014-10-17 Thread Robin Gong
Ping! On Fri, Sep 26, 2014 at 11:59:04AM +0800, Robin Gong wrote: Add simple power off driver for i.mx6, including: - add basic imx-snvs-poweroff driver in drivers/power/reset - add device node in all dts files of i.mx6. - enable in config file Change from v3: - disable poweroff driver

[PATCH v1] ARM: imx6: add pm_power_off support for i.mx6 chips

2014-10-20 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH v6] spi: spi-imx: add DMA support

2014-10-20 Thread Robin Gong
they share the same IP. Note: Sometime, there is a weid data in rxfifo after one full tx/rx transfer finish by DMA on i.mx6dl, so we disable dma functhion on i.mx6dl. Signed-off-by: Frank Li frank...@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- Change from v5: 1. Update binding doc

[PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-10-20 Thread Robin Gong
There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re-enable it once the root cause found. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/boot/dts/imx6q.dtsi

[PATCH v4 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg code to make code clean drivers/dma/imx-sdma.c | 247

[PATCH v4 0/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
format, such as %pad for dma_addr_t 2. split duplicated code in prep_dma_memcpy and prep_dma_sg to make code clean Robin Gong (3): dma: imx-sdma: add support for sdma memory copy dma: imx-sdma: correct print format dma: imx-sdma: reorg code to make code clean drivers/dma/imx-sdma.c | 247

[PATCH v4 2/3] dma: imx-sdma: correct print format

2014-10-20 Thread Robin Gong
correct print format for 'size_t', 'dma_address_t',etc. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc4a0df..7e8aa2d 100644

[PATCH v4 1/3] dma: imx-sdma: add support for sdma memory copy

2014-10-20 Thread Robin Gong
Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 188 ++--- 1 file changed, 164 insertions(+), 24 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index f7626e3..fc4a0df 100644 --- a/drivers/dma/imx

[PATCH v4 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-20 Thread Robin Gong
code reorg for transfer prepare and bus width check. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/dma/imx-sdma.c | 127 +++-- 1 file changed, 60 insertions(+), 67 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c

Re: [PATCH v4 3/3] dma: imx-sdma: reorg code to make code clean

2014-10-21 Thread Robin Gong
Thanks for your comments, I'll send the next verison. On Tue, Oct 21, 2014 at 12:39:35PM +0300, Andy Shevchenko wrote: On Tue, 2014-10-21 at 09:09 +0800, Robin Gong wrote: code reorg for transfer prepare and bus width check. Fix style of commit message. Signed-off-by: Robin Gong b38

Re: PFUZE100 regulator not going off when PWRON is 0

2014-09-08 Thread Robin Gong
this - I don't think anyone on the CC list knows anything about the part. In general if you're asking about a specific driver this is a good approach. I've CCed Robin Gong who was the original author. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH v4] spi: spi-imx: add DMA support

2014-08-28 Thread Robin Gong
On Wed, Aug 27, 2014 at 11:12:08AM +0530, sanjeev sharma wrote: On Sat, Aug 23, 2014 at 5:43 AM, Robin Gong b38...@freescale.com wrote: + /* +* Configure the DMA register: setup the watermark +* and enable DMA request. +*/ + if (spi_imx

[PATCH v2 3/3] ARM: configs: imx_v6_v7_defconfig: add power off driver

2014-09-12 Thread Robin Gong
Add power off driver in config file. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/configs/imx_v6_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4..a310e61 100644

[PATCH v2 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-12 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH v2 0/3] add power off driver for i.mx6

2014-09-12 Thread Robin Gong
Add simple power off driver for i.mx6, including: - add basic imx-snvs-poweroff driver in drivers/power/reset - add device node in all dts files of i.mx6. - enable in config file Robin Gong (3): ARM: dts: imx6: add pm_power_off support for i.mx6 chips power: reset: imx-snvs-poweroff: add

[PATCH v2 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-12 Thread Robin Gong
Add simple power off driver for i.mx6. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/power/reset/Kconfig | 6 +++ drivers/power/reset/Makefile| 1 + drivers/power/reset/imx-snvs-poweroff.c | 69 + 3 files changed, 76

Re: [PATCH v3 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-18 Thread Robin Gong
On Thu, Sep 18, 2014 at 06:53:16PM +0100, Mark Rutland wrote: On Thu, Sep 18, 2014 at 03:21:27AM +0100, Robin Gong wrote: On Wed, Sep 17, 2014 at 06:52:44PM +0100, Mark Rutland wrote: On Wed, Sep 17, 2014 at 10:57:59AM +0100, Robin Gong wrote: This driver register pm_power_off with snvs

Re: [PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-18 Thread Robin Gong
Sorry, the patch resent wrongly... Hi Shawn, Can you apply the first v4 patches on Sep 26, or I resend it again? On Wed, Nov 19, 2014 at 06:26:43AM +0100, Soeren Moch wrote: On 19.11.2014 04:18, Shawn Guo wrote: On Wed, Nov 12, 2014 at 04:20:37PM +0800, Robin Gong wrote: All chips of i.mx6

[PATCH v5] spi: spi-imx: add DMA support

2014-09-09 Thread Robin Gong
they share the same IP. Note: Sometime, there is a weid data in rxfifo after one full tx/rx transfer finish by DMA on i.mx6dl, so we disable dma functhion on i.mx6dl. Signed-off-by: Frank Li frank...@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- Change from v4: 1. Enrich comments. 2

[PATCH v1] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-09 Thread Robin Gong
There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re-enable it once the root cause found. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/boot/dts/imx6dl.dtsi

Re: [PATCH v1] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-09 Thread Robin Gong
On Wed, Sep 10, 2014 at 11:21:30AM +0800, Shawn Guo wrote: On Wed, Sep 10, 2014 at 09:33:36AM +0800, Robin Gong wrote: There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here

Re: [PATCH v5] spi: spi-imx: add DMA support

2014-09-09 Thread Robin Gong
On Wed, Sep 10, 2014 at 09:46:04AM +0530, Varka Bhadram wrote: On 09/10/2014 07:00 AM, Robin Gong wrote: Enable DMA support on i.mx6. The read speed can increase from 600KB/s to 1.2MB/s on i.mx6q. You can disable or enable dma function in dts. (...) + +static int spi_imx_sdma_init(struct

[PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-10 Thread Robin Gong
There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re-enable it once the root cause found. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/boot/dts/imx6q.dtsi

Re: [PATCH v5] spi: spi-imx: add DMA support

2014-09-10 Thread Robin Gong
On Wed, Sep 10, 2014 at 10:17:14AM +0200, Arnd Bergmann wrote: On Wednesday 10 September 2014 09:30:04 Robin Gong wrote: Enable DMA support on i.mx6. The read speed can increase from 600KB/s to 1.2MB/s on i.mx6q. You can disable or enable dma function in dts. If not set dma-names in dts

Re: [PATCH v5] spi: spi-imx: add DMA support

2014-09-10 Thread Robin Gong
On Wed, Sep 10, 2014 at 11:21:05AM +0100, Mark Brown wrote: On Wed, Sep 10, 2014 at 09:30:04AM +0800, Robin Gong wrote: +static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi, +struct spi_transfer *transfer) +{ + struct spi_imx_data

Re: [PATCH v5] spi: spi-imx: add DMA support

2014-09-10 Thread Robin Gong
On Wed, Sep 10, 2014 at 12:45:30PM +0100, Mark Brown wrote: On Wed, Sep 10, 2014 at 07:22:59PM +0800, Robin Gong wrote: On Wed, Sep 10, 2014 at 11:21:05AM +0100, Mark Brown wrote: This isn't going to work, anything that looks at the usedma flag will see the result of the last thing

Re: [PATCH v5] spi: spi-imx: add DMA support

2014-09-10 Thread Robin Gong
On Wed, Sep 10, 2014 at 04:52:16PM +0100, Mark Brown wrote: On Wed, Sep 10, 2014 at 11:18:01PM +0800, Robin Gong wrote: On Wed, Sep 10, 2014 at 12:45:30PM +0100, Mark Brown wrote: Yes, you're right. I should use transfer-tx_sg-sgl == NULL or transfer-rx_sg-sgl == NULL instead

[PATCH v6] spi: spi-imx: add DMA support

2014-09-10 Thread Robin Gong
they share the same IP. Note: Sometime, there is a weid data in rxfifo after one full tx/rx transfer finish by DMA on i.mx6dl, so we disable dma functhion on i.mx6dl. Signed-off-by: Frank Li frank...@freescale.com Signed-off-by: Robin Gong b38...@freescale.com --- Change from v5: 1. Update binding doc

[PATCH v1] ARM: imx6: add pm_power_off support for i.mx6 chips

2014-09-11 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

Re: [PATCH 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-11-21 Thread Robin Gong
Thanks Shawn and Soeren. :) On Wed, Nov 19, 2014 at 02:04:43PM +0800, Shawn Guo wrote: On Wed, Nov 19, 2014 at 01:50:07PM +0800, Robin Gong wrote: Sorry, the patch resent wrongly... Hi Shawn, Can you apply the first v4 patches on Sep 26, or I resend it again? I fixed it up and tested

Re: [PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-15 Thread Robin Gong
, Sep 15, 2014 at 11:41:13AM +0200, Lucas Stach wrote: Am Mittwoch, den 10.09.2014, 13:30 +0800 schrieb Robin Gong: There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re

Re: [PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-15 Thread Robin Gong
On Mon, Sep 15, 2014 at 01:50:02PM +0200, Alexander Holler wrote: Am 10.09.2014 07:30, schrieb Robin Gong: There is one weird data in rxfifo after one full rx/tx transfer done sometimes. It looks a design issue and hard to workaround totally, so disable dma functhion here. And will re-enable

Re: [PATCH v2 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-16 Thread Robin Gong
On Wed, Sep 17, 2014 at 09:47:24AM +0800, Shawn Guo wrote: On Fri, Sep 12, 2014 at 04:48:57PM +0800, Robin Gong wrote: All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause

Re: [PATCH v2 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-16 Thread Robin Gong
On Wed, Sep 17, 2014 at 10:06:57AM +0800, Shawn Guo wrote: On Fri, Sep 12, 2014 at 04:48:58PM +0800, Robin Gong wrote: Add simple power off driver for i.mx6. Signed-off-by: Robin Gong b38...@freescale.com --- drivers/power/reset/Kconfig | 6 +++ drivers/power/reset

Re: [PATCH v2 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-16 Thread Robin Gong
On Wed, Sep 17, 2014 at 10:10:45AM +0800, Shawn Guo wrote: On Fri, Sep 12, 2014 at 04:48:57PM +0800, Robin Gong wrote: All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause

Re: [PATCH v2 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-17 Thread Robin Gong
On Wed, Sep 17, 2014 at 08:06:49AM +0200, Sascha Hauer wrote: On Wed, Sep 17, 2014 at 11:45:15AM +0800, Robin Gong wrote: On Wed, Sep 17, 2014 at 10:10:45AM +0800, Shawn Guo wrote: On Fri, Sep 12, 2014 at 04:48:57PM +0800, Robin Gong wrote: All chips of i.mx6 can be powered off

Re: [PATCH v2 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-17 Thread Robin Gong
On Wed, Sep 17, 2014 at 09:24:37AM +0200, Sascha Hauer wrote: On Wed, Sep 17, 2014 at 03:17:38PM +0800, Robin Gong wrote: On Wed, Sep 17, 2014 at 08:06:49AM +0200, Sascha Hauer wrote: On Wed, Sep 17, 2014 at 11:45:15AM +0800, Robin Gong wrote: On Wed, Sep 17, 2014 at 10:10:45AM +0800

Re: [PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-17 Thread Robin Gong
On Tue, Sep 16, 2014 at 11:50:06AM +0200, Lucas Stach wrote: Hi Robin, Am Dienstag, den 16.09.2014, 11:41 +0800 schrieb Robin Gong: Hi Lucas, I understood your concern,but looks we have to break old DT. Sorry, but this isn't going to happen. And honestly I don't even see the need

Re: [PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-17 Thread Robin Gong
On Tue, Sep 16, 2014 at 11:41:55AM +0200, Alexander Holler wrote: Am 16.09.2014 05:52, schrieb Robin Gong: On Mon, Sep 15, 2014 at 01:50:02PM +0200, Alexander Holler wrote: Am 10.09.2014 07:30, schrieb Robin Gong: There is one weird data in rxfifo after one full rx/tx transfer done sometimes

Re: [PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-17 Thread Robin Gong
On Wed, Sep 17, 2014 at 10:55:56AM +0200, Lucas Stach wrote: Am Mittwoch, den 17.09.2014, 16:41 +0800 schrieb Robin Gong: On Tue, Sep 16, 2014 at 11:50:06AM +0200, Lucas Stach wrote: Hi Robin, Am Dienstag, den 16.09.2014, 11:41 +0800 schrieb Robin Gong: Hi Lucas, I

Re: [PATCH v2] ARM: dts: imx6dl: disable dma support for spi on i.mx6dl

2014-09-17 Thread Robin Gong
On Wed, Sep 17, 2014 at 11:19:34AM +0200, Lucas Stach wrote: Am Mittwoch, den 17.09.2014, 17:19 +0800 schrieb Robin Gong: On Wed, Sep 17, 2014 at 10:55:56AM +0200, Lucas Stach wrote: Am Mittwoch, den 17.09.2014, 16:41 +0800 schrieb Robin Gong: On Tue, Sep 16, 2014 at 11:50:06AM +0200

[PATCH v3 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-17 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. Signed-off-by: Robin

[PATCH v3 3/3] ARM: configs: imx_v6_v7_defconfig: add power off driver

2014-09-17 Thread Robin Gong
Add power off driver in config file. Signed-off-by: Robin Gong b38...@freescale.com --- arch/arm/configs/imx_v6_v7_defconfig |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 16cfec4..a310e61 100644

[PATCH v3 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-17 Thread Robin Gong
This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable the driver in dts, otherwise, your pm_power_off maybe overwrote by this driver. Signed-off-by: Robin Gong b38...@freescale.com

[PATCH v3 0/3] add power off driver for i.mx6

2014-09-17 Thread Robin Gong
for the case that PMIC_ON_REQ not used as external power control Robin Gong (3): ARM: dts: imx6: add pm_power_off support for i.mx6 chips power: reset: imx-snvs-poweroff: add power off driver for i.mx6 ARM: configs: imx_v6_v7_defconfig: add power off driver arch/arm/boot/dts/imx6qdl.dtsi

Re: [PATCH v3 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-17 Thread Robin Gong
On Wed, Sep 17, 2014 at 06:52:44PM +0100, Mark Rutland wrote: On Wed, Sep 17, 2014 at 10:57:59AM +0100, Robin Gong wrote: This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable

Re: [PATCH v1] rtc: snvs: add poweroff function

2014-09-25 Thread Robin Gong
On Fri, Sep 26, 2014 at 09:24:11AM +0800, Shawn Guo wrote: On Thu, Sep 25, 2014 at 10:13:53AM +0800, Robin Gong wrote: On i.mx6 chips, PMIC_ON_REQ can be pulled by snvs LPCR. That can be used poweroff system if PMIC_ON_REQ connected with external PMIC or power control circuit.Power up again

[PATCH v4 0/3] add power off driver for i.mx6

2014-09-25 Thread Robin Gong
' with 'ENODEV' while of_iomap fail. Change from v2: - remove useless included head files - split device binding doc from dts patch - add description for the case that PMIC_ON_REQ not used as external power control Robin Gong (3): ARM: dts: imx6: add pm_power_off support for i.mx6 chips power: reset: imx

[PATCH v4 1/3] ARM: dts: imx6: add pm_power_off support for i.mx6 chips

2014-09-25 Thread Robin Gong
All chips of i.mx6 can be powered off by programming SNVS. For example : On i.mx6q-sabresd board, PMIC_ON_REQ connect with external pmic ON/OFF pin, that will cause the whole PMIC powered off except VSNVS. And system can restart once PMIC_ON_REQ goes high by push POWRER key. ---

[PATCH v4 2/3] power: reset: imx-snvs-poweroff: add power off driver for i.mx6

2014-09-25 Thread Robin Gong
This driver register pm_power_off with snvs power off function. If your boards NOT use PMIC_ON_REQ to turn on/off external pmic, or use other pin to do, please disable the driver in dts, otherwise, your pm_power_off maybe overwrote by this driver. Signed-off-by: Robin Gong b38...@freescale.com

  1   2   3   4   5   6   7   8   9   >