[PATCH V6 4/4] input: add onkey support to 88PM80X PMIC

2012-07-09 Thread Qiao Zhou
add onkey support to MARVELL 88PM80X PMIC. Signed-off-by: Qiao Zhou --- drivers/input/misc/88pm80x_onkey.c | 176 drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile|1 + 3 files changed, 187 insertions(+), 0 deletions

[PATCH V6 3/4] rtc: add rtc support to 88PM80X PMIC

2012-07-09 Thread Qiao Zhou
add rtc driver for MARVELL 88PM80X PMIC and enable rtc function. Signed-off-by: Qiao Zhou --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-88pm80x.c | 371 + 3 files changed, 382 insertions(+), 0 deletions

[PATCH V6 2/4] mfd: workaround: add companion chip in 88pm80x

2012-07-09 Thread Qiao Zhou
workaround for the purpose to let 805 access 800 i2c in some scenario. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm80x.c | 28 include/linux/mfd/88pm80x.h |1 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm80x.c b

[PATCH V6 1/4] mfd: support 88pm80x in 80x driver

2012-07-09 Thread Qiao Zhou
chip init, irq init/handle, mfd device register, including codec, headset/mic detect etc. the i2c operation of both 800 and 805 are via regmap, and 88pm80x-i2c exported a group of r/w bulk r/w and bits set API for facility. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm800.c | 593

[PATCH V6 0/4] add 88pm80x mfd driver

2012-07-09 Thread Qiao Zhou
upled and probed separately; 2, re-used the most of API for pm800 and pm805 per Arnd's comments; 3, use regmap_irq, instead of previous 88pm80x_irq_data per Mark's comments. use regmap_add_irq_chip, and remove previous 88pm80x irq handling. 4, remove callback function in rtc pdata per Arnd&#

Re: [PATCH 0/4 V5] add 88pm80x mfd driver

2012-07-09 Thread Qiao Zhou
On 07/09/2012 09:21 PM, Samuel Ortiz wrote: Hi Mark, On Mon, Jul 09, 2012 at 11:55:33AM +0100, Mark Brown wrote: On Mon, Jul 09, 2012 at 12:55:51PM +0200, Samuel Ortiz wrote: I applied the first 2 patches, I'd like to get an ACK from the respective maintainers for the rtc and the input ones.

[PATCH 4/4 V5] input: add onkey support to 88PM80X PMIC

2012-07-08 Thread Qiao Zhou
add onkey support to MARVELL 88PM80X PMIC. Signed-off-by: Qiao Zhou --- drivers/input/misc/88pm80x_onkey.c | 176 drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile|1 + 3 files changed, 187 insertions(+), 0 deletions

[PATCH 3/4 V5] rtc: add rtc support to 88PM80X PMIC

2012-07-08 Thread Qiao Zhou
add rtc driver for MARVELL 88PM80X PMIC and enable rtc function. Signed-off-by: Qiao Zhou --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-88pm80x.c | 371 + 3 files changed, 382 insertions(+), 0 deletions

[PATCH 2/4 V5] mfd: workaround: add companion chip in 88pm80x

2012-07-08 Thread Qiao Zhou
workaround for the purpose to let 805 access 800 i2c in some scenario. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm80x.c | 28 include/linux/mfd/88pm80x.h |1 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm80x.c b

[PATCH 0/4 V5] add 88pm80x mfd driver

2012-07-08 Thread Qiao Zhou
; 3, use regmap_irq, instead of previous 88pm80x_irq_data per Mark's comments. use regmap_add_irq_chip, and remove previous 88pm80x irq handling. 4, remove callback function in rtc pdata per Arnd's comments. 5, updated some coding style issue. Qiao Zhou (4): mfd: support 88pm80x in 80x

[PATCH 1/4 V5] mfd: support 88pm80x in 80x driver

2012-07-08 Thread Qiao Zhou
chip init, irq init/handle, mfd device register, including codec, headset/mic detect etc. the i2c operation of both 800 and 805 are via regmap, and 88pm80x-i2c exported a group of r/w bulk r/w and bits set API for facility. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm800.c | 593

[PATCH 4/4] input: add onkey support to 88PM80X PMIC

2012-07-08 Thread Qiao Zhou
add onkey support to MARVELL 88PM80X PMIC. Signed-off-by: Qiao Zhou --- drivers/input/misc/88pm80x_onkey.c | 176 drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile|1 + 3 files changed, 187 insertions(+), 0 deletions

[PATCH 0/4 V4] add 88pm80x mfd driver

2012-07-08 Thread Qiao Zhou
88pm80x_irq_data per Mark's comments. use regmap_add_irq_chip, and remove previous 88pm80x irq handling. 4, remove callback function in rtc pdata per Arnd's comments. 5, updated some coding style issue. Qiao Zhou (4): mfd: support 88pm80x in 80x driver mfd: workaround: add companion ch

[PATCH 3/4] rtc: add rtc support to 88PM80X PMIC

2012-07-08 Thread Qiao Zhou
add rtc driver for MARVELL 88PM80X PMIC and enable rtc function. Signed-off-by: Qiao Zhou --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-88pm80x.c | 371 + 3 files changed, 382 insertions(+), 0 deletions

[PATCH 2/4] mfd: workaround: add companion chip in 88pm80x

2012-07-08 Thread Qiao Zhou
workaround for the purpose to let 805 access 800 i2c in some scenario. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm80x.c | 28 include/linux/mfd/88pm80x.h |1 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm80x.c b

[PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-08 Thread Qiao Zhou
chip init, irq init/handle, mfd device register, including codec, headset/mic detect etc. the i2c operation of both 800 and 805 are via regmap, and 88pm80x-i2c exported a group of r/w bulk r/w and bits set API for facility. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm800.c | 593

[PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-05 Thread Qiao Zhou
805, such as chip init, irq init/handle, mfd device register, including codec, headset/mic detect etc. the i2c operation of both 800 and 805 are via regmap, and 88pm80x-i2c exported a group of r/w bulk r/w and bits set API for facility. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm800-core.c

[PATCH 3/4] rtc: add rtc support to 88PM80X PMIC

2012-07-05 Thread Qiao Zhou
add rtc driver for MARVELL 88PM80X PMIC and enable rtc function. Signed-off-by: Qiao Zhou --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-88pm80x.c | 371 + 3 files changed, 382 insertions(+), 0 deletions

[PATCH 4/4] input: add onkey support to 88PM80X PMIC

2012-07-05 Thread Qiao Zhou
add onkey support to MARVELL 88PM80X PMIC. Signed-off-by: Qiao Zhou --- drivers/input/misc/88pm80x_onkey.c | 176 drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile|1 + 3 files changed, 187 insertions(+), 0 deletions

[PATCH 2/4] mfd: workaround: add companion chip in 88pm80x

2012-07-05 Thread Qiao Zhou
workaround for the purpose to let 805 access 800 i2c in some scenario. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm80x-i2c.c | 28 include/linux/mfd/88pm80x.h |1 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm80x-i2c.c b

[PATCH 0/4 V4] add 88pm80x mfd driver

2012-07-05 Thread Qiao Zhou
tead of previous 88pm80x_irq_data per Mark's comments. use regmap_add_irq_chip, and remove previous 88pm80x irq handling. 4, remove callback function in rtc pdata per Arnd's comments. 5, updated some coding style issue. Qiao Zhou (4): mfd: support 88pm80x in 80x driver mfd: workaround: add companion

Re: [PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-05 Thread Qiao Zhou
On 07/05/2012 08:06 PM, Arnd Bergmann wrote: On Thursday 05 July 2012, Qiao Zhou wrote: + +static const struct i2c_device_id pm80x_id_table[] = { + {"88PM800", CHIP_PM800}, + {"88PM805", CHIP_PM805}, +}; +MODULE_DEVICE_TABLE(i2c, pm80x_id_table); The point of

[PATCH 4/4] input: add onkey support to 88PM80X PMIC

2012-07-05 Thread Qiao Zhou
add onkey support to MARVELL 88PM80X PMIC. Signed-off-by: Qiao Zhou --- drivers/input/misc/88pm80x_onkey.c | 190 drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile|1 + 3 files changed, 201 insertions(+), 0 deletions

[PATCH 3/4] rtc: add rtc support to 88PM80X PMIC

2012-07-05 Thread Qiao Zhou
add rtc driver for MARVELL 88PM80X PMIC and enable rtc function. Signed-off-by: Qiao Zhou --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-88pm80x.c | 366 + 3 files changed, 377 insertions(+), 0 deletions

[PATCH 2/4] mfd: workaround: add companion chip in 88pm80x

2012-07-05 Thread Qiao Zhou
workaround for the purpose to let 805 access 800 i2c in some scenario. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm80x-i2c.c | 28 include/linux/mfd/88pm80x.h |1 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm80x-i2c.c b

[PATCH 0/4 V3] add 88pm80x mfd driver

2012-07-05 Thread Qiao Zhou
mments; 3, use regmap_irq, instead of previous 88pm80x_irq_data per Mark's comments. use regmap_add_irq_chip, and remove previous 88pm80x irq handling. 4, remove callback function in rtc pdata per Arnd's comments. 5, updated some coding style issue. Qiao Zhou (4): mfd: support 88pm80x in 80x drive

[PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-05 Thread Qiao Zhou
805, such as chip init, irq init/handle, mfd device register, including codec, headset/mic detect etc. the i2c operation of both 800 and 805 are via regmap, and 88pm80x-i2c exported a group of r/w bulk r/w and bits set API for facility. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm800-core.c

RE: [PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-04 Thread Qiao Zhou
> On Wed, Jul 04, 2012 at 03:27:13PM +, Arnd Bergmann wrote: > > On Wednesday 04 July 2012, Qiao Zhou wrote: >> > > > >On the other hand, I think it probably makes sense to drop the > > > >irq_base member in this struct and rely on irq domains to allocat

RE: [PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-04 Thread Qiao Zhou
> On Wednesday 04 July 2012, Qiao Zhou wrote: > > >> +ret = mfd_add_devices(chip->dev, 0, &onkey_devs[0], > > >> + ARRAY_SIZE(onkey_devs), > > >> &onkey_resources[0], > > >> +

RE: [PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-04 Thread Qiao Zhou
>> +ret = mfd_add_devices(chip->dev, 0, &onkey_devs[0], >> + ARRAY_SIZE(onkey_devs), &onkey_resources[0], >> + chip->irq_base); > >According to what I discussed with Mark in the previous version, I think you >need to pass 0 instead of chip->irq_

[PATCH 4/4] input: add onkey support to 88PM80X PMIC

2012-07-04 Thread Qiao Zhou
add onkey support to MARVELL 88PM80X PMIC. Signed-off-by: Qiao Zhou --- drivers/input/misc/88pm80x_onkey.c | 190 drivers/input/misc/Kconfig | 10 ++ drivers/input/misc/Makefile|1 + 3 files changed, 201 insertions(+), 0 deletions

[PATCH 1/4] mfd: support 88pm80x in 80x driver

2012-07-04 Thread Qiao Zhou
805, such as chip init, irq init/handle, mfd device register, including codec, headset/mic detect etc. the i2c operation of both 800 and 805 are via regmap. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm800-core.c | 492 drivers/mfd/88pm805-core.c

[PATCH 3/4] rtc: add rtc support to 88PM80X PMIC

2012-07-04 Thread Qiao Zhou
add rtc driver for MARVELL 88PM80X PMIC and enable rtc function. Signed-off-by: Qiao Zhou --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-88pm80x.c | 366 + 3 files changed, 377 insertions(+), 0 deletions

[PATCH 2/4] mfd: workaround: add companion chip in 88pm80x

2012-07-04 Thread Qiao Zhou
workaround for the purpose to let 805 access 800 i2c in some scenario. Signed-off-by: Qiao Zhou --- drivers/mfd/88pm80x-i2c.c | 28 include/linux/mfd/88pm80x.h |1 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm80x-i2c.c b

[PATCH 0/4 V2] add 88pm80x mfd driver

2012-07-04 Thread Qiao Zhou
ost of API for pm800 and pm805 per Arnd's comments; 3, use regmap_irq, instead of previous 88pm80x_irq_data per Mark's comments. use regmap_add_irq_chip, and remove previous 88pm80x irq handling. 4, remove callback function in rtc pdata per Arnd's comments. 5, updated some codin

Re: [PATCH 1/3] mfd: support 88pm80x in 80x driver

2012-07-02 Thread Qiao Zhou
On 07/02/2012 11:58 PM, Arnd Bergmann wrote: On Monday 02 July 2012, Qiao Zhou wrote: On 07/02/2012 06:12 PM, Mark Brown wrote: On Mon, Jul 02, 2012 at 06:09:57PM +0800, Qiao Zhou wrote: On 07/02/2012 06:03 PM, Mark Brown wrote: What do you mean by pages? regmap has paging support which