[PATCH 0/3] pwm: pxa: bug fix and device tree support

2013-04-16 Thread Chao Xie
The patches fix some bugs 1. pwm-pxa driver is shared by ARCH_PXA and ARCH_MMP 2. use module_platform_driver for driver register The patches also add device tree support for pwm. Chao Xie (3): pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA pwm: pxa: use module_platform_driver

[PATCH 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA

2013-04-16 Thread Chao Xie
the pwm driver is not only used by ARCH_PXA but also ARCH_MMP Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index e513cd9..ff79632 100644 --- a/drivers/pwm

[PATCH 3/3] pwm: pxa: add device tree support

2013-04-16 Thread Chao Xie
Add the deice tree support for pwm-pxa. Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index eafca4a..345aa83 100644

[PATCH 2/3] pwm: pxa: use module_platform_driver for driver register

2013-04-16 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index f32fc4e..eafca4a 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c

[PATCH V2 1/3] pwm: pxa: ARCH_MMP share same pwm driver with ARCH_PXA

2013-04-19 Thread Chao Xie
the pwm driver is not only used by ARCH_PXA but also ARCH_MMP Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 115b644..9ec4040 100644 --- a/drivers/pwm

[PATCH V2 3/3] pwm: pxa: add device tree support

2013-04-19 Thread Chao Xie
Add the deice tree support for pwm-pxa. Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 55 +++- 1 files changed, 53 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index aa4bea7

[PATCH V2 0/3] pwm: pxa: bug fix and device tree support

2013-04-19 Thread Chao Xie
The patches fix some bugs 1. pwm-pxa driver is shared by ARCH_PXA and ARCH_MMP 2. use module_platform_driver for driver register The patches also add device tree support for pwm. V2-V1: remove the redundant initialization. fix device tree support bugs. rebase to for-next Chao Xie (3

[PATCH V2 2/3] pwm: pxa: use module_platform_driver for driver register

2013-04-19 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- drivers/pwm/pwm-pxa.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index dee6ab55..aa4bea7 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Chao Xie
On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie wrote: The original sa1100_rtc_open/sa1100_rtc_release will be called when

Re: [PATCH 2/4] rtc: pxa: fix rtc caculation issue

2012-12-02 Thread Chao Xie
On Fri, Nov 30, 2012 at 4:04 AM, Robert Jarzmik robert.jarz...@free.fr wrote: Chao Xie chao@marvell.com writes: Hi Chao Xie, First of all, could you please send patches from rtc-pxa to me also, as I'm maintaining that driver ? Second point, the original design of the driver relies

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Chao Xie
On Mon, Dec 3, 2012 at 9:39 AM, Chao Xie xiechao.m...@gmail.com wrote: On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-02 Thread Chao Xie
On Mon, Dec 3, 2012 at 1:35 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: On Mon, Dec 3, 2012 at 10:53 AM, Chao Xie xiechao.m...@gmail.com wrote: On Mon, Dec 3, 2012 at 9:39 AM, Chao Xie xiechao.m...@gmail.com wrote: On Fri, Nov 30, 2012 at 3:04 PM, Haojian Zhuang haojian.zhu...@gmail.com

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-12-03 Thread Chao Xie
On Mon, Dec 3, 2012 at 5:48 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Mon, Dec 03, 2012 at 10:53:07AM +0800, Chao Xie wrote: I want to correct what i said. For the irq register/unregister i think can be done at open/release. But for clock enable/disable, i do not think so

Re: [PATCH 2/4] rtc: pxa: fix rtc caculation issue

2012-12-03 Thread Chao Xie
On Mon, Dec 3, 2012 at 10:40 AM, Chao Xie xiechao.m...@gmail.com wrote: On Fri, Nov 30, 2012 at 4:04 AM, Robert Jarzmik robert.jarz...@free.fr wrote: Chao Xie chao@marvell.com writes: Hi Chao Xie, First of all, could you please send patches from rtc-pxa to me also, as I'm maintaining

[V2 PATCH 1/2] rtc: sa1100: move clock enable/disable to probe/remove

2012-12-04 Thread Chao Xie
The original sa1100_rtc_open/sa1100_rtc_release will be called when the /dev/rtc0 is opened or closed. In fact, these two functions will enable/disable the clock. Disabling clock will make rtc not work. So only enable/disable clock when probe/remove the device. Signed-off-by: Chao Xie chao

[V2 PATCH 2/2] rtc: pxa: add pxa95x rtc support

2012-12-04 Thread Chao Xie
the pxa95x rtc need access PBSR register before write to RTTR, RCNR, RDCR, and RYCR registers. Signed-off-by: Chao Xie chao@marvell.com --- drivers/rtc/rtc-pxa.c | 100 +--- 1 files changed, 85 insertions(+), 15 deletions(-) diff --git a/drivers

Re: [PATCH V5 0/5] clk: mmp: add clock framework for mmp

2012-09-10 Thread Chao Xie
On Thu, Aug 30, 2012 at 2:26 AM, Mike Turquette mturque...@linaro.org wrote: Quoting Chao Xie (2012-08-26 18:19:02) On Sat, Aug 25, 2012 at 8:21 AM, Mike Turquette mturque...@linaro.org wrote: Quoting Chao Xie (2012-08-19 19:55:10) From: Chao Xie chao@marvell.com arch/arm/mach-mmp

[PATCH] i2c: pxa: fix the clock APIs

2012-07-31 Thread Chao Xie
From: Chao Xie chao@marvell.com Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/i2c/busses/i2c-pxa.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index a997c7d..0a57f3e 100644

[PATCH] mmc: sdhci: fix the clock APIs for pxav2 and pxav3 driver

2012-07-31 Thread Chao Xie
From: Chao Xie chao@marvell.com Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/mmc/host/sdhci-pxav2.c |6 +++--- drivers/mmc/host/sdhci-pxav3.c |8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host

[PATCH 1/5] clk: mmp: add mmp specific clocks

2012-07-31 Thread Chao Xie
From: Chao Xie chao@marvell.com add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 141

[PATCH 2/5] clk: mmp: add clock definition for pxa168

2012-07-31 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa168 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 268 ++ 2 files changed, 270 insertions(+), 0 deletions

[PATCH 4/5] clk: mmp: add clock definition for mmp2

2012-07-31 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for mmp2 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 337 2 files changed, 338 insertions(+), 0 deletions(-) create

[PATCH 3/5] clk: mmp: add clock definition for pxa910

2012-07-31 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa910 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 249 ++ 2 files changed, 250 insertions(+), 0 deletions

[PATCH V2 0/5] clk: mmp: add clock framework for mmp

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com v1-v2: replace __raw_xxx with xxx_relax use ioremap to remap the registers. Finaly it will use device tree to get the physical address. do not use macro to register clocks, and directly call the functions. Chao Xie (5): clk: mmp: add mmp specific clocks

[PATCH V2 1/5] clk: mmp: add mmp specific clocks

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 152

[PATCH V2 5/5] arm: mmp: make all SOCs use common clock by default

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Signed-off-by: Chao Xie xiechao.m...@gmail.com --- arch/arm/mach-mmp/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..d697d07 100644 --- a/arch/arm/mach-mmp

[PATCH V2 2/5] clk: mmp: add clock definition for pxa168

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa168 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 414 ++ 2 files changed, 416 insertions(+), 0 deletions

[PATCH V2 4/5] clk: mmp: add clock definition for mmp2

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for mmp2 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 544 2 files changed, 545 insertions(+), 0 deletions(-) create

[PATCH V2 3/5] clk: mmp: add clock definition for pxa910

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa910 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 361 ++ 2 files changed, 362 insertions(+), 0 deletions

[PATCH V3 0/5] clk: mmp: add clock framework for mmp

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com v1-v2: replace __raw_xxx with xxx_relax use ioremap to remap the registers. Finaly it will use device tree to get the physical address. do not use macro to register clocks, and directly call the functions. v2-v3: pxa910 will have APB extension clock, so some

[PATCH V3 1/5] clk: mmp: add mmp specific clocks

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 152

[PATCH V3 2/5] clk: mmp: add clock definition for pxa168

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa168 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 414 ++ 2 files changed, 416 insertions(+), 0 deletions

[PATCH V3 3/5] clk: mmp: add clock definition for pxa910

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa910 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 380 ++ 2 files changed, 381 insertions(+), 0 deletions

[PATCH V3 4/5] clk: mmp: add clock definition for mmp2

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for mmp2 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 544 2 files changed, 545 insertions(+), 0 deletions(-) create

[PATCH V3 5/5] arm: mmp: make all SOCs use common clock by default

2012-08-15 Thread Chao Xie
From: Chao Xie chao@marvell.com Signed-off-by: Chao Xie xiechao.m...@gmail.com --- arch/arm/mach-mmp/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..d697d07 100644 --- a/arch/arm/mach-mmp

Re: [PATCH V3 3/5] clk: mmp: add clock definition for pxa910

2012-08-16 Thread Chao Xie
On Thu, Aug 16, 2012 at 3:17 PM, Arnd Bergmann a...@arndb.de wrote: On Thursday 16 August 2012, Chao Xie wrote: +enum { + clk32, vctcxo, pll1, pll1_2, pll1_4, pll1_8, pll1_16, pll1_6, pll1_12, + pll1_24, pll1_48, pll1_96, pll1_13, pll1_13_1_5, pll1_2_1_5, + pll1_3_16, uart_pll

Re: FW: [PATCH V5 0/5] clk: mmp: add clock framework for mmp

2012-08-21 Thread Chao Xie
-Original Message- From: Arnd Bergmann [mailto:a...@arndb.de] Sent: Monday, August 20, 2012 1:39 PM To: Chao Xie Cc: haojian.zhu...@gmail.com; mturque...@linaro.org; viresh.li...@gmail.com; s.ha...@pengutronix.de; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org

Re: FW: [PATCH V5 0/5] clk: mmp: add clock framework for mmp

2012-08-24 Thread Chao Xie
hi, Mike Can you help to review and merge these patches? On Wed, Aug 22, 2012 at 4:00 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: On Wed, Aug 22, 2012 at 2:41 PM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 22 August 2012, Chao Xie wrote: Reviewed-by: Arnd Bergmann a...@arndb.de

Re: [PATCH V5 0/5] clk: mmp: add clock framework for mmp

2012-08-26 Thread Chao Xie
On Sat, Aug 25, 2012 at 8:21 AM, Mike Turquette mturque...@linaro.org wrote: Quoting Chao Xie (2012-08-19 19:55:10) From: Chao Xie chao@marvell.com arch/arm/mach-mmp/Kconfig|3 + drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |9 + drivers/clk/mmp/clk

Re: [PATCH 2/5] clk: mmp: add clock definition for pxa168

2012-08-02 Thread Chao Xie
On Tue, Jul 31, 2012 at 7:54 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 31 July 2012, Chao Xie wrote: +#define APBC_RTC APBC_REG(0x28) +#define APBC_TWSI0 APBC_REG(0x2c) +#define APBC_KPC APBC_REG(0x30) +#define APBC_UART0 APBC_REG(0x00) +#define APBC_UART1

[PATCH v4 0/5] clk: mmp: add clock framework for mmp

2012-08-16 Thread Chao Xie
From: Chao Xie chao@marvell.com v1-v2: replace __raw_xxx with xxx_relax use ioremap to remap the registers. Finaly it will use device tree to get the physical address. do not use macro to register clocks, and directly call the functions. v2-v3: pxa910 will have APB extension clock, so some

[PATCH V4 2/5] clk: mmp: add clock definition for pxa168

2012-08-16 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa168 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 402 ++ 2 files changed, 404 insertions(+), 0 deletions

[PATCH V4 1/5] clk: mmp: add mmp specific clocks

2012-08-17 Thread Chao Xie
From: Chao Xie chao@marvell.com add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 152

[PATCH V4 3/5] clk: mmp: add clock definition for pxa910

2012-08-17 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa910 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 369 ++ 2 files changed, 370 insertions(+), 0 deletions

[PATCH V4 4/5] clk: mmp: add clock definition for mmp2

2012-08-17 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for mmp2 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 527 2 files changed, 528 insertions(+), 0 deletions(-) create

[PATCH V4 5/5] arm: mmp: make all SOCs use common clock by default

2012-08-17 Thread Chao Xie
From: Chao Xie chao@marvell.com Signed-off-by: Chao Xie xiechao.m...@gmail.com --- arch/arm/mach-mmp/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..d697d07 100644 --- a/arch/arm/mach-mmp

Re: [PATCH V4 2/5] clk: mmp: add clock definition for pxa168

2012-08-17 Thread Chao Xie
On Fri, Aug 17, 2012 at 7:34 PM, Arnd Bergmann a...@arndb.de wrote: On Friday 17 August 2012, Chao Xie wrote: +void __init pxa168_clk_init(void) +{ + struct clk *clk; + struct clk *uart_pll; + void __iomem *mpmu_base; + void __iomem *apmu_base; + void __iomem

[PATCH V5 0/5] clk: mmp: add clock framework for mmp

2012-08-19 Thread Chao Xie
From: Chao Xie chao@marvell.com v1-v2: replace __raw_xxx with xxx_relax use ioremap to remap the registers. Finaly it will use device tree to get the physical address. do not use macro to register clocks, and directly call the functions. v2-v3: pxa910 will have APB extension clock, so some

[PATCH V5 4/5] clk: mmp: add clock definition for mmp2

2012-08-19 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for mmp2 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-mmp2.c | 449 2 files changed, 450 insertions(+), 0 deletions(-) create

[PATCH V5 2/5] clk: mmp: add clock definition for pxa168

2012-08-19 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa168 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |2 + drivers/clk/mmp/clk-pxa168.c | 346 ++ 2 files changed, 348 insertions(+), 0 deletions

[PATCH V5 1/5] clk: mmp: add mmp specific clocks

2012-08-19 Thread Chao Xie
From: Chao Xie chao@marvell.com add mmp specific clocks including apbc cloks, apmu clocks, and pll2, fraction clocks Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/Makefile |3 + drivers/clk/mmp/Makefile |5 ++ drivers/clk/mmp/clk-apbc.c | 152

[PATCH V5 3/5] clk: mmp: add clock definition for pxa910

2012-08-19 Thread Chao Xie
From: Chao Xie chao@marvell.com Initialize the clocks for pxa910 Signed-off-by: Chao Xie xiechao.m...@gmail.com --- drivers/clk/mmp/Makefile |1 + drivers/clk/mmp/clk-pxa910.c | 320 ++ 2 files changed, 321 insertions(+), 0 deletions

[PATCH V5 5/5] arm: mmp: make all SOCs use common clock by default

2012-08-19 Thread Chao Xie
From: Chao Xie chao@marvell.com Signed-off-by: Chao Xie xiechao.m...@gmail.com --- arch/arm/mach-mmp/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..d697d07 100644 --- a/arch/arm/mach-mmp

Re: [V2 PATCH 2/2] rtc: pxa: add pxa95x rtc support

2012-12-05 Thread Chao Xie
On Wed, Dec 5, 2012 at 3:04 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: On Wed, Dec 5, 2012 at 2:49 PM, Chao Xie chao@marvell.com wrote: the pxa95x rtc need access PBSR register before write to RTTR, RCNR, RDCR, and RYCR registers. Signed-off-by: Chao Xie chao@marvell.com

common clock framwork: clk_set_rate issue

2012-12-05 Thread Chao Xie
hi When develop the clk drivers for SOCs based on common clock framework. I met a issue. For example there is a uart device, it's function clock comes from a divider, and the divider's parent is a mux. It means MUX -- DIV -- UART As we know that UART can work at low baudrate for a terminal,

[PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-11-28 Thread Chao Xie
indepent of open/close the rtc device. So only enable clock and register the irqs when probe the device, and disable clock and unregister the irqs when remove the device. Signed-off-by: Chao Xie chao@marvell.com --- drivers/rtc/rtc-sa1100.c |9 +++-- 1 files changed, 7 insertions(+), 2

[PATCH 2/4] rtc: pxa: fix rtc caculation issue

2012-11-28 Thread Chao Xie
The original calculation does not take care of week-of-month and day-of-week. It will make rdar/rdcr not matched when set the alarm. Signed-off-by: Chao Xie chao@marvell.com --- drivers/rtc/rtc-pxa.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 3/4] rtc: pxa: add pxa95x rtc support

2012-11-28 Thread Chao Xie
the pxa95x rtc need access PBSR register before write to RTTR, RCNR, RDCR, and RYCR registers. Signed-off-by: Chao Xie chao@marvell.com --- drivers/rtc/rtc-pxa.c | 97 +++-- 1 files changed, 85 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCH 4/4] rtc: pxa: request rtc irqs when probe/remove the device

2012-11-28 Thread Chao Xie
. So only register the irqs when probe the device, and disable clock and unregister the irqs when remove the device. Signed-off-by: Chao Xie chao@marvell.com --- drivers/rtc/rtc-pxa.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-pxa.c b

Re: common clock framwork: clk_set_rate issue

2012-12-17 Thread Chao Xie
On Tue, Dec 18, 2012 at 4:19 AM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Dec 06, 2012 at 10:52:03AM +0800, Chao Xie wrote: hi When develop the clk drivers for SOCs based on common clock framework. I met a issue. For example there is a uart device, it's function clock comes from

Re: common clock framwork: clk_set_rate issue

2012-12-18 Thread Chao Xie
On Tue, Dec 18, 2012 at 3:47 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Dec 18, 2012 at 10:19:21AM +0800, Chao Xie wrote: On Tue, Dec 18, 2012 at 4:19 AM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Dec 06, 2012 at 10:52:03AM +0800, Chao Xie wrote: hi When develop

[PATCH 3/4] mfd: 88pm800: add device tree support

2013-07-29 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- Documentation/devicetree/bindings/mfd/88pm800.c | 55 +++ drivers/mfd/88pm800.c | 55 +++ 2 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 Documentation

[PATCH 0/4] mfd: 88pn80x: bug fix and device tree support

2013-07-29 Thread Chao Xie
tree support Add device tree support for 88pm800 and 88pm805 Chao Xie (4): mfd: 88pm800: Fix the bug that pdata may be NULL mfd: 88pm805: Fix the bug that pdata may be NULL mfd: 88pm800: add device tree support mfd: 88pm805: add device tree support Documentation/devicetree/bindings/mfd

[PATCH 2/4] mfd: 88pm805: Fix the bug that pdata may be NULL

2013-07-29 Thread Chao Xie
User pass platform data to device, and platform data may be NULL. Add the check for pdata. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm805.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 5216022

[PATCH 4/4] mfd: 88pm805: add device tree support

2013-07-29 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- Documentation/devicetree/bindings/mfd/88pm805.c | 15 +++ drivers/mfd/88pm805.c |8 2 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd

[PATCH 1/4] mfd: 88pm800: Fix the bug that pdata may be NULL

2013-07-29 Thread Chao Xie
User pass platform data to device, and platform data may be NULL. Add the check for pdata. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index

Re: [PATCH 1/2] mfd: 88pm800: Fix the bug that pdata may be NULL

2013-08-27 Thread Chao Xie
On Tue, Aug 20, 2013 at 9:40 AM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Xie, On Sun, Aug 18, 2013 at 09:27:54PM -0400, Chao Xie wrote: User pass platform data to device, and platform data may be NULL. In which case do you get that ? With DT ? Should rtc_init fail when pdata is NULL

[PATCH 2/2] mfd: 88pm805: Fix the bug that pdata may be NULL

2013-08-18 Thread Chao Xie
User pass platform data to device, and platform data may be NULL. Add the check for pdata. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm805.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 5216022

[PATCH 1/2] mfd: 88pm800: Fix the bug that pdata may be NULL

2013-08-18 Thread Chao Xie
User pass platform data to device, and platform data may be NULL. Add the check for pdata. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index

[PATCH 0/2] mfd: 88pm8xx: platform data bug fix

2013-08-18 Thread Chao Xie
The patches fix the bug that pdata may be NULL when driver uses it. Chao Xie (2): mfd: 88pm800: Fix the bug that pdata may be NULL mfd: 88pm805: Fix the bug that pdata may be NULL drivers/mfd/88pm800.c | 10 ++ drivers/mfd/88pm805.c |2 +- 2 files changed, 7 insertions(+), 5

[PATCH 4/4] mfd: 88pm805: add device tree support

2013-08-14 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- Documentation/devicetree/bindings/mfd/88pm805.c | 15 +++ drivers/mfd/88pm805.c |8 2 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd

[PATCH 1/4] mfd: 88pm800: Fix the bug that pdata may be NULL

2013-08-14 Thread Chao Xie
User pass platform data to device, and platform data may be NULL. Add the check for pdata. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index

[PATCH 2/4] mfd: 88pm805: Fix the bug that pdata may be NULL

2013-08-14 Thread Chao Xie
User pass platform data to device, and platform data may be NULL. Add the check for pdata. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm805.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 5216022

[PATCH 0/4] mfd: 88pn80x: bug fix and device tree support

2013-08-14 Thread Chao Xie
tree support Add device tree support for 88pm800 and 88pm805 Chao Xie (4): mfd: 88pm800: Fix the bug that pdata may be NULL mfd: 88pm805: Fix the bug that pdata may be NULL mfd: 88pm800: add device tree support mfd: 88pm805: add device tree support Documentation/devicetree/bindings/mfd

[PATCH 3/4] mfd: 88pm800: add device tree support

2013-08-14 Thread Chao Xie
Signed-off-by: Chao Xie chao@marvell.com --- Documentation/devicetree/bindings/mfd/88pm800.c | 55 +++ drivers/mfd/88pm800.c | 55 +++ 2 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 Documentation

Re: [PATCH 3/4] mfd: 88pm800: add device tree support

2013-08-14 Thread Chao Xie
+* Marvell 88PM800 Power Management IC + +Required parent device properties: +- compatible : marvell,88pm800 +- reg : the I2C slave address for the 88pm800 chip +- interrupts : IRQ line for the 88pm800 chip +- interrupt-controller: describes the 88pm800 as an interrupt controller (has its

Re: [PATCH 3/4] mfd: 88pm800: add device tree support

2013-08-15 Thread Chao Xie
On Thu, Aug 15, 2013 at 6:07 PM, Lee Jones lee.jo...@linaro.org wrote: +Optional parent device properties: +- marvell,88pm800-irq-write-clear: inicates whether interrupt status is cleared by write +- marvell,88pm800-battery-detection: indicats whether need 88pm800 to support battery

[PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code for these controllers so they do not need do it in its own host controller driver. Signed-off-by: Chao Xie chao@marvell.com --- drivers/usb/core

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
On Wed, Jun 19, 2013 at 10:48 AM, Greg KH gre...@linuxfoundation.org wrote: On Tue, Jun 18, 2013 at 10:31:20PM -0400, Chao Xie wrote: Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code

Re: [PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-19 Thread Chao Xie
On Wed, Jun 19, 2013 at 4:22 PM, Marek Vasut ma...@denx.de wrote: Dear Chao Xie, Signed-off-by: Chao Xie chao@marvell.com --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 + drivers/input/keyboard/pxa27x_keypad.c | 232 +++- 2 files changed

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-19 Thread Chao Xie
On Wed, Jun 19, 2013 at 3:51 PM, Roger Quadros rog...@ti.com wrote: Hi Chao, On 06/19/2013 05:31 AM, Chao Xie wrote: Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code for these controllers so

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-19 Thread Chao Xie
On Tue, Jun 18, 2013 at 5:34 AM, Arnd Bergmann a...@arndb.de wrote: On Monday 17 June 2013, Chao Xie wrote: On Fri, Jun 14, 2013 at 8:56 PM, Arnd Bergmann a...@arndb.de wrote: On Friday 14 June 2013 17:15:33 Chao Xie wrote: On Mon, Jun 10, 2013 at 4:35 PM, Arnd Bergmann a...@arndb.de wrote

Re: [PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-19 Thread Chao Xie
On Wed, Jun 19, 2013 at 7:13 PM, Gerhard Sittig g...@denx.de wrote: On Wed, Jun 19, 2013 at 16:38 +0800, Chao Xie wrote: On Wed, Jun 19, 2013 at 4:22 PM, Marek Vasut ma...@denx.de wrote: Signed-off-by: Chao Xie chao@marvell.com [ ... ] +++ b/Documentation/devicetree/bindings/input

RE: linux-next: build failure after merge of the final tree (mfd tree related)

2013-06-19 Thread Chao Xie
-Original Message- From: Samuel Ortiz [mailto:sa...@linux.intel.com] Sent: Wednesday, June 19, 2013 4:25 PM To: Stephen Rothwell Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Chao Xie; Yi Zhang Subject: Re: linux-next: build failure after merge of the final tree

[PATCH V2] regulator: 88pm800: add regulator driver for 88pm800

2013-06-20 Thread Chao Xie
Add the regulator driver for PMIC 88pm800 including device tree support. 88pm800 is an I2C-based power-management IC containing voltage regulators, a real-time clock, and some general purpose ADC devices, Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Chao Xie chao@marvell.com

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-20 Thread Chao Xie
On Fri, Jun 21, 2013 at 1:25 AM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 20 Jun 2013, Felipe Balbi wrote: In fact, the PHY setting and handling is related to platform or SOC, and for different SOC they can have same EHCI HCD but they PHY handling can be different. Omap'a case

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-20 Thread Chao Xie
correct for irq. irq number is get by gludriver, while irq is requested by EHCO HCD. On Fri, Jun 21, 2013 at 9:07 AM, Chao Xie xiechao.m...@gmail.com wrote: On Fri, Jun 21, 2013 at 1:25 AM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 20 Jun 2013, Felipe Balbi wrote: In fact, the PHY

[PATCH V4] regulator: 88pm800: add regulator driver for 88pm800

2013-07-17 Thread Chao Xie
Add the regulator driver for PMIC 88pm800 including device tree support. 88pm800 is an I2C-based power-management IC containing voltage regulators, a real-time clock, and some general purpose ADC devices, Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Chao Xie chao@marvell.com

Re: [patch 09/26] arm: mmp: Remove pointless fiddling with irq internals

2014-02-23 Thread Chao Xie
On Mon, Feb 24, 2014 at 7:17 AM, Uwe Kleine-König u.kleine-koe...@pengutronix.de wrote: Hi Thomas, On Sun, Feb 23, 2014 at 09:40:13PM -, Thomas Gleixner wrote: The pm-mmp2 and pm-pxa910 power management related irq_set_wake callbacks fiddle pointlessly with the irq actions for no reason

Re: [patch 09/26] arm: mmp: Remove pointless fiddling with irq internals

2014-02-26 Thread Chao Xie
On Mon, Feb 24, 2014 at 7:31 PM, Thomas Gleixner t...@linutronix.de wrote: On Mon, 24 Feb 2014, Haojian Zhuang wrote: On Mon, Feb 24, 2014 at 2:07 PM, Chao Xie xiechao.m...@gmail.com wrote: On Mon, Feb 24, 2014 at 7:17 AM, Uwe Kleine-König u.kleine-koe...@pengutronix.de wrote: Hi Thomas

Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-07 Thread Chao Xie
hi, Arnd Thanks for your review. On Fri, Jun 7, 2013 at 12:26 AM, Arnd Bergmann a...@arndb.de wrote: On Thursday 06 June 2013, Neil Zhang wrote: diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index ebdda83..0955191 100644 --- a/arch/arm/mach-mmp/Kconfig +++

Re: [PATCH V2 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-06-12 Thread Chao Xie
hi, Dmitry What are the status for these patches? Thanks. On Wed, May 15, 2013 at 2:40 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: Hi Chao, On Mon, May 13, 2013 at 04:02:07PM +0800, Chao Xie wrote: hi, dmitry What is your idea about these patches? Do i need add someone else

[PATCH V2 4/9] mfd: 88pm800/88pm805: remove IRQF_TRIGGER_FALLING flag

2013-06-13 Thread Chao Xie
...@marvell.com Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index cca63f2..d2951d7 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers

[PATCH V2 3/9] mfd: 88pm800: fix for mask_invert

2013-06-13 Thread Chao Xie
mask_invert must be set. Or interrupt cannot be cleared. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 0801049..cca63f2 100644 --- a/drivers/mfd

[PATCH V2 5/9] mfd: 88pm800: remove the power and gpadc page addr from platform data

2013-06-13 Thread Chao Xie
88pm800 has two addtional pages - power and gpadc. The address of the pages depends on the address of 88pm800. So do not need pass the address of the power and gpadc in platform data. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |5 +++-- include/linux/mfd

[PATCH V2 2/9] mfd: 88pm80x: fix driver name for 88pm800 and 88pm805

2013-06-13 Thread Chao Xie
88pm800 has same driver name as 88pm805. Fix it. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c |2 +- drivers/mfd/88pm805.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index b2f9f0f..0801049

[PATCH V2 8/9] mfd: 88pm800: enhance sub devices initialization

2013-06-13 Thread Chao Xie
Separate the devices initialization into different functions. It makes the probe function clearly. Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 61 +--- 1 files changed, 42 insertions(+), 19 deletions(-) diff --git

[PATCH V2 6/9] mfd: 88pm800: fixes error handling for sub pages probe/remove

2013-06-13 Thread Chao Xie
pm800_pages_init and pm800_pages_exit are called by pm800_probe. Change the code to enhance error handling and remove unused code at pm800_pages_init/exit and pm800_probe. Signed-off-by: Yi Zhang yizh...@marvell.com Signed-off-by: Chao Xie chao@marvell.com --- drivers/mfd/88pm800.c | 80

[PATCH V2 0/9] mfd: 88pm80x: bug fixes and enhancement

2013-06-13 Thread Chao Xie
/88pm805: remove IRQF_TRIGGER_FALLING flag Other patches are new. Chao Xie (7): mfd: 88pm80x: fix driver name for 88pm800 and 88pm805 mfd: 88pm800: fix for mask_invert mfd: 88pm800: remove the power and gpadc page addr from platform data mfd: 88pm800: fixes error handling for sub pages

[PATCH V2 7/9] mfd: 88pm80x: Changes chip id definition and detection

2013-06-13 Thread Chao Xie
Change the chip id definition and detection. It brings the benefits 1. do not need add PM800_CHIP_XXX for the coming revision. 2. do not need pass driver_data in i2c_device_id because we can distinguish the chips by CHIP_ID register. Signed-off-by: Chao Xie chao@marvell.com --- drivers

  1   2   3   4   5   >