Re: [PATCH 2/2] ARM: ux500: add pinctrl address resources

2012-12-20 Thread Linus Walleij
On Tue, Dec 18, 2012 at 10:12 AM, Fabio Baltieri
 wrote:

> Current nmk_pinctrl driver is not PRCMU dependent anymore, so it needs
> its own DT address resources to work properly, as done for
> platform_device in:
>
> f482833 ARM: ux500: add PRCM register base for pinctrl
>
> Reviewed-by: Linus Walleij 
> Signed-off-by: Fabio Baltieri 

Applied these two to the pinctrl fixes with one alteration:

> +   pinctrl@80157000 {
> +   reg = <0x80157000 0x2000>;
> compatible = "stericsson,nmk_pinctrl";

I inserted a comment here like this:

pinctrl@80157000 {
+   // This is actually the PRCMU base address
reg = <0x80157000 0x2000>;

Yours,
Linus Walleij
--
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://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 2/2] ARM: ux500: add pinctrl address resources

2012-12-20 Thread Linus Walleij
On Tue, Dec 18, 2012 at 10:12 AM, Fabio Baltieri
fabio.balti...@linaro.org wrote:

 Current nmk_pinctrl driver is not PRCMU dependent anymore, so it needs
 its own DT address resources to work properly, as done for
 platform_device in:

 f482833 ARM: ux500: add PRCM register base for pinctrl

 Reviewed-by: Linus Walleij linus.wall...@linaro.org
 Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org

Applied these two to the pinctrl fixes with one alteration:

 +   pinctrl@80157000 {
 +   reg = 0x80157000 0x2000;
 compatible = stericsson,nmk_pinctrl;

I inserted a comment here like this:

pinctrl@80157000 {
+   // This is actually the PRCMU base address
reg = 0x80157000 0x2000;

Yours,
Linus Walleij
--
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://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/2] ARM: ux500: add pinctrl address resources

2012-12-18 Thread Fabio Baltieri
Current nmk_pinctrl driver is not PRCMU dependent anymore, so it needs
its own DT address resources to work properly, as done for
platform_device in:

f482833 ARM: ux500: add PRCM register base for pinctrl

Reviewed-by: Linus Walleij 
Signed-off-by: Fabio Baltieri 
---
 arch/arm/boot/dts/dbx5x0.dtsi| 3 ++-
 arch/arm/mach-ux500/cpu-db8500.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi
index 2efd9c8..16552d4 100644
--- a/arch/arm/boot/dts/dbx5x0.dtsi
+++ b/arch/arm/boot/dts/dbx5x0.dtsi
@@ -170,7 +170,8 @@
gpio-bank = <8>;
};
 
-   pinctrl {
+   pinctrl@80157000 {
+   reg = <0x80157000 0x2000>;
compatible = "stericsson,nmk_pinctrl";
};
 
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index db0bb75..5b286e0 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -285,7 +285,8 @@ static struct of_dev_auxdata u8500_auxdata_lookup[] 
__initdata = {
OF_DEV_AUXDATA("st,nomadik-i2c", 0x8011, "nmk-i2c.3", NULL),
OF_DEV_AUXDATA("st,nomadik-i2c", 0x8012a000, "nmk-i2c.4", NULL),
/* Requires device name bindings. */
-   OF_DEV_AUXDATA("stericsson,nmk_pinctrl", 0, "pinctrl-db8500", NULL),
+   OF_DEV_AUXDATA("stericsson,nmk_pinctrl", U8500_PRCMU_BASE,
+   "pinctrl-db8500", NULL),
/* Requires clock name and DMA bindings. */
OF_DEV_AUXDATA("stericsson,ux500-msp-i2s", 0x80123000,
"ux500-msp-i2s.0", _platform_data),
-- 
1.7.12.1

--
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://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/2] ARM: ux500: add pinctrl address resources

2012-12-18 Thread Fabio Baltieri
Current nmk_pinctrl driver is not PRCMU dependent anymore, so it needs
its own DT address resources to work properly, as done for
platform_device in:

f482833 ARM: ux500: add PRCM register base for pinctrl

Reviewed-by: Linus Walleij linus.wall...@linaro.org
Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org
---
 arch/arm/boot/dts/dbx5x0.dtsi| 3 ++-
 arch/arm/mach-ux500/cpu-db8500.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi
index 2efd9c8..16552d4 100644
--- a/arch/arm/boot/dts/dbx5x0.dtsi
+++ b/arch/arm/boot/dts/dbx5x0.dtsi
@@ -170,7 +170,8 @@
gpio-bank = 8;
};
 
-   pinctrl {
+   pinctrl@80157000 {
+   reg = 0x80157000 0x2000;
compatible = stericsson,nmk_pinctrl;
};
 
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index db0bb75..5b286e0 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -285,7 +285,8 @@ static struct of_dev_auxdata u8500_auxdata_lookup[] 
__initdata = {
OF_DEV_AUXDATA(st,nomadik-i2c, 0x8011, nmk-i2c.3, NULL),
OF_DEV_AUXDATA(st,nomadik-i2c, 0x8012a000, nmk-i2c.4, NULL),
/* Requires device name bindings. */
-   OF_DEV_AUXDATA(stericsson,nmk_pinctrl, 0, pinctrl-db8500, NULL),
+   OF_DEV_AUXDATA(stericsson,nmk_pinctrl, U8500_PRCMU_BASE,
+   pinctrl-db8500, NULL),
/* Requires clock name and DMA bindings. */
OF_DEV_AUXDATA(stericsson,ux500-msp-i2s, 0x80123000,
ux500-msp-i2s.0, msp0_platform_data),
-- 
1.7.12.1

--
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://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/