1 Allwinnner SoC SRAM controllers
2 -----------------------------------------------------
4 The SRAM controller found on most Allwinner devices is represented by
5 a regular node for the SRAM controller itself, with sub-nodes
6 reprensenting the SRAM handled by the SRAM controller.
12 - compatible : should be:
13 - "allwinner,sun4i-a10-sram-controller"
14 - "allwinner,sun50i-a64-sram-controller"
15 - reg : sram controller register offset + length
20 Each SRAM is described using the mmio-sram bindings documented in
21 Documentation/devicetree/bindings/sram/sram.txt
23 Each SRAM will have SRAM sections that are going to be handled by the
24 SRAM controller as subnodes. These sections are represented following
25 once again the representation described in the mmio-sram binding.
27 The valid sections compatible for A10 are:
28 - allwinner,sun4i-a10-sram-a3-a4
29 - allwinner,sun4i-a10-sram-d
31 The valid sections compatible for A64 are:
32 - allwinner,sun50i-a64-sram-c
34 Devices using SRAM sections
35 ---------------------------
37 Some devices need to request to the SRAM controller to map an SRAM for
40 The relationship between such a device and an SRAM section is
41 expressed through the allwinner,sram property, that will take a
42 phandle and an argument.
44 This valid values for this argument are:
50 sram-controller@01c00000 {
51 compatible = "allwinner,sun4i-a10-sram-controller";
52 reg = <0x01c00000 0x30>;
57 sram_a: sram@00000000 {
58 compatible = "mmio-sram";
59 reg = <0x00000000 0xc000>;
62 ranges = <0 0x00000000 0xc000>;
64 emac_sram: sram-section@8000 {
65 compatible = "allwinner,sun4i-a10-sram-a3-a4";
66 reg = <0x8000 0x4000>;
71 emac: ethernet@01c0b000 {
72 compatible = "allwinner,sun4i-a10-emac";
75 allwinner,sram = <&emac_sram 1>;