Skip to content

Commit

Permalink
ARM: dts: at91: Declare EBI/NAND controllers
Browse files Browse the repository at this point in the history
Declare new nodes for the EBI and NAND controllers embedded in various
at91/sama5 SoCs.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  • Loading branch information
Boris Brezillon authored and Alexandre Belloni committed May 31, 2017
1 parent 3a689dc commit d9c41bf
Show file tree
Hide file tree
Showing 10 changed files with 610 additions and 0 deletions.
37 changes: 37 additions & 0 deletions arch/arm/boot/dts/at91sam9260.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@
reg = <0xffffea00 0x200>;
};

smc: smc@ffffec00 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffec00 0x200>;
};

matrix: matrix@ffffee00 {
compatible = "atmel,at91sam9260-matrix", "syscon";
reg = <0xffffee00 0x200>;
};

pmc: pmc@fffffc00 {
compatible = "atmel,at91sam9260-pmc", "syscon";
reg = <0xfffffc00 0x100>;
Expand Down Expand Up @@ -1011,6 +1021,33 @@
clock-names = "ohci_clk", "hclk", "uhpck";
status = "disabled";
};

ebi: ebi@10000000 {
compatible = "atmel,at91sam9260-ebi";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc>;
atmel,matrix = <&matrix>;
reg = <0x10000000 0x80000000>;
ranges = <0x0 0x0 0x10000000 0x10000000
0x1 0x0 0x20000000 0x10000000
0x2 0x0 0x30000000 0x10000000
0x3 0x0 0x40000000 0x10000000
0x4 0x0 0x50000000 0x10000000
0x5 0x0 0x60000000 0x10000000
0x6 0x0 0x70000000 0x10000000
0x7 0x0 0x80000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller: nand-controller {
compatible = "atmel,at91sam9260-nand-controller";
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};
};

i2c-gpio-0 {
Expand Down
32 changes: 32 additions & 0 deletions arch/arm/boot/dts/at91sam9261.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,33 @@
status = "disabled";
};

ebi: ebi@10000000 {
compatible = "atmel,at91sam9261-ebi";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc>;
atmel,matrix = <&matrix>;
reg = <0x10000000 0x80000000>;
ranges = <0x0 0x0 0x10000000 0x10000000
0x1 0x0 0x20000000 0x10000000
0x2 0x0 0x30000000 0x10000000
0x3 0x0 0x40000000 0x10000000
0x4 0x0 0x50000000 0x10000000
0x5 0x0 0x60000000 0x10000000
0x6 0x0 0x70000000 0x10000000
0x7 0x0 0x80000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller: nand-controller {
compatible = "atmel,at91sam9261-nand-controller";
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};

nand0: nand@40000000 {
compatible = "atmel,at91rm9200-nand";
#address-cells = <1>;
Expand Down Expand Up @@ -262,6 +289,11 @@
reg = <0xffffea00 0x200>;
};

smc: smc@ffffec00 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffec00 0x200>;
};

matrix: matrix@ffffee00 {
compatible = "atmel,at91sam9261-matrix", "syscon";
reg = <0xffffee00 0x200>;
Expand Down
61 changes: 61 additions & 0 deletions arch/arm/boot/dts/at91sam9263.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,26 @@
reg = <0xffffe200 0x200>;
};

smc0: smc@ffffe400 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffe400 0x200>;
};

ramc1: ramc@ffffe800 {
compatible = "atmel,at91sam9260-sdramc";
reg = <0xffffe800 0x200>;
};

smc1: smc@ffffea00 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffea00 0x200>;
};

matrix: matrix@ffffec00 {
compatible = "atmel,at91sam9263-matrix", "syscon";
reg = <0xffffec00 0x200>;
};

pit: timer@fffffd30 {
compatible = "atmel,at91sam9260-pit";
reg = <0xfffffd30 0xf>;
Expand Down Expand Up @@ -1017,6 +1032,52 @@
clock-names = "ohci_clk", "hclk", "uhpck";
status = "disabled";
};

ebi0: ebi@10000000 {
compatible = "atmel,at91sam9263-ebi0";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc0>;
atmel,matrix = <&matrix>;
reg = <0x10000000 0x80000000>;
ranges = <0x0 0x0 0x10000000 0x10000000
0x1 0x0 0x20000000 0x10000000
0x2 0x0 0x30000000 0x10000000
0x3 0x0 0x40000000 0x10000000
0x4 0x0 0x50000000 0x10000000
0x5 0x0 0x60000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller0: nand-controller {
compatible = "atmel,at91sam9260-nand-controller";
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};

ebi1: ebi@70000000 {
compatible = "atmel,at91sam9263-ebi1";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc1>;
atmel,matrix = <&matrix>;
reg = <0x80000000 0x20000000>;
ranges = <0x0 0x0 0x80000000 0x10000000
0x1 0x0 0x90000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller1: nand-controller {
compatible = "atmel,at91sam9260-nand-controller";
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};
};

i2c-gpio-0 {
Expand Down
35 changes: 35 additions & 0 deletions arch/arm/boot/dts/at91sam9g45.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@
clock-names = "ddrck";
};

smc: smc@ffffe800 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffe800 0x200>;
};

matrix: matrix@ffffea00 {
compatible = "atmel,at91sam9g45-matrix", "syscon";
reg = <0xffffea00 0x200>;
};

pmc: pmc@fffffc00 {
compatible = "atmel,at91sam9g45-pmc", "syscon";
reg = <0xfffffc00 0x100>;
Expand Down Expand Up @@ -1314,6 +1324,31 @@
clock-names = "usb_clk", "ehci_clk";
status = "disabled";
};

ebi: ebi@10000000 {
compatible = "atmel,at91sam9g45-ebi";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc>;
atmel,matrix = <&matrix>;
reg = <0x10000000 0x80000000>;
ranges = <0x0 0x0 0x10000000 0x10000000
0x1 0x0 0x20000000 0x10000000
0x2 0x0 0x30000000 0x10000000
0x3 0x0 0x40000000 0x10000000
0x4 0x0 0x50000000 0x10000000
0x5 0x0 0x60000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller: nand-controller {
compatible = "atmel,at91sam9g45-nand-controller";
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};
};

i2c-gpio-0 {
Expand Down
42 changes: 42 additions & 0 deletions arch/arm/boot/dts/at91sam9n12.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,29 @@
atmel,external-irqs = <31>;
};

matrix: matrix@ffffde00 {
compatible = "atmel,at91sam9n12-matrix", "syscon";
reg = <0xffffde00 0x100>;
};

pmecc: ecc-engine@ffffe000 {
compatible = "atmel,at91sam9g45-pmecc";
reg = <0xffffe000 0x600>,
<0xffffe600 0x200>;
};

ramc0: ramc@ffffe800 {
compatible = "atmel,at91sam9g45-ddramc";
reg = <0xffffe800 0x200>;
clocks = <&ddrck>;
clock-names = "ddrck";
};

smc: smc@ffffea00 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffea00 0x200>;
};

pmc: pmc@fffffc00 {
compatible = "atmel,at91sam9n12-pmc", "syscon";
reg = <0xfffffc00 0x200>;
Expand Down Expand Up @@ -1028,6 +1044,32 @@
clock-names = "ohci_clk", "hclk", "uhpck";
status = "disabled";
};

ebi: ebi@10000000 {
compatible = "atmel,at91sam9x5-ebi";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc>;
atmel,matrix = <&matrix>;
reg = <0x10000000 0x60000000>;
ranges = <0x0 0x0 0x10000000 0x10000000
0x1 0x0 0x20000000 0x10000000
0x2 0x0 0x30000000 0x10000000
0x3 0x0 0x40000000 0x10000000
0x4 0x0 0x50000000 0x10000000
0x5 0x0 0x60000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller: nand-controller {
compatible = "atmel,at91sam9g45-nand-controller";
ecc-engine = <&pmecc>;
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};
};

i2c-gpio-0 {
Expand Down
35 changes: 35 additions & 0 deletions arch/arm/boot/dts/at91sam9rl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,31 @@
status = "disabled";
};

ebi: ebi@10000000 {
compatible = "atmel,at91sam9rl-ebi";
#address-cells = <2>;
#size-cells = <1>;
atmel,smc = <&smc>;
atmel,matrix = <&matrix>;
reg = <0x10000000 0x80000000>;
ranges = <0x0 0x0 0x10000000 0x10000000
0x1 0x0 0x20000000 0x10000000
0x2 0x0 0x30000000 0x10000000
0x3 0x0 0x40000000 0x10000000
0x4 0x0 0x50000000 0x10000000
0x5 0x0 0x60000000 0x10000000>;
clocks = <&mck>;
status = "disabled";

nand_controller: nand-controller {
compatible = "atmel,at91sam9g45-nand-controller";
#address-cells = <2>;
#size-cells = <1>;
ranges;
status = "disabled";
};
};

nand0: nand@40000000 {
compatible = "atmel,at91rm9200-nand";
#address-cells = <1>;
Expand Down Expand Up @@ -364,6 +389,16 @@
reg = <0xffffea00 0x200>;
};

smc: smc@ffffec00 {
compatible = "atmel,at91sam9260-smc", "syscon";
reg = <0xffffec00 0x200>;
};

matrix: matrix@ffffee00 {
compatible = "atmel,at91sam9rl-matrix", "syscon";
reg = <0xffffee00 0x200>;
};

aic: interrupt-controller@fffff000 {
#interrupt-cells = <3>;
compatible = "atmel,at91rm9200-aic";
Expand Down
Loading

0 comments on commit d9c41bf

Please sign in to comment.