[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 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 --- drivers/spi/spi-imx.c | 221 ++-- 1 files changed, 211 insertions(+), 10 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index

[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 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 --- drivers/leds/leds-gpio.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds

[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 --- .../devicetree/bindings/leds/leds-gpio.txt | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-g

[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

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

2013-12-23 Thread Robin Gong
Acked-by: Robin gong On Mon, Dec 23, 2013 at 05:35:35PM -0200, Fabio Estevam wrote: > From: Fabio Estevam > > Make PFUZE100 entry consistent with other Freescale PMIC entries, so that now > we can have: > > <*> Freescale MC13783 regulator driver >

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

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

2013-08-01 Thread Robin Gong
unt, I think this fix is required. > Yes, you are right. Reviewed-by: Robin Gong 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/r

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

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 Thanks. On Tue, Jul 30, 2013 at 10:47:44PM +0800, Axel Lin wrote: > Simplify the equation to calculate ramp_delay. > Below equations are e

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 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 > > or

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 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 -

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 : > > 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

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

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 > --- > drivers/regulator/pfuze100-regulator.c | 1 + > 1 file

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 : > > 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: 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) /

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

2013-07-28 Thread Robin Gong
@ -451,4 +451,4 @@ module_i2c_driver(pfuze_driver); > > MODULE_AUTHOR("Robin Gong "); > MODULE_DESCRIPTION("Regulator Driver for Freescale PFUZE100 PMIC"); > -MODULE_ALIAS("pfuze100-regulator"); > +MODULE_ALIAS("i2c:pfuze100-regulator"); > -- &g

[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 --- drivers/regulator/pfuze100-regulator.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/regulator/pfuze100

[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

[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 --- .../devicetree/bindings/regulator/pfuze100.txt |2 ++ drivers/regulator/pfuze100-regulator.c |2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree

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

2013-07-25 Thread Robin Gong
Add pfuze100 regulator driver. Signed-off-by: Robin Gong Tested-by: Steffen Trumtrar --- .../devicetree/bindings/regulator/pfuze100.txt | 115 + drivers/regulator/Kconfig |7 + drivers/regulator/Makefile |1 + drivers/regulator

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' chil

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" >

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 v5] regulator: pfuze100: add pfuze100 regulator driver

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

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. >

[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 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 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 > > --- > > .../devicetree/bindings/regulator/pfuze100.txt |

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

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

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

[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

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

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

[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 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 { > > +

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, +

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 be

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

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

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

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

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

[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

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

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

[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

<    4   5   6   7   8   9