ARM: at91/dt: add SRAM nodes
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 13 Jan 2015 18:12:24 +0000 (19:12 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 15 Jan 2015 14:32:30 +0000 (15:32 +0100)
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>
arch/arm/boot/dts/at91rm9200.dtsi
arch/arm/boot/dts/at91sam9260.dtsi
arch/arm/boot/dts/at91sam9261.dtsi
arch/arm/boot/dts/at91sam9263.dtsi
arch/arm/boot/dts/at91sam9g20.dtsi
arch/arm/boot/dts/at91sam9g45.dtsi
arch/arm/boot/dts/at91sam9n12.dtsi
arch/arm/boot/dts/at91sam9rl.dtsi
arch/arm/boot/dts/at91sam9x5.dtsi
arch/arm/boot/dts/sama5d3.dtsi
arch/arm/boot/dts/sama5d4.dtsi

index f449a86..21c2b50 100644 (file)
                };
        };
 
+       sram: sram@00200000 {
+               compatible = "mmio-sram";
+               reg = <0x00200000 0x4000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index dd1313c..fff0ee6 100644 (file)
                };
        };
 
+       sram0: sram@002ff000 {
+               compatible = "mmio-sram";
+               reg = <0x002ff000 0x2000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index cdb9ed6..e247b0b 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x28000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index ef8a70c..8a210d5 100644 (file)
                };
        };
 
+       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>;
index a50ee58..f593016 100644 (file)
                reg = <0x20000000 0x08000000>;
        };
 
+       sram0: sram@002ff000 {
+               status = "disabled";
+       };
+
+       sram1: sram@002fc000 {
+               compatible = "mmio-sram";
+               reg = <0x002fc000 0x8000>;
+       };
+
        ahb {
                apb {
                        i2c0: i2c@fffac000 {
index 2a8da8a..ee80aa9 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x10000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
                        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";
                        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";
index 1d69db2..c2666a7 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x8000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index 7242437..40f645b 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x10000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index bbb3ba6..818dabd 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x8000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index d701ddd..e17614f 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x20000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index 0a2477f..1b4fe4e 100644 (file)
                };
        };
 
+       ns_sram: sram@00210000 {
+               compatible = "mmio-sram";
+               reg = <0x00210000 0x10000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;