]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - Documentation/devicetree/bindings/sram/sunxi-sram.txt
Merge tag 'devicetree-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-bionic-kernel.git] / Documentation / devicetree / bindings / sram / sunxi-sram.txt
CommitLineData
4af34b57
MR
1Allwinnner SoC SRAM controllers
2-----------------------------------------------------
3
4The SRAM controller found on most Allwinner devices is represented by
5a regular node for the SRAM controller itself, with sub-nodes
6reprensenting the SRAM handled by the SRAM controller.
7
8Controller Node
9---------------
10
11Required properties:
189f0282
IZ
12- compatible : should be:
13 - "allwinner,sun4i-a10-sram-controller"
14 - "allwinner,sun50i-a64-sram-controller"
4af34b57
MR
15- reg : sram controller register offset + length
16
17SRAM nodes
18----------
19
20Each SRAM is described using the mmio-sram bindings documented in
22697acd 21Documentation/devicetree/bindings/sram/sram.txt
4af34b57
MR
22
23Each SRAM will have SRAM sections that are going to be handled by the
24SRAM controller as subnodes. These sections are represented following
25once again the representation described in the mmio-sram binding.
26
189f0282 27The valid sections compatible for A10 are:
4af34b57
MR
28 - allwinner,sun4i-a10-sram-a3-a4
29 - allwinner,sun4i-a10-sram-d
30
189f0282
IZ
31The valid sections compatible for A64 are:
32 - allwinner,sun50i-a64-sram-c
33
4af34b57
MR
34Devices using SRAM sections
35---------------------------
36
37Some devices need to request to the SRAM controller to map an SRAM for
38their exclusive use.
39
40The relationship between such a device and an SRAM section is
41expressed through the allwinner,sram property, that will take a
42phandle and an argument.
43
44This valid values for this argument are:
45 - 0: CPU
46 - 1: Device
47
48Example
49-------
48c926cd 50sram-controller@1c00000 {
4af34b57
MR
51 compatible = "allwinner,sun4i-a10-sram-controller";
52 reg = <0x01c00000 0x30>;
53 #address-cells = <1>;
54 #size-cells = <1>;
55 ranges;
56
57 sram_a: sram@00000000 {
58 compatible = "mmio-sram";
59 reg = <0x00000000 0xc000>;
60 #address-cells = <1>;
61 #size-cells = <1>;
62 ranges = <0 0x00000000 0xc000>;
63
64 emac_sram: sram-section@8000 {
65 compatible = "allwinner,sun4i-a10-sram-a3-a4";
66 reg = <0x8000 0x4000>;
4af34b57
MR
67 };
68 };
69};
70
48c926cd 71emac: ethernet@1c0b000 {
4af34b57
MR
72 compatible = "allwinner,sun4i-a10-emac";
73 ...
74
75 allwinner,sram = <&emac_sram 1>;
76};