2015-04-27 09:15:04

by Ludovic Desroches

[permalink] [raw]
Subject: [PATCH] ARM: at91/dt: sama5d4: update pinctrl ranges

Update the pinctrl ranges property to support pioD controller whose
mapping is not contiguous with other pio controllers. Without this
update, getting resource will fail, then pinctrl probe will fail too
because there is a missing pio controller.

Signed-off-by: Ludovic Desroches <[email protected]>
---
arch/arm/boot/dts/sama5d4.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi
index 8679fa9..2cfc65f 100644
--- a/arch/arm/boot/dts/sama5d4.dtsi
+++ b/arch/arm/boot/dts/sama5d4.dtsi
@@ -1214,7 +1214,8 @@
#address-cells = <1>;
#size-cells = <1>;
compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
- ranges = <0xfc06a000 0xfc06a000 0x4000>;
+ ranges = <0xfc068000 0xfc068000 0x100
+ 0xfc06a000 0xfc06a000 0x4000>;
/* WARNING: revisit as pin spec has changed */
atmel,mux-mask = <
/* A B C */
--
2.1.4


2015-05-18 15:53:54

by Nicolas Ferre

[permalink] [raw]
Subject: Re: [PATCH] ARM: at91/dt: sama5d4: update pinctrl ranges

Le 27/04/2015 11:15, Ludovic Desroches a ?crit :
> Update the pinctrl ranges property to support pioD controller whose
> mapping is not contiguous with other pio controllers. Without this
> update, getting resource will fail, then pinctrl probe will fail too
> because there is a missing pio controller.
>
> Signed-off-by: Ludovic Desroches <[email protected]>

Acked-by: Nicolas Ferre <[email protected]>

Thanks.

> ---
> arch/arm/boot/dts/sama5d4.dtsi | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi
> index 8679fa9..2cfc65f 100644
> --- a/arch/arm/boot/dts/sama5d4.dtsi
> +++ b/arch/arm/boot/dts/sama5d4.dtsi
> @@ -1214,7 +1214,8 @@
> #address-cells = <1>;
> #size-cells = <1>;
> compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
> - ranges = <0xfc06a000 0xfc06a000 0x4000>;
> + ranges = <0xfc068000 0xfc068000 0x100
> + 0xfc06a000 0xfc06a000 0x4000>;
> /* WARNING: revisit as pin spec has changed */
> atmel,mux-mask = <
> /* A B C */
>


--
Nicolas Ferre