return ret;
> + } else {
> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> + if (!res)
> + return -ENXIO;
> +
> + if (!request_mem_region(res->start, resource_size(res),
> +
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
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
>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
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
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
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
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
, 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
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
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
_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
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.
> > >
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
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
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:/
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
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
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 &
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-
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
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
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
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
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
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
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
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
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
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
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
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(
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
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
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
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
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
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
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
&
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
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.
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
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
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
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
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
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
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
->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&
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
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
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
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
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.
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
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
>
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
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
-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
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
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
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.
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
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
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
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
> &
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
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
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
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
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
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 --
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
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
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
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
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
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
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
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
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
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
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,
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
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
&
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
&
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
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
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
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
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
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
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,
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
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
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
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
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
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_
t;> > + dev_name(&pdev->dev)))
>> >> > + return -EBUSY;
>> >> > +
>> >> > + syscon->base = ioremap(res->start, resource_size(res));
>> >> > + if (!syscon-&
1 - 100 of 689 matches
Mail list logo