Merge tag 'ceph-for-4.20-rc1' of git://github.com/ceph/ceph-client
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / sram / sunxi-sram.txt
1 Allwinnner SoC SRAM controllers
2 -----------------------------------------------------
3
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.
7
8 Controller Node
9 ---------------
10
11 Required properties:
12 - compatible : should be:
13     - "allwinner,sun4i-a10-sram-controller" (deprecated)
14     - "allwinner,sun4i-a10-system-control"
15     - "allwinner,sun5i-a13-system-control"
16     - "allwinner,sun7i-a20-system-control", "allwinner,sun4i-a10-system-control"
17     - "allwinner,sun8i-a23-system-control"
18     - "allwinner,sun8i-h3-system-control"
19     - "allwinner,sun50i-a64-sram-controller" (deprecated)
20     - "allwinner,sun50i-a64-system-control"
21     - "allwinner,sun50i-h6-system-control", "allwinner,sun50i-a64-system-control"
22 - reg : sram controller register offset + length
23
24 SRAM nodes
25 ----------
26
27 Each SRAM is described using the mmio-sram bindings documented in
28 Documentation/devicetree/bindings/sram/sram.txt
29
30 Each SRAM will have SRAM sections that are going to be handled by the
31 SRAM controller as subnodes. These sections are represented following
32 once again the representation described in the mmio-sram binding.
33
34 The valid sections compatible for A10 are:
35     - allwinner,sun4i-a10-sram-a3-a4
36     - allwinner,sun4i-a10-sram-c1
37     - allwinner,sun4i-a10-sram-d
38
39 The valid sections compatible for A13 are:
40     - allwinner,sun5i-a13-sram-a3-a4, allwinner,sun4i-a10-sram-a3-a4
41     - allwinner,sun5i-a13-sram-c1, allwinner,sun4i-a10-sram-c1
42     - allwinner,sun5i-a13-sram-d, allwinner,sun4i-a10-sram-d
43
44 The valid sections compatible for A20 are:
45     - allwinner,sun7i-a20-sram-a3-a4, allwinner,sun4i-a10-sram-a3-a4
46     - allwinner,sun7i-a20-sram-c1, allwinner,sun4i-a10-sram-c1
47     - allwinner,sun7i-a20-sram-d, allwinner,sun4i-a10-sram-d
48
49 The valid sections compatible for A23/A33 are:
50     - allwinner,sun8i-a23-sram-c1, allwinner,sun4i-a10-sram-c1
51
52 The valid sections compatible for H3 are:
53     - allwinner,sun8i-h3-sram-c1, allwinner,sun4i-a10-sram-c1
54
55 The valid sections compatible for A64 are:
56     - allwinner,sun50i-a64-sram-c
57
58 The valid sections compatible for H6 are:
59     - allwinner,sun50i-h6-sram-c, allwinner,sun50i-a64-sram-c
60
61 Devices using SRAM sections
62 ---------------------------
63
64 Some devices need to request to the SRAM controller to map an SRAM for
65 their exclusive use.
66
67 The relationship between such a device and an SRAM section is
68 expressed through the allwinner,sram property, that will take a
69 phandle and an argument.
70
71 This valid values for this argument are:
72   - 0: CPU
73   - 1: Device
74
75 Example
76 -------
77 system-control@1c00000 {
78         compatible = "allwinner,sun4i-a10-system-control";
79         reg = <0x01c00000 0x30>;
80         #address-cells = <1>;
81         #size-cells = <1>;
82         ranges;
83
84         sram_a: sram@00000000 {
85                 compatible = "mmio-sram";
86                 reg = <0x00000000 0xc000>;
87                 #address-cells = <1>;
88                 #size-cells = <1>;
89                 ranges = <0 0x00000000 0xc000>;
90
91                 emac_sram: sram-section@8000 {
92                         compatible = "allwinner,sun4i-a10-sram-a3-a4";
93                         reg = <0x8000 0x4000>;
94                 };
95         };
96 };
97
98 emac: ethernet@1c0b000 {
99         compatible = "allwinner,sun4i-a10-emac";
100         ...
101
102         allwinner,sram = <&emac_sram 1>;
103 };