Re: [PATCH] mfd: syscon: Added support for using platform driver resources

2013-02-06 Thread Dong Aisheng
return ret; > + } else { > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + if (!res) > + return -ENXIO; > + > + if (!request_mem_region(res->start, resource_size(res), > +

Re: Re[2]: [PATCH] mfd: syscon: Added support for using platform driver resources

2013-02-07 Thread Dong Aisheng
if (!syscon->base) >> > + return -EADDRNOTAVAIL; >> >> devm_request_and_ioremap? > > We call of_iomap for DT-version, for removal procedure - iounmap. > Will iounmap work properly with devm_-version, I'm not sure. You're right, i'm afra

Re: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-18 Thread Dong Aisheng
code paths have a slight difference. The path1 does not request the mem region, the main reason of that is we meet some devices register ranges used as syscon maybe overlapped with other exist drivers. e.g imx6q.dtsi The gpr is a few registers contained in iomuxc. gpr: iomuxc-gpr@020e { c

Re: Re[2]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
>base) >> >> + return -EADDRNOTAVAIL; >> >> + } >> > >> > These two code paths look equivalent. Why not always use the second >> > one? Also, you might want to convert this to devm_ioremap_resource() >> > to sim

Re: Re[2]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
On 19 February 2013 15:55, Dong Aisheng wrote: > On 19 February 2013 15:03, Alexander Shiyan wrote: >> Hello. >> >> Strange, but I not received an original answer from Arnd, have only this >> mail. >> >> ... >>> >> diff --git a/drivers/mf

Re: Re[4]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
u think they're not issues. >> > In my case we can use platform_device_id.name field with >> > "compatible" string. My way in this case is transparency for driver which >> > is >> > using "syscon". >> > >> >> Yes, but

Re: Re[6]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
then will set the correct id_entry for the platform device once it matches. Please see the platform_bus match process: drivers/base/platform.c > ... > }; > platform_device_register(&syscon_pdev); > > Do I understand what you mean? > My understanding for non-dt case is some

Re: Re[8]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-19 Thread Dong Aisheng
non-standard usage. Currently we do not have platform_device_id > entries for a "syscon" driver, so this field is untouched for a platform > device > and we can use it. At least this works, but, of course, more experts should > fix me on this question if I think incorrect. &g

Re: Re[8]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-20 Thread Dong Aisheng
, or by an existing > platform that is easy enough to convert, we probably shouldn't do all this > at all. > If the platform can convert to dt, then we do not have such issue. The question is do we allow the existing non-dt platforms to use it before converting? Regards Don

Re: Re[8]: [PATCH v3] mfd: syscon: Add non-DT support

2013-02-20 Thread Dong Aisheng
On 20 February 2013 19:14, Arnd Bergmann wrote: > On Wednesday 20 February 2013, Dong Aisheng wrote: >> On 20 February 2013 18:06, Arnd Bergmann wrote: >> > I would first like to get an answer to the question I asked in my first >> > mail, >> > which is wh

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-21 Thread Dong Aisheng
ame" function was added. > > Signed-off-by: Alexander Shiyan [...] > + syscon->base = devm_ioremap_resource(dev, res); > + if (!syscon->base) Is this correct? > + return -EBUSY; > Otherwise, i'm also ok with this patch. Acked-by: Dong Ais

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-21 Thread Dong Aisheng
_resource(dev, res); > > > + if (!syscon->base) > > > > Is this correct? > > Hmm, of course IS_ERR should be used here... > v5? > Yes. >From here: https://lkml.org/lkml/2013/1/21/140 It seems it is. > > > > > + return -EBUSY; Both this

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
On Fri, Feb 22, 2013 at 08:27:19AM +0100, Thierry Reding wrote: ... > > > > Otherwise, i'm also ok with this patch. > > > > Acked-by: Dong Aisheng > > > > > > > > BTW, i did not see Samuel's tree having this new API. > > >

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
On Fri, Feb 22, 2013 at 09:11:53AM +, Arnd Bergmann wrote: > On Friday 22 February 2013, Thierry Reding wrote: > > On Fri, Feb 22, 2013 at 03:13:12PM +0800, Dong Aisheng wrote: > > > On Fri, Feb 22, 2013 at 11:01:18AM +0400, Alexander Shiyan wrote: > > > > > O

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
On Fri, Feb 22, 2013 at 09:52:12AM +0100, Thierry Reding wrote: > On Fri, Feb 22, 2013 at 04:29:55PM +0800, Dong Aisheng wrote: > > On Fri, Feb 22, 2013 at 08:27:19AM +0100, Thierry Reding wrote: > > ... > > > > > > Otherwise, i'm also ok with this pat

Re: [PATCH v4] mfd: syscon: Add non-DT support

2013-02-22 Thread Dong Aisheng
gt; prototype is in include/linux/device.h and the implementation in > lib/devres.c. > Got it. Thanks. Regards Dong Aisheng -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http:/

Re: [PATCH v7 2/2] mfd: syscon: Add non-DT support

2013-03-13 Thread Dong Aisheng
was added. > > Signed-off-by: Alexander Shiyan Actually i've acked this series before, usually you can send out the updated series with my tag if no other big changes except the minor comments fix i pointed out. Here again, for this series: Acked-by: Dong Aisheng Regards Dong Aish

Re: [PATCH v2 1/7] mfd: add syscon driver based on regmap

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 06:08:32AM +0800, Shawn Guo wrote: > On Mon, Aug 27, 2012 at 03:24:39PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Add regmap based syscon driver. > > This is usually used for access misc bits in registers which does not belong &g

Re: [PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-27 Thread Dong Aisheng
regulators are child nodes of anatop. It looks a little > odd to use phandle there. of_get_parent should just works. > Yes, this is a special case. It's also ok for me to use of_get_parent if you want. Will update it. Regards Dong Aisheng -- To unsubscribe from this list: send the line &

Re: [PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 11:23:10AM +0800, Zhao Richard-B20223 wrote: ... > > np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop"); > np unused. Correct. Will drop it. Regards Dong Aisheng -- To unsubscribe from this list: send the line "unsubscribe linux-

[PATCH v3 0/7] add syscon driver based on regmap for general registers access

2012-08-28 Thread Dong Aisheng
anatop driver which is only for anatop register access. The patch series is based on linus's tree 3.6-rc3 since commit 9160338. Dong Aisheng (7): mfd: add syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into syscon ARM: imx6q: add anatop support into syscon regu

[PATCH v3 1/7] mfd: add syscon driver based on regmap

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon

[PATCH v3 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during boot due to device

[PATCH v3 3/7] ARM: imx6q: add anatop support into syscon

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v3 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v3 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Signed-off-by: Dong Aisheng --- ChangeLog v2->v3: * update to use syscon_node_to_regmap and use of_get_parent to get anatop node. ChangeLog v1-v2: * update to use generic regmap api --- drivers/regula

[PATCH v3 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop registers. Signed-off-by: Dong Aisheng --- ChangeLog v2->v3: * remove a few unneed codes ChangeLog v1->v2: * update to use generic regmap api --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-imx/mach-imx6q.c

[PATCH v3 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-28 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

Re: [PATCH v3 1/7] mfd: add syscon driver based on regmap

2012-08-28 Thread Dong Aisheng
On Wed, Aug 29, 2012 at 06:54:00AM +0800, Stephen Warren wrote: > On 08/28/2012 02:09 AM, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Add regmap based syscon driver. > > This is usually used for access misc bits in registers which does not belong > > to a

[PATCH v4 0/7] add syscon driver based on regmap for general registers access

2012-08-29 Thread Dong Aisheng
anatop driver which is only for anatop register access. The patch series is based on linus's tree 3.6-rc3 since commit 9160338. ChangeLog v3->v4: Only '[PATCH v4 1/7] mfd: add syscon driver based on regmap' is changed. Dong Aisheng (7): mfd: add syscon driver based on regmap

[PATCH v4 1/7] mfd: add syscon driver based on regmap

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon

[PATCH v4 3/7] ARM: imx6q: add anatop support into syscon

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2 insertions(

[PATCH v4 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v2->v3: * update to use syscon_node_to_regmap and use of_get_parent to get anatop node. ChangeLog v1-v2: * update to use generic regmap

[PATCH v4 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

[PATCH v4 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during boot due to device

[PATCH v4 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop registers. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v2->v3: * remove a few unneed codes ChangeLog v1->v2: * update to use generic regmap api --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-im

[PATCH v4 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-29 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions(+), 0 deletions(-) diff

Re: [PATCH v4 1/7] mfd: add syscon driver based on regmap

2012-09-02 Thread Dong Aisheng
On Fri, Aug 31, 2012 at 09:26:29AM +0800, Shawn Guo wrote: > On Wed, Aug 29, 2012 at 06:56:52PM +0800, Dong Aisheng wrote: > > +config MFD_SYSCON > > +bool "System Controller Register R/W Based on Regmap" > > If the driver only compiles and works for devi

Re: [PATCH v4 7/7] mfd: anatop-mfd: remove anatop driver

2012-09-02 Thread Dong Aisheng
On Fri, Aug 31, 2012 at 09:39:26AM +0800, Shawn Guo wrote: > On Wed, Aug 29, 2012 at 06:56:58PM +0800, Dong Aisheng wrote: > > -config MFD_ANATOP > > - bool "Support for Freescale i.MX on-chip ANATOP controller" > > - depends on SOC_IMX6Q > > - help &

Re: [PATCH v4 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-02 Thread Dong Aisheng
On Fri, Aug 31, 2012 at 10:02:48AM +0800, Shawn Guo wrote: > On Wed, Aug 29, 2012 at 06:56:53PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Include headfile for easy using. > > > > Acked-by: Stephen Warren > > Signed-off-by: Dong Aisheng &g

Re: [PATCH v4 1/7] mfd: add syscon driver based on regmap

2012-09-03 Thread Dong Aisheng
On Mon, Sep 03, 2012 at 11:09:01AM +0800, Shawn Guo wrote: > On Mon, Sep 03, 2012 at 10:31:03AM +0800, Dong Aisheng wrote: > > > > > > I think of_node_put should be moved out from here and put into > > > syscon_node_to_regmap and syscon_regmap_lookup_by_compatible.

[PATCH v5 2/4] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v4-v5: * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h -> include/linux/mfd/syscon/imx6q-iomuxc-gpr.h * a minor typo fix --- arch/arm/boot/dts/imx6q.d

[PATCH v5 4/4] mfd: anatop-mfd: remove anatop driver

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

[PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v4->v5: * merge patch 3,4,5,6 to avoid break bisect. ChangeLog v2->v3: * update to use syscon_node_to_regmap and use of_get_parent

[PATCH v5 0/4] add syscon driver based on regmap for general registers access

2012-09-03 Thread Dong Aisheng
xc-gpr.h -> include/linux/mfd/syscon/imx6q-iomuxc-gpr.h ChangeLog v3->v4: Only '[PATCH v4 1/7] mfd: add syscon driver based on regmap' is changed. Dong Aisheng (4): mfd: add syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into syscon regulator: anatop-regulato

[PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon

Re: [PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-04 Thread Dong Aisheng
On Tue, Sep 04, 2012 at 07:34:32PM +0800, Shawn Guo wrote: > On Tue, Sep 04, 2012 at 11:20:10AM +0800, Dong Aisheng wrote: > > + > > + anatop_np = of_get_parent(np); > > + if (!anatop_np) > > + return -ENODEV; > > + sreg->anatop = syscon_n

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Dong Aisheng
On Tue, Sep 04, 2012 at 07:35:45PM +0800, Andi Shyti wrote: > Hi Dong, > > On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: > > +static int __devinit syscon_probe(struct platform_device *pdev) > > +{ > > + struct device *dev = &pdev->dev; &g

[PATCH v6 0/4] add syscon driver based on regmap for general registers access

2012-09-04 Thread Dong Aisheng
->v5: * change syscon driver depends on OF * do not call of_node_put in syscon_node_to_regmap * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h -> include/linux/mfd/syscon/imx6q-iomuxc-gpr.h ChangeLog v3->v4: Only '[PATCH v4 1/7] mfd: add syscon driver based on regmap&

[PATCH v6 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon

[PATCH v6 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v5->v6: * of_node_put after using syscon_node_to_regmap ChangeLog v4->v5: * merge patch 3,4,5,6 to avoid break bisect. ChangeLog

[PATCH v6 2/4] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v4-v5: * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h -> include/linux/mfd/syscon/imx6q-iomuxc-gpr.h * a minor typo fix --- arch/arm/boot/dts/imx6q.d

[PATCH v6 4/4] mfd: anatop-mfd: remove anatop driver

2012-09-04 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

Re: [PATCH] Chinese translation of Documentation/gpio.txt

2012-09-05 Thread Dong Aisheng
few whitespace warnings when applying your patch and the Chinese in Documentation/zh_CN/gpio.txt can not be read by my VIM, i tried many character set config such as UTF-8 and VSCII, but still mess code. But the Windows Notepad can read it. I don't know the reason, probably you could check it.

Re: [PATCH] pinctrl: imx: Fix the logic checking if not able to find pin reg map

2012-11-12 Thread Dong Aisheng
On Tue, Nov 13, 2012 at 09:00:07AM +0800, Axel Lin wrote: > Current code sets "pin_reg = &info->pin_regs[i];" in each loop iteration, > so in the case of no-match, pin_reg is not NULL. > > Signed-off-by: Axel Lin Thanks for the fix. Acked-by: Dong Aisheng Regards

Re: [PATCH] pinctrl: Staticize pinconf_ops

2012-11-06 Thread Dong Aisheng
On 7 November 2012 13:37, Axel Lin wrote: > They are not referenced outside respective driver. > > Signed-off-by: Axel Lin > Cc: Jean-Christophe PLAGNIOL-VILLARD > Cc: Simon Arlott > Cc: John Crispin > Cc: Dong Aisheng > Cc: Shawn Guo > Cc: Stephen Warren >

Re: [PATCH] mfd: syscon: Add missing struct device_node declaration

2013-03-26 Thread Dong Aisheng
list > include/linux/mfd/syscon.h:20: warning: its scope is only this > definition or declaration, which is probably not what you want > > Fix it by adding a forward declaration of struct device_node. > > Cc: Dong Aisheng > Signed-off-by: Sylwester Nawrocki > Signed-of

[PATCH 1/3] of: add device node status update APIs

2013-08-15 Thread Dong Aisheng
Used for convineniently update the device node status. Signed-off-by: Dong Aisheng --- drivers/of/base.c | 74 include/linux/of.h |5 +++ 2 files changed, 79 insertions(+), 0 deletions(-) diff --git a/drivers/of/base.c b/drivers/of

[PATCH 3/3] of: add node status update via name format with cmdline

2013-08-15 Thread Dong Aisheng
-bus@0210/weim@021b8000 now: fdt.enable=i2c@021a8000,weim@021b8000 fdt.disable=weim@021b8000 Signed-off-by: Dong Aisheng --- Documentation/kernel-parameters.txt |3 +- drivers/of/base.c | 33 + drivers/of/fdt.c| 66

[PATCH 2/3] of: add update device node status via cmdline feature

2013-08-15 Thread Dong Aisheng
command line, then those devices involved with pin conflict can be enabled or disabled dynamically. Signed-off-by: Dong Aisheng --- Documentation/kernel-parameters.txt |9 + drivers/of/fdt.c| 69 +++ 2 files changed, 78 insertions(+), 0

[PATCH 0/3] of: add update device node status via cmdline feature

2013-08-15 Thread Dong Aisheng
e pin conflicts issue. The patch series is based on v3.11-rc5. Dong Aisheng (3): of: add device node status update APIs of: add update device node status via cmdline feature of: add node status update via name format with cmdline Documentation/kernel-parameters.txt | 10 +++ drivers/of/b

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-21 Thread Dong Aisheng
On Thu, Aug 15, 2013 at 01:45:48PM +0100, Grant Likely wrote: > On Thu, Aug 15, 2013 at 11:55 AM, Dong Aisheng wrote: > > We meet some boards having a lot of pin conflicts between different devices, > > only one of them can be enabled to run at one time. > > > > e.g.

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-21 Thread Dong Aisheng
On Thu, Aug 15, 2013 at 07:37:04AM -0500, Rob Herring wrote: > On 08/15/2013 05:55 AM, Dong Aisheng wrote: > > We meet some boards having a lot of pin conflicts between different devices, > > only one of them can be enabled to run at one time. > > > > e.g. imx6q sabr

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Dong Aisheng
Hi Grant, On Wed, Aug 21, 2013 at 08:37:09PM +0800, Dong Aisheng wrote: > On Thu, Aug 15, 2013 at 01:45:48PM +0100, Grant Likely wrote: > > On Thu, Aug 15, 2013 at 11:55 AM, Dong Aisheng wrote: > > > We meet some boards having a lot of pin conflicts between different > &g

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Dong Aisheng
nd it works. However it seems using uboot fdt commands is much complicated than kernel command line way as i did in this patch. We probably may would rather using add more board dts way if can not accept this patch series. I already replied that concern in last mail, can you help check it and provi

Re: [PATCH 0/3] of: add update device node status via cmdline feature

2013-08-23 Thread Dong Aisheng
On Fri, Aug 23, 2013 at 03:51:07PM +0800, Shawn Guo wrote: > The device tree mailing list is changed to devicet...@vger.kernel.org. > > On Fri, Aug 23, 2013 at 03:09:08PM +0800, Dong Aisheng wrote: > > I tried the uboot way with fdt command to change the node status, it can > &

Re: [PATCH v6 1/2] mfd: syscon: Removed unneeded field "dev" from private driver structure

2013-03-11 Thread Dong Aisheng
On Thu, Feb 28, 2013 at 06:57:13PM +0400, Alexander Shiyan wrote: > > Signed-off-by: Alexander Shiyan Acked-by: Dong Aisheng Regards Dong Aisheng -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.or

Re: [PATCH v6 2/2] mfd: syscon: Add non-DT support

2013-03-11 Thread Dong Aisheng
eturn 0; > -} > +static const struct platform_device_id syscon_ids[] = { > + { "syscon", }, > + { } > +}; > > static struct platform_driver syscon_driver = { > .driver = { > @@ -154,7 +169,7 @@ static struct platform_driver syscon_driver = { &g

Re: [PATCH v6 2/2] mfd: syscon: Add non-DT support

2013-03-11 Thread Dong Aisheng
RESOURCE_MEM, 0); > > > + if (!res) > > > + return -ENOENT; > > > > > > - ret = of_address_to_resource(np, 0, &res); > > > - if (ret) > > > - return ret; > > > + syscon->base = devm_ioremap(dev, res->start, res

[PATCH 0/7] add imx-syscon driver for general registers access

2012-08-22 Thread Dong Aisheng
mfd anatop driver which is only for anatop register access. The patch series is based on linus's tree since commit 9160338. Dong Aisheng (7): mfd: add imx syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into imx-syscon ARM: imx6q: add anatop support into imx-s

[PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng Add regmap based imx syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IOMUXC GPR and ANATOP. With this driver, we provide a standard API for client driver to call to access registers which are

[PATCH 3/7] ARM: imx6q: add anatop support into imx-syscon

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng There're a few anatop registers need to be accessed by different modules. Add anatop registers into imx-syscon support for easy access. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --

[PATCH 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during boot due to device

[PATCH 5/7] ARM: imx6q: convert to use imx-syscon to access anatop registers

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng Using standard imx syscon API to access anatop registers. Signed-off-by: Dong Aisheng --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-imx/mach-imx6q.c | 25 ++--- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach

[PATCH 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via imx syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

[PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng Using standard imx syscon API to access anatop register. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |6 ++ drivers/regulator/Kconfig|2 +- drivers/regulator/anatop-regulator.c | 17 +++-- 3 files changed, 18

[PATCH 2/7] ARM: imx6q: add iomuxc gpr support into imx-syscon

2012-08-22 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-22 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: > On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Add regmap based imx syscon driver. > > This is usually used for access misc bits in registers whi

Re: [PATCH 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-22 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 04:52:36PM +0800, Zhao Richard-B20223 wrote: > On Wed, Aug 22, 2012 at 03:18:47PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Originally the anatop regulator devices are populated by mfd anatop driver. > > Since mfd anatop drive

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 01:16:33PM +0800, Stephen Warren wrote: > On 08/22/2012 04:57 AM, Dong Aisheng wrote: > > On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: > >> On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > >>> Add

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 11:59:53PM +0800, Mark Brown wrote: > On Wed, Aug 22, 2012 at 03:18:45PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Using standard imx syscon API to access anatop register. > > Acked-by: Mark Brown > Thanks > With the

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 12:02:41AM +0800, Mark Brown wrote: > On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > > > From: Dong Aisheng > > > Add regmap based imx syscon driver. > > Nice to see more regmap-mmio usage! > > Reviwed-by: Mark Brown

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 01:21:03PM +0800, Stephen Warren wrote: > On 08/22/2012 01:18 AM, Dong Aisheng wrote: > > Signed-off-by: Dong Aisheng > > > diff --git a/drivers/regulator/anatop-regulator.c > > b/drivers/regulator/anatop-regulator.c > > > @@ -109,

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 07:06:47PM +0800, Mark Brown wrote: > On Thu, Aug 23, 2012 at 03:26:30PM +0800, Dong Aisheng wrote: > > On Thu, Aug 23, 2012 at 12:02:41AM +0800, Mark Brown wrote: > > > > It'd be good to provide a way of retrieving the regmap so that drivers

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 07:17:41PM +0800, Mark Brown wrote: > On Thu, Aug 23, 2012 at 03:15:04PM +0800, Dong Aisheng wrote: > > On Wed, Aug 22, 2012 at 11:59:53PM +0800, Mark Brown wrote: > > > > With the conversion to regmap it'd also be good to convert the driver to &

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Fri, Aug 24, 2012 at 01:56:58AM +0800, Stephen Warren wrote: > On 08/23/2012 12:12 AM, Richard Zhao wrote: > > On Wed, Aug 22, 2012 at 11:21:03PM -0600, Stephen Warren wrote: > >> On 08/22/2012 01:18 AM, Dong Aisheng wrote: > >>> Signed-off-by: Dong Aisheng &

[PATCH v2 1/7] mfd: add syscon driver based on regmap

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon

[PATCH v2 0/7] add syscon driver based on regmap for general registers access

2012-08-27 Thread Dong Aisheng
anatop driver which is only for anatop register access. The patch series is based on linus's tree 3.6-rc3 since commit 9160338. Dong Aisheng (7): mfd: add syscon driver based on regmap ARM: imx6q: add iomuxc gpr support into syscon ARM: imx6q: add anatop support into syscon regu

[PATCH v2 3/7] ARM: imx6q: add anatop support into syscon

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Signed-off-by: Dong Aisheng --- ChangeLog v1-v2: * update to use generic regmap api --- arch/arm/boot/dts/imx6q.dtsi |6 ++ drivers/regulator/Kconfig|2 +- drivers/regulator

[PATCH v2 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during boot due to device

[PATCH v2 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

[PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop registers. Signed-off-by: Dong Aisheng --- ChangeLog v1->v2: * update to use generic regmap api --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-imx/mach-imx6q.c | 43 --- 2 files changed,

[PATCH v2 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts

Re: [PATCH v6 0/4] add syscon driver based on regmap for general registers access

2012-09-17 Thread Dong Aisheng
a arm-soc tree with your ack. > Ping... Regards Dong Aisheng > Regards, > Shawn > > On Wed, Sep 05, 2012 at 10:57:12AM +0800, Dong Aisheng wrote: > > This patch series mainly adds an syscon driver which is used to access > > general system controller registers like FSL IO

Re: [PATCH v6 0/4] add syscon driver based on regmap for general registers access

2012-09-17 Thread Dong Aisheng
On Mon, Sep 17, 2012 at 09:30:54PM +0800, Samuel Ortiz wrote: > Hi Dong, > > On Mon, Sep 17, 2012 at 06:10:29PM +0800, Dong Aisheng wrote: > > Hi Samuel, > > > > On Wed, Sep 05, 2012 at 01:54:12PM +0800, Shawn Guo wrote: > > > Hi Samuel, > > > &g

Re: [PATCH] pinctrl: imx: remove duplicated const

2012-09-18 Thread Dong Aisheng
p, > { > unsigned int pin_func_id; > int ret, size; > - const const __be32 *list; > + const __be32 *list; A stupid typo. :-) > int i, j; > u32 config; > Acked-by: Dong Aisheng Regards Dong Aisheng -- To unsubscribe from this list: se

Re: linux-next: manual merge of the mfd tree with Linus' tree

2012-09-18 Thread Dong Aisheng
p_reg->control_reg, &val); > - val = (val & ((1 << anatop_reg->vol_bit_width) - 1)) >> > + mask = ((1 << anatop_reg->vol_bit_width) - 1) << > anatop_reg->vol_bit_shift; > + val = (val & mask) >> anatop_reg->vol_bit_shi

Re: [RFC PATCH 2/2] irq: add irq_desc_initialize to remove some duplicated lines

2012-07-11 Thread Dong Aisheng
Hi Thomas, Thanks for the review firstly. On Thu, Jul 12, 2012 at 06:19:18AM +0800, Thomas Gleixner wrote: > On Wed, 20 Jun 2012, Dong Aisheng wrote: > > From: Dong Aisheng > > > > There're two copies of irq_desc initialization code, reform them into > > an irq_

Re: Re[4]: [PATCH] mfd: syscon: Added support for using platform driver resources

2013-02-16 Thread Dong Aisheng
t;> > + dev_name(&pdev->dev))) >> >> > + return -EBUSY; >> >> > + >> >> > + syscon->base = ioremap(res->start, resource_size(res)); >> >> > + if (!syscon-&

  1   2   3   4   5   6   7   >