Skip to content

Commit

Permalink
ARM: at91/dt: add SRAM nodes
Browse files Browse the repository at this point in the history
Add nodes for the SRAM available on atmel SoCs
For the at91sam9260 and the at91sam9g20, address mirroring is used to create a
single contiguous SRAM range instead of declaring two separate banks.

Also remove leftover TODOs in the sam9g45 file

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[nicolas.ferre@atmel.com: correct at91sam9rl sram size => 0x10000]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Alexandre Belloni authored and Nicolas Ferre committed Jan 15, 2015
1 parent 74335f4 commit f04660e
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 2 deletions.
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/at91rm9200.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
};
};

sram: sram@00200000 {
compatible = "mmio-sram";
reg = <0x00200000 0x4000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/at91sam9260.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
};
};

sram0: sram@002ff000 {
compatible = "mmio-sram";
reg = <0x002ff000 0x2000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/at91sam9261.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
};
};

sram: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x28000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/at91sam9263.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
};
};

sram0: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x14000>;
};

sram1: sram@00500000 {
compatible = "mmio-sram";
reg = <0x00300000 0x4000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/at91sam9g20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
reg = <0x20000000 0x08000000>;
};

sram0: sram@002ff000 {
status = "disabled";
};

sram1: sram@002fc000 {
compatible = "mmio-sram";
reg = <0x002fc000 0x8000>;
};

ahb {
apb {
i2c0: i2c@fffac000 {
Expand Down
7 changes: 5 additions & 2 deletions arch/arm/boot/dts/at91sam9g45.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
};
};

sram: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x10000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down Expand Up @@ -1287,7 +1292,6 @@
compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00700000 0x100000>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
//TODO
clocks = <&usb>, <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
status = "disabled";
Expand All @@ -1297,7 +1301,6 @@
compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
reg = <0x00800000 0x100000>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
//TODO
clocks = <&usb>, <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
clock-names = "usb_clk", "ehci_clk", "hclk", "uhpck";
status = "disabled";
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/at91sam9n12.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
};
};

sram: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x8000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/at91sam9rl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
};
};

sram: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x10000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/at91sam9x5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
};
};

sram: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x8000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/sama5d3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
};
};

sram: sram@00300000 {
compatible = "mmio-sram";
reg = <0x00300000 0x20000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/sama5d4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
};
};

ns_sram: sram@00210000 {
compatible = "mmio-sram";
reg = <0x00210000 0x10000>;
};

ahb {
compatible = "simple-bus";
#address-cells = <1>;
Expand Down

0 comments on commit f04660e

Please sign in to comment.