]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: sun5i: Add A13 and A10s SRAM and SRAM controller
authorHans de Goede <hdegoede@redhat.com>
Thu, 26 Mar 2015 14:53:43 +0000 (15:53 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 27 Apr 2015 06:20:31 +0000 (08:20 +0200)
The A13 / A10s has a few SRAM that can be mapped either to a device or to
the CPU, with the mapping being controlled by a SRAM controller.

Since most of the time these SRAM won't be accessible by the CPU,
we can't use the mmio-sram driver and compatible.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun5i.dtsi

index df5f2fbf69749c6e4b96cfc1496afcf3098068b2..96b20d646b3fa29ea3429c00eaead40bc8dc0c07 100644 (file)
                };
        };
 
+       /*
+        * Note we use the address where the mmio registers start, not where
+        * the SRAM blocks start, this cannot be changed because that would be
+        * a devicetree ABI change.
+        */
        soc@01c00000 {
                compatible = "simple-bus";
                #address-cells = <1>;
                #size-cells = <1>;
                ranges;
 
+               sram@00000000 {
+                       compatible = "allwinner,sun4i-a10-sram";
+                       reg = <0x00000000 0x4000>;
+                       allwinner,sram-name = "A1";
+               };
+
+               sram@00004000 {
+                       compatible = "allwinner,sun4i-a10-sram";
+                       reg = <0x00004000 0x4000>;
+                       allwinner,sram-name = "A2";
+               };
+
+               sram@00008000 {
+                       compatible = "allwinner,sun4i-a10-sram";
+                       reg = <0x00008000 0x4000>;
+                       allwinner,sram-name = "A3-A4";
+               };
+
+               sram@00010000 {
+                       compatible = "allwinner,sun4i-a10-sram";
+                       reg = <0x00010000 0x1000>;
+                       allwinner,sram-name = "D";
+               };
+
+               sram-controller@01c00000 {
+                       compatible = "allwinner,sun4i-a10-sram-controller";
+                       reg = <0x01c00000 0x30>;
+               };
+
                dma: dma-controller@01c02000 {
                        compatible = "allwinner,sun4i-a10-dma";
                        reg = <0x01c02000 0x1000>;