at91: regroup gpio and pinctrl under the same ranges
Fix also the reg size as we have 512 bytes bank not 256 bytes per gpio/mux controller Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>hifive-unleashed-5.1
parent
c18486e10d
commit
e4541ff212
|
@ -98,34 +98,41 @@
|
||||||
interrupts = <26 4 0 27 4 0 28 4 0>;
|
interrupts = <26 4 0 27 4 0 28 4 0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioA: gpio@fffff400 {
|
pinctrl@fffff400 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
#address-cells = <1>;
|
||||||
reg = <0xfffff400 0x100>;
|
#size-cells = <1>;
|
||||||
interrupts = <2 4 1>;
|
compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
|
||||||
#gpio-cells = <2>;
|
ranges = <0xfffff400 0xfffff400 0x600>;
|
||||||
gpio-controller;
|
|
||||||
interrupt-controller;
|
|
||||||
#interrupt-cells = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pioB: gpio@fffff600 {
|
pioA: gpio@fffff400 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff600 0x100>;
|
reg = <0xfffff400 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioC: gpio@fffff800 {
|
pioB: gpio@fffff600 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff800 0x100>;
|
reg = <0xfffff600 0x200>;
|
||||||
interrupts = <4 4 1>;
|
interrupts = <3 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pioC: gpio@fffff800 {
|
||||||
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
|
reg = <0xfffff800 0x200>;
|
||||||
|
interrupts = <4 4 1>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dbgu: serial@fffff200 {
|
dbgu: serial@fffff200 {
|
||||||
|
|
|
@ -89,54 +89,60 @@
|
||||||
reg = <0xfffffd10 0x10>;
|
reg = <0xfffffd10 0x10>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioA: gpio@fffff200 {
|
pinctrl@fffff200 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
#address-cells = <1>;
|
||||||
reg = <0xfffff200 0x100>;
|
#size-cells = <1>;
|
||||||
interrupts = <2 4 1>;
|
compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
|
||||||
#gpio-cells = <2>;
|
ranges = <0xfffff200 0xfffff200 0xa00>;
|
||||||
gpio-controller;
|
|
||||||
interrupt-controller;
|
|
||||||
#interrupt-cells = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pioB: gpio@fffff400 {
|
pioA: gpio@fffff200 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff400 0x100>;
|
reg = <0xfffff200 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioC: gpio@fffff600 {
|
pioB: gpio@fffff400 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff600 0x100>;
|
reg = <0xfffff400 0x200>;
|
||||||
interrupts = <4 4 1>;
|
interrupts = <3 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioD: gpio@fffff800 {
|
pioC: gpio@fffff600 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff800 0x100>;
|
reg = <0xfffff600 0x200>;
|
||||||
interrupts = <4 4 1>;
|
interrupts = <4 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioE: gpio@fffffa00 {
|
pioD: gpio@fffff800 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffffa00 0x100>;
|
reg = <0xfffff800 0x200>;
|
||||||
interrupts = <4 4 1>;
|
interrupts = <4 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pioE: gpio@fffffa00 {
|
||||||
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
|
reg = <0xfffffa00 0x200>;
|
||||||
|
interrupts = <4 4 1>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
dbgu: serial@ffffee00 {
|
dbgu: serial@ffffee00 {
|
||||||
|
|
|
@ -108,54 +108,61 @@
|
||||||
interrupts = <21 4 0>;
|
interrupts = <21 4 0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioA: gpio@fffff200 {
|
pinctrl@fffff200 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
#address-cells = <1>;
|
||||||
reg = <0xfffff200 0x100>;
|
#size-cells = <1>;
|
||||||
interrupts = <2 4 1>;
|
compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
|
||||||
#gpio-cells = <2>;
|
ranges = <0xfffff200 0xfffff200 0xa00>;
|
||||||
gpio-controller;
|
|
||||||
interrupt-controller;
|
|
||||||
#interrupt-cells = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pioB: gpio@fffff400 {
|
pioA: gpio@fffff200 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff400 0x100>;
|
reg = <0xfffff200 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioC: gpio@fffff600 {
|
pioB: gpio@fffff400 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff600 0x100>;
|
reg = <0xfffff400 0x200>;
|
||||||
interrupts = <4 4 1>;
|
interrupts = <3 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioD: gpio@fffff800 {
|
pioC: gpio@fffff600 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff800 0x100>;
|
reg = <0xfffff600 0x200>;
|
||||||
interrupts = <5 4 1>;
|
interrupts = <4 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioE: gpio@fffffa00 {
|
pioD: gpio@fffff800 {
|
||||||
compatible = "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffffa00 0x100>;
|
reg = <0xfffff800 0x200>;
|
||||||
interrupts = <5 4 1>;
|
interrupts = <5 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pioE: gpio@fffffa00 {
|
||||||
|
compatible = "atmel,at91rm9200-gpio";
|
||||||
|
reg = <0xfffffa00 0x200>;
|
||||||
|
interrupts = <5 4 1>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dbgu: serial@ffffee00 {
|
dbgu: serial@ffffee00 {
|
||||||
|
|
|
@ -102,44 +102,51 @@
|
||||||
interrupts = <20 4 0>;
|
interrupts = <20 4 0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioA: gpio@fffff400 {
|
pinctrl@fffff400 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
#address-cells = <1>;
|
||||||
reg = <0xfffff400 0x100>;
|
#size-cells = <1>;
|
||||||
interrupts = <2 4 1>;
|
compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
|
||||||
#gpio-cells = <2>;
|
ranges = <0xfffff400 0xfffff400 0x800>;
|
||||||
gpio-controller;
|
|
||||||
interrupt-controller;
|
|
||||||
#interrupt-cells = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pioB: gpio@fffff600 {
|
pioA: gpio@fffff400 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff600 0x100>;
|
reg = <0xfffff400 0x200>;
|
||||||
interrupts = <2 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioC: gpio@fffff800 {
|
pioB: gpio@fffff600 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff800 0x100>;
|
reg = <0xfffff600 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioD: gpio@fffffa00 {
|
pioC: gpio@fffff800 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffffa00 0x100>;
|
reg = <0xfffff800 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <3 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pioD: gpio@fffffa00 {
|
||||||
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
|
reg = <0xfffffa00 0x200>;
|
||||||
|
interrupts = <3 4 1>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dbgu: serial@fffff200 {
|
dbgu: serial@fffff200 {
|
||||||
|
|
|
@ -111,44 +111,51 @@
|
||||||
interrupts = <21 4 0>;
|
interrupts = <21 4 0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioA: gpio@fffff400 {
|
pinctrl@fffff200 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
#address-cells = <1>;
|
||||||
reg = <0xfffff400 0x100>;
|
#size-cells = <1>;
|
||||||
interrupts = <2 4 1>;
|
compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
|
||||||
#gpio-cells = <2>;
|
ranges = <0xfffff400 0xfffff400 0x800>;
|
||||||
gpio-controller;
|
|
||||||
interrupt-controller;
|
|
||||||
#interrupt-cells = <2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pioB: gpio@fffff600 {
|
pioA: gpio@fffff400 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff600 0x100>;
|
reg = <0xfffff400 0x200>;
|
||||||
interrupts = <2 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioC: gpio@fffff800 {
|
pioB: gpio@fffff600 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffff800 0x100>;
|
reg = <0xfffff600 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <2 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
pioD: gpio@fffffa00 {
|
pioC: gpio@fffff800 {
|
||||||
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
reg = <0xfffffa00 0x100>;
|
reg = <0xfffff800 0x200>;
|
||||||
interrupts = <3 4 1>;
|
interrupts = <3 4 1>;
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-controller;
|
gpio-controller;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <2>;
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
pioD: gpio@fffffa00 {
|
||||||
|
compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
|
||||||
|
reg = <0xfffffa00 0x200>;
|
||||||
|
interrupts = <3 4 1>;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-controller;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
dbgu: serial@fffff200 {
|
dbgu: serial@fffff200 {
|
||||||
|
|
Loading…
Reference in New Issue