Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-12 Thread Haojian Zhuang
On Fri, Jul 12, 2013 at 11:10 PM, Daniel Drake d...@laptop.org wrote: On Thu, Jul 11, 2013 at 5:54 PM, Haojian Zhuang haojian.zhu...@gmail.com wrote: Well, Daniel Drake spoke up for OLPC. Does that count? We don't know they used DT on Marvell MMP2/MMP3. So they don't have DTS file in kernel

Re: [PATCH V3 2/3] clocksource: mmp: support CLOCKSOURCE OF DECLARE

2013-07-11 Thread Haojian Zhuang
On Thu, Jul 11, 2013 at 7:23 PM, Neil Zhang zhan...@marvell.com wrote: Haojian, -Original Message- From: Haojian Zhuang [mailto:haojian.zhu...@gmail.com] Sent: 2013年7月10日 13:59 To: Arnd Bergmann Cc: Thomas Petazzoni; Neil Zhang; Grant Likely; devicetree-discuss@lists.ozlabs.org

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-11 Thread Haojian Zhuang
On Thu, Jul 11, 2013 at 5:50 AM, Jason Cooper ja...@lakedaemon.net wrote: On Wed, Jul 10, 2013 at 10:08:50PM +0800, Haojian Zhuang wrote: On Wed, Jul 10, 2013 at 8:24 PM, Jason Cooper ja...@lakedaemon.net wrote: On Wed, Jul 10, 2013 at 04:19:46PM +0800, Haojian Zhuang wrote: On Tue, Jul 9

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-10 Thread Haojian Zhuang
On Tue, Jul 9, 2013 at 8:49 PM, Jason Cooper ja...@lakedaemon.net wrote: Neil, On Tue, Jul 09, 2013 at 02:42:44PM +0800, Neil Zhang wrote: The documented vendor prefix for Marvell is 'marvell', not 'mrvl', so let's change it. Signed-off-by: Neil Zhang zhan...@marvell.com ---

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-10 Thread Haojian Zhuang
On Wed, Jul 10, 2013 at 8:24 PM, Jason Cooper ja...@lakedaemon.net wrote: On Wed, Jul 10, 2013 at 04:19:46PM +0800, Haojian Zhuang wrote: On Tue, Jul 9, 2013 at 8:49 PM, Jason Cooper ja...@lakedaemon.net wrote: Neil, On Tue, Jul 09, 2013 at 02:42:44PM +0800, Neil Zhang wrote

Re: [PATCH V3 2/3] clocksource: mmp: support CLOCKSOURCE OF DECLARE

2013-07-09 Thread Haojian Zhuang
On Wed, Jul 10, 2013 at 5:16 AM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 09 July 2013, Thomas Petazzoni wrote: Dear Neil Zhang, On Tue, 9 Jul 2013 14:42:45 +0800, Neil Zhang wrote: support CLOCKSOURCE OF DECLARE for mmp timer. Signed-off-by: Neil Zhang zhan...@marvell.com ---

Re: [PATCH v3 3/5] clk: dt: binding for basic multiplexer clock

2013-06-25 Thread Haojian Zhuang
On 21 June 2013 14:14, Mike Turquette mturque...@linaro.org wrote: Device Tree binding for the basic clock multiplexer, plus the setup function to register the clock. Based on the existing fixed-clock binding. Includes minor beautification of clk-provider.h where some whitespace is added

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-06-08 Thread Haojian Zhuang
On 8 June 2013 03:18, Stephen Warren swar...@wwwdotorg.org wrote: On 06/06/2013 09:30 AM, Christian Ruppert wrote: On Thu, Jun 06, 2013 at 10:32:21PM +0800, Haojian Zhuang wrote: On 6 June 2013 22:11, Christian Ruppert christian.rupp...@abilis.com wrote: On Wed, Jun 05, 2013 at 09:44:27AM

Re: [PATCH 1/4] pinctrl: single: Prepare for supporting SoC specific features

2013-06-08 Thread Haojian Zhuang
if needed. Done in collaboration with Roger Quadros rog...@ti.com. Manjunathappa's pinctrl-single patch on enhancing bits is already merged. This patch conflicts with his patch. Could you rebase your patches? Cc: Haojian Zhuang haojian.zhu...@gmail.com Cc: Peter Ujfalusi peter.ujfal

Re: [PATCH 2/4] pinctrl: single: Add hardware specific hooks for IRQ and GPIO wake-up events

2013-06-08 Thread Haojian Zhuang
supporting IRQ and GPIO wake-up events if a hardware spefific module is registered for the enable and disable calls. Done in collaboration with Roger Quadros rog...@ti.com. Cc: Haojian Zhuang haojian.zhu...@gmail.com Cc: Peter Ujfalusi peter.ujfal...@ti.com Cc: devicetree-discuss@lists.ozlabs.org

Re: [PATCH 1/4] pinctrl: single: Prepare for supporting SoC specific features

2013-06-08 Thread Haojian Zhuang
On Sat, Jun 8, 2013 at 11:27 PM, Tony Lindgren t...@atomide.com wrote: * Haojian Zhuang haojian.zhu...@gmail.com [130608 02:43]: Manjunathappa's pinctrl-single patch on enhancing bits is already merged. This patch conflicts with his patch. Could you rebase your patches? Sure. Looks like

Re: [PATCH 3/4] pinctrl: single: omap: Add SoC specific module for wake-up events

2013-06-08 Thread Haojian Zhuang
: Haojian Zhuang haojian.zhu...@gmail.com Cc: Peter Ujfalusi peter.ujfal...@ti.com Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Roger Quadros rog...@ti.com Signed-off-by: Tony Lindgren t...@atomide.com --- drivers/pinctrl/Makefile |3 drivers/pinctrl/pinctrl

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-06-07 Thread Haojian Zhuang
On 7 June 2013 19:32, Christian Ruppert christian.rupp...@abilis.com wrote: On Fri, Jun 07, 2013 at 08:00:57AM +0800, Haojian Zhuang wrote: On 6 June 2013 23:30, Christian Ruppert christian.rupp...@abilis.com wrote: On Thu, Jun 06, 2013 at 10:32:21PM +0800, Haojian Zhuang wrote: On 6 June

Re: pxa27x and pinctrl-single

2013-06-07 Thread Haojian Zhuang
On 7 June 2013 22:50, Mike Dunn miked...@newsguy.com wrote: On 06/06/2013 06:21 PM, Haojian Zhuang wrote: On Fri, Jun 7, 2013 at 8:48 AM, Mike Dunn miked...@newsguy.com wrote: On 06/06/2013 04:58 PM, Haojian Zhuang wrote: On 7 June 2013 01:33, Mike Dunn miked...@newsguy.com wrote

Re: [PATCH v2 1/8] clk: flag to use upper half of the register as change indicator

2013-06-07 Thread Haojian Zhuang
On 7 June 2013 20:27, Heiko Stübner he...@sntech.de wrote: Am Freitag, 7. Juni 2013, 13:46:32 schrieb Linus Walleij: On Thu, Jun 6, 2013 at 9:08 PM, Heiko Stübner he...@sntech.de wrote: There exist platforms, namely at least all Rockchip Cortex-A9 based ones, that don't use the paradigm of

Re: pxa27x and pinctrl-single

2013-06-07 Thread Haojian Zhuang
On 8 June 2013 01:41, Mike Dunn miked...@newsguy.com wrote: On 06/07/2013 08:16 AM, Haojian Zhuang wrote: [...] Since you need to configure both GPDRx and GAFRx. If we are talking pinctrl-single as reference, we can make it work by this way. We need to define two pinmux controllers. One

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-06-06 Thread Haojian Zhuang
On 6 June 2013 22:11, Christian Ruppert christian.rupp...@abilis.com wrote: On Wed, Jun 05, 2013 at 09:44:27AM +0800, Haojian Zhuang wrote: On 3 June 2013 20:30, Christian Ruppert christian.rupp...@abilis.com wrote: OK, here's a simplified example of what we would like to do (this seems

Re: pxa27x and pinctrl-single

2013-06-06 Thread Haojian Zhuang
On 7 June 2013 01:33, Mike Dunn miked...@newsguy.com wrote: Thanks for the reply Haojian. On 06/05/2013 05:43 PM, Haojian Zhuang wrote: On 6 June 2013 01:23, Mike Dunn miked...@newsguy.com wrote: Hi, I'd like to start converting to device tree usage some of the old pxa27x platforms I'm

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-06-06 Thread Haojian Zhuang
On 6 June 2013 23:30, Christian Ruppert christian.rupp...@abilis.com wrote: On Thu, Jun 06, 2013 at 10:32:21PM +0800, Haojian Zhuang wrote: On 6 June 2013 22:11, Christian Ruppert christian.rupp...@abilis.com wrote: On Wed, Jun 05, 2013 at 09:44:27AM +0800, Haojian Zhuang wrote: On 3 June

Re: pxa27x and pinctrl-single

2013-06-06 Thread Haojian Zhuang
On Fri, Jun 7, 2013 at 8:48 AM, Mike Dunn miked...@newsguy.com wrote: On 06/06/2013 04:58 PM, Haojian Zhuang wrote: On 7 June 2013 01:33, Mike Dunn miked...@newsguy.com wrote: [...] Yes, but currently pinctrl-single only supports writing one register for a given pin (with multiple

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-06-04 Thread Haojian Zhuang
On 3 June 2013 20:30, Christian Ruppert christian.rupp...@abilis.com wrote: OK, here's a simplified example of what we would like to do (this seems pretty common so I suppose there is a way I haven't understood). Our situation is slightly more complex but for the purpose of discussion let's

Re: [PATCH 1/3] pinctrl: pinctrl-single: enhance to configure multiple pins of different modules

2013-06-04 Thread Haojian Zhuang
Reported-by: Lad, Prabhakar prabhakar.cse...@gmail.com Tested-by: Lad, Prabhakar prabhakar.cse...@gmail.com Excuse me for response late. Acked-by: Haojian Zhuang haojian.zhu...@gmail.com ___ devicetree-discuss mailing list devicetree-discuss

Re: [PATCH 2/3] pinctrl: pinctrl-single: pin names for pinctrl-single.bits

2013-06-04 Thread Haojian Zhuang
On Tue, May 21, 2013 at 10:08 PM, Manjunathappa, Prakash prakash...@ti.com wrote: Take care to name pin names as register-offset.bit-pos-of-pin-in-register in case configuring multiple pins in register. Signed-off-by: Manjunathappa, Prakash prakash...@ti.com --- Acked-by: Haojian Zhuang

Re: [PATCH 0/3] pinctrl: pinctrl-single: Add full fledge support to configure multiple pins of different modules

2013-05-26 Thread Haojian Zhuang
On 24 May 2013 17:03, Linus Walleij linus.wall...@linaro.org wrote: On Tue, May 21, 2013 at 4:07 PM, Manjunathappa, Prakash prakash...@ti.com wrote: Based function-mask and submask preoperties patch allocates and registers pins. Patch is fixes the issue reported and discussed here:

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-05-23 Thread Haojian Zhuang
. It was written by Shiraz Hashin and Haojian Zhuang. At the time I augmented the core code quite a bit to make a good fit. I agree. Unluckily, it uses pinctrl-internal pin numbering which we would have to make coherent with the physical pin numbers of the individual packaging variants of the chip

Re: [PATCH] pinctrl: single: fix error return code in pcs_parse_one_pinctrl_entry()

2013-05-07 Thread Haojian Zhuang
On 7 May 2013 20:06, Wei Yongjun weiyj...@gmail.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Introduced by commit 9dddb4df90d136429b6d6ddefceb49a9b93f6cd1

Re: [PATCH] pinctrl: single: fix error return code in pcs_parse_one_pinctrl_entry()

2013-05-07 Thread Haojian Zhuang
On 7 May 2013 20:57, Wei Yongjun weiyj...@gmail.com wrote: On 05/07/2013 08:11 PM, Haojian Zhuang wrote: On 7 May 2013 20:06, Wei Yongjun weiyj...@gmail.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0

[PATCH 1/6] mfd: max8925: add irqdomain for dt

2013-02-11 Thread Haojian Zhuang
From: Qing Xu qi...@marvell.com Add irqdomains for max8925's main irq, wrap irq register operations into irqdomain's map func. it is necessary for dt support. Also, add dt support for max8925 driver. Signed-off-by: Qing Xu qi...@marvell.com Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com

[PATCH 2/6] mfd: max8925: fix mfd device register failure

2013-02-11 Thread Haojian Zhuang
From: Qing Xu qi...@marvell.com we encounter rtc/power/touch driver registry failure, root cause it is resources confilict in insert_resouce, solved by changing mfd_add_devices 5th parameter to NULL Signed-off-by: Qing Xu qi...@marvell.com --- drivers/mfd/max8925-core.c | 22

[PATCH 3/6] mfd: max8925: fix onkey driver irq base

2013-02-11 Thread Haojian Zhuang
From: Qing Xu qi...@marvell.com update onkey driver's irq base, it should get from max8925, but not save in a private value Signed-off-by: Qing Xu qi...@marvell.com Acked-by: Dmitry Torokhov dmitry.torok...@gmail.com --- drivers/input/misc/max8925_onkey.c |3 --- drivers/mfd/max8925-core.c

[PATCH 4/6] mfd: max8925: support dt for backlight

2013-02-11 Thread Haojian Zhuang
From: Qing Xu qi...@marvell.com Add device tree support in max8925 backlight. Signed-off-by: Qing Xu qi...@marvell.com Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/video/backlight/max8925_bl.c | 31 ++- 1 file changed, 30 insertions(+), 1

[PATCH 5/6] mfd: max8925: add dts

2013-02-11 Thread Haojian Zhuang
From: Qing Xu qi...@marvell.com Add max8925 dts support into mmp2 brownstone platform Signed-off-by: Qing Xu qi...@marvell.com Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/boot/dts/mmp2-brownstone.dts | 158 + arch/arm/boot/dts/mmp2.dtsi

[PATCH 6/6] Documentation: add docs for max8925 dt

2013-02-11 Thread Haojian Zhuang
From: Qing Xu qi...@marvell.com add docs for dt of max8925-mfd, max8925-backlight, and max8925-battery Signed-off-by: Qing Xu qi...@marvell.com Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- Documentation/devicetree/bindings/mfd/max8925.txt | 64 .../bindings

Re: [PATCH 1/6] mfd: max8925: add irqdomain for dt

2013-02-05 Thread Haojian Zhuang
On Tue, Feb 5, 2013 at 4:19 PM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Haojian, On Mon, Feb 04, 2013 at 11:40:42PM +0800, Haojian Zhuang wrote: From: Qing Xu qi...@marvell.com Add irqdomains for max8925's main irq, wrap irq register operations into irqdomain's map func

Re: [PATCH 0/7] mfd: update on max8925 for DT support

2013-02-04 Thread Haojian Zhuang
On Mon, Feb 4, 2013 at 7:32 PM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Haojian, On Mon, Feb 04, 2013 at 09:05:09AM +0800, Haojian Zhuang wrote: Hi Samuel, Are they merged into your git tree? No, they're not. Qing sent several versions for many of the patches in this patchset: Could

Re: [PATCH 0/7] mfd: update on max8925 for DT support

2013-02-03 Thread Haojian Zhuang
On Wed, Dec 12, 2012 at 2:22 PM, Qing Xu qi...@marvell.com wrote: On 12/04/2012 03:11 PM, Haojian Zhuang wrote: On Thu, Nov 29, 2012 at 1:54 PM, Qing Xu qi...@marvell.com wrote: On 11/23/2012 05:09 PM, Haojian Zhuang wrote: On Tue, Nov 6, 2012 at 3:35 PM, Qing Xu qi...@marvell.com wrote

Re: [PATCH v3 1/7] mfd: max8925: add irqdomain for dt

2012-12-03 Thread Haojian Zhuang
-by: Haojian Zhuang haojian.zhu...@gmail.com ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Re: [PATCH v4 7/7] mfd: max8925: add dts

2012-12-03 Thread Haojian Zhuang
; status = disabled; }; -- 1.7.0.4 Acked-by: Haojian Zhuang haojian.zhu...@gmail.com ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree

Re: [PATCH] Documentation: add docs for max8925 dt

2012-12-03 Thread Haojian Zhuang
/devicetree/bindings/power_supply/max8925_batter.txt create mode 100644 Documentation/devicetree/bindings/video/backlight/max8925-backlight.txt Acked-by: Haojian Zhuang haojian.zhu...@gmail.com ___ devicetree-discuss mailing list devicetree-discuss

Re: [PATCH 0/7] mfd: update on max8925 for DT support

2012-12-03 Thread Haojian Zhuang
On Thu, Nov 29, 2012 at 1:54 PM, Qing Xu qi...@marvell.com wrote: On 11/23/2012 05:09 PM, Haojian Zhuang wrote: On Tue, Nov 6, 2012 at 3:35 PM, Qing Xu qi...@marvell.com wrote: From: Qing Xu qi...@marvell.com 1. add irqdomain for max8925, it is necessary for dt support 2. bug fix

Re: [PATCH 2/7] mfd: max8925: fix mfd device register failure

2012-11-23 Thread Haojian Zhuang
On Tue, Nov 6, 2012 at 3:38 PM, Qing Xu qi...@marvell.com wrote: From: Qing Xu qi...@marvell.com we encounter rtc/power/touch driver registry failure, root cause it is resources confilict in insert_resouce, solved by changing mfd_add_devices 5th parameter to NULL Since resources are not used

Re: [PATCH 7/7] mfd: max8925: add dts

2012-11-23 Thread Haojian Zhuang
On Tue, Nov 6, 2012 at 3:49 PM, Qing Xu qi...@marvell.com wrote: From: Qing Xu qi...@marvell.com add max8925 dts support into mmp2 brownstone platform Signed-off-by: Qing Xu qi...@marvell.com --- arch/arm/boot/dts/mmp2-brownstone.dts | 166 +

Re: [PATCH 1/7] mfd: max8925: add irqdomain for dt

2012-11-23 Thread Haojian Zhuang
On Tue, Nov 6, 2012 at 3:37 PM, Qing Xu qi...@marvell.com wrote: From: Qing Xu qi...@marvell.com Add irqdomains for max8925's main irq, and touch irq. Wrap irq register operations into irqdomain's map func. it is necessary for dt support. Also, add dt support for max8925 driver.

Re: [PATCH 6/7] mfd: max8925: support dt for backlight

2012-11-23 Thread Haojian Zhuang
On Tue, Nov 6, 2012 at 3:47 PM, Qing Xu qi...@marvell.com wrote: From: Qing Xu qi...@marvell.com Signed-off-by: Qing Xu qi...@marvell.com --- drivers/video/backlight/max8925_bl.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 0/7] mfd: update on max8925 for DT support

2012-11-23 Thread Haojian Zhuang
On Tue, Nov 6, 2012 at 3:35 PM, Qing Xu qi...@marvell.com wrote: From: Qing Xu qi...@marvell.com 1. add irqdomain for max8925, it is necessary for dt support 2. bug fix in max8925 mfd devices'irq base and device registry failure 3. support DT for max8925 mfd devices Qing Xu (7): mfd:

Re: [PATCH v2 5/9] document: devicetree: bind pinconf with pin-single

2012-10-31 Thread Haojian Zhuang
On Tue, Oct 23, 2012 at 6:44 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/22/2012 10:08 AM, Haojian Zhuang wrote: Add comments with pinconf gpio range in the document of pinctrl-single. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- .../devicetree/bindings/pinctrl

Re: [PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-31 Thread Haojian Zhuang
On Fri, Oct 26, 2012 at 1:43 AM, Tony Lindgren t...@atomide.com wrote: * Tony Lindgren t...@atomide.com [121022 10:11]: * Haojian Zhuang haojian.zhu...@gmail.com [121022 03:11]: On Sat, Oct 20, 2012 at 3:13 AM, Tony Lindgren t...@atomide.com wrote: * Haojian Zhuang haojian.zhu...@gmail.com

Re: [PATCH v2 5/9] document: devicetree: bind pinconf with pin-single

2012-10-31 Thread Haojian Zhuang
On Wed, Oct 31, 2012 at 11:26 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/31/2012 10:58 AM, Haojian Zhuang wrote: On Tue, Oct 23, 2012 at 6:44 AM, Stephen Warren swar...@wwwdotorg.org wrote: 3) Why is pinctrl-single,gpio-func optional? Presumably you always need to program

Re: [PATCH v2 2/9] pinctrl: single: support gpio request and free

2012-10-28 Thread Haojian Zhuang
On Tue, Oct 23, 2012 at 5:37 AM, Tony Lindgren t...@atomide.com wrote: * Tony Lindgren t...@atomide.com [121022 13:29]: * Haojian Zhuang haojian.zhu...@gmail.com [121022 09:11]: --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -28,8 +28,10 @@ #define

Re: [PATCH v2 2/9] pinctrl: single: support gpio request and free

2012-10-28 Thread Haojian Zhuang
On Tue, Oct 23, 2012 at 4:28 AM, Tony Lindgren t...@atomide.com wrote: * Haojian Zhuang haojian.zhu...@gmail.com [121022 09:11]: Marvell's PXA/MMP silicon also match the behavior of pinctrl-single. Each pin binds to one register. A lot of pins could be configured as gpio. Now add three

Re: [PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-25 Thread Haojian Zhuang
On Fri, Oct 26, 2012 at 7:43 AM, Tony Lindgren t...@atomide.com wrote: * Tony Lindgren t...@atomide.com [121022 10:11]: * Haojian Zhuang haojian.zhu...@gmail.com [121022 03:11]: On Sat, Oct 20, 2012 at 3:13 AM, Tony Lindgren t...@atomide.com wrote: * Haojian Zhuang haojian.zhu...@gmail.com

Re: [PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-22 Thread Haojian Zhuang
On Sat, Oct 20, 2012 at 3:13 AM, Tony Lindgren t...@atomide.com wrote: * Haojian Zhuang haojian.zhu...@gmail.com [121018 02:08]: Add pinconf generic support with POWER SOURCE, BIAS PULL. ... + case PIN_CONFIG_POWER_SOURCE: + if (pcs-psmask == PCS_OFF_DISABLED

[PATCH v2 1/9] ARM: mmp: select pinctrl driver

2012-10-22 Thread Haojian Zhuang
Pinctrl driver is necessary for MMP DT MMP2 DT platforms. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/Kconfig |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 178d4da..ebdda83

[PATCH v2 2/9] pinctrl: single: support gpio request and free

2012-10-22 Thread Haojian Zhuang
-single,gpio-func: gpio function value in mux Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/pinctrl/pinctrl-single.c | 94 +- 1 files changed, 92 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers

[PATCH v2 3/9] pinctrl: single: support pinconf generic

2012-10-22 Thread Haojian Zhuang
Add pinconf generic support with POWER SOURCE, BIAS PULL. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/pinctrl/Kconfig |1 + drivers/pinctrl/pinctrl-single.c | 276 -- 2 files changed, 266 insertions(+), 11 deletions

[PATCH v2 4/9] ARM: dts: support pinctrl single in pxa910

2012-10-22 Thread Haojian Zhuang
Add pinctrl-single support with device tree in pxa910 dkb platform. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/boot/dts/pxa910-dkb.dts | 187 +- arch/arm/boot/dts/pxa910.dtsi| 78 2 files changed, 264 insertions

[PATCH v2 5/9] document: devicetree: bind pinconf with pin-single

2012-10-22 Thread Haojian Zhuang
Add comments with pinconf gpio range in the document of pinctrl-single. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- .../devicetree/bindings/pinctrl/pinctrl-single.txt | 52 arch/arm/boot/dts/pxa910.dtsi |1 - 2 files changed, 52

[PATCH v2 6/9] tty: pxa: configure pin

2012-10-22 Thread Haojian Zhuang
Configure pins by pinctrl driver. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/tty/serial/pxa.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index 9033fc6..02dc771 100644 --- a/drivers

[PATCH v2 7/9] i2c: pxa: use devm_kzalloc

2012-10-22 Thread Haojian Zhuang
Use devm_kzalloc add checking in probe() function. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/i2c/busses/i2c-pxa.c | 26 ++ 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c

[PATCH v2 8/9] i2c: pxa: configure pinmux

2012-10-22 Thread Haojian Zhuang
Configure pins by pinctrl driver. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/i2c/busses/i2c-pxa.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 7c8b5d0..11e4a30 100644

[PATCH v2 9/9] pinctrl: single: dump pinmux register value

2012-10-22 Thread Haojian Zhuang
Dump pinmux register value, not only function part in the pinmux register. Also fix the issue on caluclating pin offset. The last parameter should be pin number, not register offset. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/pinctrl/pinctrl-single.c |8 1

[PATCH 01/10] pinctrl: use postcore_initcall

2012-10-18 Thread Haojian Zhuang
Since pins are configured in device driver, pinctrl driver should be loaded by those device driver. module_platform_driver() only declares pinctrl driver is in module_initcall privilege. Use postcore_initcall privilege instead. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers

[PATCH 02/10] ARM: mmp: select pinctrl driver

2012-10-18 Thread Haojian Zhuang
Pinctrl driver is necessary for MMP DT MMP2 DT platforms. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/Kconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index 7fddd01..c70c787

[PATCH 03/10] tty: pxa: configure pin

2012-10-18 Thread Haojian Zhuang
Configure pins by pinctrl driver. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/tty/serial/pxa.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index 5847a4b..ee6118a 100644 --- a/drivers

[PATCH 04/10] i2c: pxa: configure pins

2012-10-18 Thread Haojian Zhuang
Configure pins by pinctrl driver. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/i2c/busses/i2c-pxa.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 1034d93..cd66ec2 100644

[PATCH 05/10] i2c: pxa: use devm_kzalloc

2012-10-18 Thread Haojian Zhuang
Use devm_kzalloc add checking in probe() function. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/i2c/busses/i2c-pxa.c | 26 ++ 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c

[PATCH 06/10] pinctrl: single: support gpio request and free

2012-10-18 Thread Haojian Zhuang
-single,gpio: gpio base, npins in range, pin base pinctrl-single,gpio-enable: gpio enable register offset, enable value pinctrl-single,gpio-disable: gpio disable register offset, disable value Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/pinctrl/pinctrl-single.c | 140

[PATCH 07/10] pinctrl: remove mutex lock in groups show

2012-10-18 Thread Haojian Zhuang
Mutex is locked duplicatly by pinconf_groups_show() and pin_config_group_get(). It results dead lock. So avoid to lock mutex in pinconf_groups_show(). Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/pinctrl/pinconf.c |4 1 files changed, 0 insertions(+), 4 deletions

[PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-18 Thread Haojian Zhuang
Add pinconf generic support with POWER SOURCE, BIAS PULL. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/pinctrl/Kconfig |2 +- drivers/pinctrl/pinctrl-single.c | 286 -- 2 files changed, 274 insertions(+), 14 deletions

[PATCH 09/10] ARM: dts: support pinctrl single in pxa910

2012-10-18 Thread Haojian Zhuang
Add pinctrl-single support with device tree in pxa910 dkb platform. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/boot/dts/pxa910-dkb.dts | 187 +- arch/arm/boot/dts/pxa910.dtsi| 81 2 files changed, 267 insertions

Re: [PATCH 05/10] i2c: pxa: use devm_kzalloc

2012-10-18 Thread Haojian Zhuang
On Fri, Oct 19, 2012 at 6:27 AM, Stephen Warren swar...@wwwdotorg.org wrote: On 10/18/2012 03:06 AM, Haojian Zhuang wrote: Use devm_kzalloc add checking in probe() function. This patch seems unrelated to this series. In fact, the series touches a bunch of different subsystems; would you

Re: [PATCH 01/10] pinctrl: use postcore_initcall

2012-10-18 Thread Haojian Zhuang
On Fri, Oct 19, 2012 at 6:28 AM, Tony Lindgren t...@atomide.com wrote: * Stephen Warren swar...@wwwdotorg.org [121018 15:20]: On 10/18/2012 03:06 AM, Haojian Zhuang wrote: Since pins are configured in device driver, pinctrl driver should be loaded by those device driver

Re: [PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-18 Thread Haojian Zhuang
On Fri, Oct 19, 2012 at 6:29 AM, Tony Lindgren t...@atomide.com wrote: * Linus Walleij linus.wall...@linaro.org [121018 11:32]: On Thu, Oct 18, 2012 at 11:07 AM, Haojian Zhuang haojian.zhu...@gmail.com wrote: Add pinconf generic support with POWER SOURCE, BIAS PULL. Signed-off

Re: [PATCH 01/10] pinctrl: use postcore_initcall

2012-10-18 Thread Haojian Zhuang
On Fri, Oct 19, 2012 at 10:38 AM, Tony Lindgren t...@atomide.com wrote: * Haojian Zhuang haojian.zhu...@gmail.com [121018 19:17]: On Fri, Oct 19, 2012 at 6:28 AM, Tony Lindgren t...@atomide.com wrote: Specifically could you decribe the cases where this issue happens? Also check if one

Re: [PATCH] gpio: pxa: using for_each_set_bit to simplify the code

2012-09-17 Thread Haojian Zhuang
this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn PXA maintainers: does this look OK? Yours, Linus Walleij It seems good. Acked-by: Haojian Zhuang haojian.zhu...@gmail.com ___ devicetree-discuss mailing

Re: [PATCH] gpio: pxa: using for_each_set_bit to simplify the code

2012-09-17 Thread Haojian Zhuang
On Tue, Sep 18, 2012 at 1:43 PM, Eric Miao eric.y.m...@gmail.com wrote: On Mon, Sep 17, 2012 at 6:56 PM, Linus Walleij linus.wall...@linaro.org wrote: On Fri, Sep 14, 2012 at 4:36 AM, Wei Yongjun weiyj...@gmail.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Using

Re: [PATCH] mmc: sdhci-pxa: Add device tree support

2012-06-20 Thread Haojian Zhuang
                    |   52 +++  3 files changed, 127 insertions(+) Acked-by: Haojian Zhuang haojian.zhu...@gmail.com ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Re: Re: [PATCH] mmc: sdhci-pxa: Add device tree support

2012-06-13 Thread haojian . zhuang
On , Chris Ball c...@laptop.org wrote: Hi Zhangfei, On Tue, Jun 12 2012, zhangfei gao wrote: On Wed, Jun 13, 2012 at 3:05 AM, Chris Ball c...@laptop.org wrote: How do you feel about having the compatible node say sdhci-pxav3 instead of mrvl,pxav3-mmc? I used the mrvl prefix because

Re: [PATCH v2 8/9] ARM: dts: refresh dts file for arch mmp

2012-06-05 Thread Haojian Zhuang
On Wed, Jun 6, 2012 at 9:47 AM, Mitch Bradley w...@firmworks.com wrote: On 6/5/2012 3:28 PM, Arnd Bergmann wrote: On Tuesday 05 June 2012, Chris Ball wrote: Hi Haojian, On Fri, May 04 2012, Haojian Zhuang wrote: Append mmp2 and pxa910 dts files. Update PXA168 dts files for irq, timer

Re: [PATCH v2 8/9] ARM: dts: refresh dts file for arch mmp

2012-06-05 Thread Haojian Zhuang
On Wed, Jun 6, 2012 at 1:22 PM, Mitch Bradley w...@firmworks.com wrote: On 6/5/2012 4:35 PM, Haojian Zhuang wrote: On Wed, Jun 6, 2012 at 9:47 AM, Mitch Bradleyw...@firmworks.com  wrote: On 6/5/2012 3:28 PM, Arnd Bergmann wrote: On Tuesday 05 June 2012, Chris Ball wrote: Hi Haojian

Re: [PATCH v2 8/9] ARM: dts: refresh dts file for arch mmp

2012-06-04 Thread Haojian Zhuang
On Tue, Jun 5, 2012 at 8:08 AM, Chris Ball c...@laptop.org wrote: Hi Haojian, On Fri, May 04 2012, Haojian Zhuang wrote: Append mmp2 and pxa910 dts files. Update PXA168 dts files for irq, timer, gpio components. The patch I'm replying to introduced a device tree for MMP2/Brownstone in 3.5

Re: [PATCH 3/9] ARM: mmp: support DT in irq

2012-05-30 Thread Haojian Zhuang
On Thu, May 31, 2012 at 3:38 AM, Chris Ball c...@laptop.org wrote: Hi Haojian, Did you test non-DT boot with these changes? I tested non-DT boot on my brownstone board on TTC dkb board. It seems that you meet issue in icu_mux_irq_demux(). Could you give me the detail which interrupt is

Re: [PATCH v2 0/9] support dt for mmp2

2012-05-17 Thread Haojian Zhuang
On Fri, May 18, 2012 at 7:57 AM, Rob Herring robherri...@gmail.com wrote: On 05/04/2012 07:30 AM, Haojian Zhuang wrote: v2: 1. remove MACH_MMP_LEGACY MACH_MMP2_LEGACY 2. use irq.c to replace irq-pxa168.c irq-mmp2.c 3. Avoid to use CONFIG_OF in entry-macro.S I think you should combine all

[PATCH v2 1/9] ARM: mmp: fix build issue on mmp with device tree

2012-05-04 Thread Haojian Zhuang
Since irq_domain_add_simple() is removed, remove it in mmp-dt.c also. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/mmp-dt.c | 22 -- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/arch/arm/mach-mmp/mmp-dt.c b/arch/arm/mach

[PATCH v2 2/9] ARM: mmp: append CONFIG_MACH_MMP2_DT

2012-05-04 Thread Haojian Zhuang
Append CONFIG_MACH_MMP2_DT. CONFIG_MACH_MMP_DT is used to ARMv5 DT support. CONFIG_MACH_MMP2_DT is used to ARMv7 DT support. These two machine support can't be selected at the same time. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/Kconfig | 29

[PATCH v2 3/9] ARM: mmp: support DT in irq

2012-05-04 Thread Haojian Zhuang
Merge irq-pxa168 and irq-mmp2. And support device tree also. Since CONFIG_SPARSE_IRQ is enabled in arch-mmp, base irq starts from NR_IRQS_LEGACY. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/Kconfig |1 + arch/arm/mach-mmp/Makefile

[PATCH v2 4/9] ARM: mmp: support DT in timer

2012-05-04 Thread Haojian Zhuang
Parse timer from DTS file. Avoid to use hardcoding marco for register. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/time.c | 81 ++ 1 files changed, 60 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-mmp

[PATCH v2 5/9] gpio: pxa: parse gpio from DTS file

2012-05-04 Thread Haojian Zhuang
Parse GPIO numbers from DTS file. Allocate interrupt according to GPIO numbers. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/gpio/gpio-pxa.c | 116 +++--- 1 files changed, 98 insertions(+), 18 deletions(-) diff --git a/drivers/gpio

[PATCH v2 6/9] ARM: mmp: support mmp2 with device tree

2012-05-04 Thread Haojian Zhuang
Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/Makefile |1 + arch/arm/mach-mmp/mmp2-dt.c | 60 +++ 2 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-mmp/mmp2-dt.c diff --git a/arch/arm

[PATCH v2 7/9] ARM: mmp: support pxa910 with device tree

2012-05-04 Thread Haojian Zhuang
Suppot gpio/irq/timer in mmp-dt driver. Support PXA910 also in mmp-dt driver. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/mmp-dt.c | 50 +++ 1 files changed, 40 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach

[PATCH v2 9/9] Documentation: update docs for mmp dt

2012-05-04 Thread Haojian Zhuang
Append interrupt controller and timer document for mmp. Updates documents for gpio and i2c. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- Documentation/devicetree/bindings/arm/mrvl.txt |6 --- .../devicetree/bindings/arm/mrvl/intc.txt | 40

Re: [PATCH 3/9] ARM: mmp: support DT in irq

2012-05-03 Thread Haojian Zhuang
On Wed, May 2, 2012 at 8:51 PM, Arnd Bergmann a...@arndb.de wrote: On Wednesday 02 May 2012, Haojian Zhuang wrote: I use two CONFIG_OF in this file. The first one is used to record register base address of interrupt controller. In legacy code, the register address is hardcoding. Do you mean

Re: [PATCH 2/9] ARM: mmp: distinguish mmp and mmp2 in Kconfig

2012-05-01 Thread Haojian Zhuang
On Sat, Apr 28, 2012 at 4:14 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 27 April 2012, Haojian Zhuang wrote: Append four CONFIG_* MACRO to distinguish boards in arch-mmp. CONFIG_MMP_LEGACY and CONFIG_MMP2_LEGACY are used to support boards without device tree. CONFIG_MMP_DT

[PATCH 0/9] add more devicetree support in arch-mmp

2012-04-27 Thread Haojian Zhuang
1. Fix the build issue in mmp-dt.c since irq interface changed. 2. Parse intc in new irq that could support both pxa168 and mmp2. After arch-mmp is totally moved to device tree, irq-pxa168 and irq-mmp2 will be removed. 3. Parse interrupt in gpio controller. 4. Append timer with device tree. 5.

[PATCH 1/9] ARM: mmp: fix build issue on mmp with device tree

2012-04-27 Thread Haojian Zhuang
Since irq_domain_add_simple() is removed, remove it in mmp-dt.c also. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/mmp-dt.c | 22 -- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/arch/arm/mach-mmp/mmp-dt.c b/arch/arm/mach

[PATCH 2/9] ARM: mmp: distinguish mmp and mmp2 in Kconfig

2012-04-27 Thread Haojian Zhuang
. It's used to miss compiling all boards file together. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/configs/mmp2_defconfig |1 + arch/arm/configs/pxa168_defconfig |1 + arch/arm/configs/pxa910_defconfig |1 + arch/arm/mach-mmp/Kconfig | 37

[PATCH 3/9] ARM: mmp: support DT in irq

2012-04-27 Thread Haojian Zhuang
Append new interrupt driver that could support both pxa168 and mmp2 silicon. And this driver supports device tree. Since CONFIG_SPARSE_IRQ is enabled in arch-mmp, irq driver should handle reserved NR_IRQS_LEGACY in irq domain. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm

[PATCH 4/9] ARM: mmp: support DT in timer

2012-04-27 Thread Haojian Zhuang
Parse timer from DTS file. Avoid to use hardcoding marco for register. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/time.c | 81 ++ 1 files changed, 60 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-mmp

[PATCH 5/9] gpio: pxa: parse gpio from DTS file

2012-04-27 Thread Haojian Zhuang
Parse GPIO numbers from DTS file. Allocate interrupt according to GPIO numbers. Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- drivers/gpio/gpio-pxa.c | 116 +++--- 1 files changed, 98 insertions(+), 18 deletions(-) diff --git a/drivers/gpio

[PATCH 6/9] ARM: mmp: support mmp2 with device tree

2012-04-27 Thread Haojian Zhuang
Signed-off-by: Haojian Zhuang haojian.zhu...@gmail.com --- arch/arm/mach-mmp/Makefile |1 + arch/arm/mach-mmp/mmp2-dt.c | 60 +++ 2 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-mmp/mmp2-dt.c diff --git a/arch/arm

  1   2   >