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 f449a864b81e19d0d84c6198032c4082382602a9..21c2b504f977d16088ce290386ba73ddb4333b6b 100644 (file)
                };
        };
 
+       sram: sram@00200000 {
+               compatible = "mmio-sram";
+               reg = <0x00200000 0x4000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index dd1313cbc3149516cd7f32e173683337e025abae..fff0ee69aab495361898b503268fd300a02832c1 100644 (file)
                };
        };
 
+       sram0: sram@002ff000 {
+               compatible = "mmio-sram";
+               reg = <0x002ff000 0x2000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index cdb9ed6121091db2915cbb4fed0286a2120eadcd..e247b0b5fdab2fe1cb41e57fd51450ae723256dd 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x28000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index ef8a70c274390593796d6e551f4b8375a0baca61..8a210d5033b1c18e73e3c92a25427b6c5f6c6cc1 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 a50ee587a7af61a863aec77412d09c1dd2f519f7..f5930161816371128530533b70ff298fa64cfb0a 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 2a8da8a884b44d37117d73d14a88aa026dbbfe5a..ee80aa9c0759c17f178965181fb28f2a562f6b13 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 1d69db2e9e28064bfadb03107c6cb82bada5bdc2..c2666a7cb5b19b547d31f11d58d5af1c13d36acb 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x8000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index 72424371413e7404f2a87455e34c0014603adf4e..40f645b8fe25699d51904e5bdcaba8251375686a 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x10000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index bbb3ba65165f5b7f2ca132ab2787c87da2b25897..818dabdd8c0e08e3089092f27117c1927bc6122f 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x8000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index d701ddda0e001b1d5f518fa6676ae951ed7fcb1c..e17614fe58a932a426080b7b7e3310f441b34830 100644 (file)
                };
        };
 
+       sram: sram@00300000 {
+               compatible = "mmio-sram";
+               reg = <0x00300000 0x20000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;
index 0a2477fe55257857b9af5bcda7ca5472778c7173..1b4fe4e1972130e3687f6d2090265ce42f699878 100644 (file)
                };
        };
 
+       ns_sram: sram@00210000 {
+               compatible = "mmio-sram";
+               reg = <0x00210000 0x10000>;
+       };
+
        ahb {
                compatible = "simple-bus";
                #address-cells = <1>;