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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+* 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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
+++
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
...@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
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
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
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
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
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
/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
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 - 100 of 423 matches
Mail list logo