2015-06-01 17:04:26 +08:00
|
|
|
Allwinnner SoC SRAM controllers
|
|
|
|
-----------------------------------------------------
|
|
|
|
|
|
|
|
The SRAM controller found on most Allwinner devices is represented by
|
|
|
|
a regular node for the SRAM controller itself, with sub-nodes
|
|
|
|
reprensenting the SRAM handled by the SRAM controller.
|
|
|
|
|
|
|
|
Controller Node
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Required properties:
|
2017-08-09 16:56:24 +08:00
|
|
|
- compatible : should be:
|
2018-07-10 16:00:55 +08:00
|
|
|
- "allwinner,sun4i-a10-sram-controller" (deprecated)
|
|
|
|
- "allwinner,sun4i-a10-system-control"
|
2018-07-10 16:00:56 +08:00
|
|
|
- "allwinner,sun5i-a13-system-control"
|
|
|
|
- "allwinner,sun7i-a20-system-control", "allwinner,sun4i-a10-system-control"
|
|
|
|
- "allwinner,sun8i-a23-system-control"
|
|
|
|
- "allwinner,sun8i-h3-system-control"
|
2018-05-17 13:59:03 +08:00
|
|
|
- "allwinner,sun50i-a64-sram-controller" (deprecated)
|
|
|
|
- "allwinner,sun50i-a64-system-control"
|
2018-12-05 17:24:34 +08:00
|
|
|
- "allwinner,sun50i-h5-system-control"
|
2018-09-02 15:26:17 +08:00
|
|
|
- "allwinner,sun50i-h6-system-control", "allwinner,sun50i-a64-system-control"
|
2018-12-03 04:23:48 +08:00
|
|
|
- "allwinner,suniv-f1c100s-system-control", "allwinner,sun4i-a10-system-control"
|
2015-06-01 17:04:26 +08:00
|
|
|
- reg : sram controller register offset + length
|
|
|
|
|
|
|
|
SRAM nodes
|
|
|
|
----------
|
|
|
|
|
|
|
|
Each SRAM is described using the mmio-sram bindings documented in
|
2015-11-19 08:42:49 +08:00
|
|
|
Documentation/devicetree/bindings/sram/sram.txt
|
2015-06-01 17:04:26 +08:00
|
|
|
|
|
|
|
Each SRAM will have SRAM sections that are going to be handled by the
|
|
|
|
SRAM controller as subnodes. These sections are represented following
|
|
|
|
once again the representation described in the mmio-sram binding.
|
|
|
|
|
2017-08-09 16:56:24 +08:00
|
|
|
The valid sections compatible for A10 are:
|
2015-06-01 17:04:26 +08:00
|
|
|
- allwinner,sun4i-a10-sram-a3-a4
|
2018-07-10 16:00:57 +08:00
|
|
|
- allwinner,sun4i-a10-sram-c1
|
2015-06-01 17:04:26 +08:00
|
|
|
- allwinner,sun4i-a10-sram-d
|
|
|
|
|
2018-07-10 16:00:57 +08:00
|
|
|
The valid sections compatible for A13 are:
|
|
|
|
- allwinner,sun5i-a13-sram-a3-a4, allwinner,sun4i-a10-sram-a3-a4
|
|
|
|
- allwinner,sun5i-a13-sram-c1, allwinner,sun4i-a10-sram-c1
|
|
|
|
- allwinner,sun5i-a13-sram-d, allwinner,sun4i-a10-sram-d
|
|
|
|
|
|
|
|
The valid sections compatible for A20 are:
|
|
|
|
- allwinner,sun7i-a20-sram-a3-a4, allwinner,sun4i-a10-sram-a3-a4
|
|
|
|
- allwinner,sun7i-a20-sram-c1, allwinner,sun4i-a10-sram-c1
|
|
|
|
- allwinner,sun7i-a20-sram-d, allwinner,sun4i-a10-sram-d
|
|
|
|
|
|
|
|
The valid sections compatible for A23/A33 are:
|
|
|
|
- allwinner,sun8i-a23-sram-c1, allwinner,sun4i-a10-sram-c1
|
|
|
|
|
|
|
|
The valid sections compatible for H3 are:
|
|
|
|
- allwinner,sun8i-h3-sram-c1, allwinner,sun4i-a10-sram-c1
|
|
|
|
|
2017-08-09 16:56:24 +08:00
|
|
|
The valid sections compatible for A64 are:
|
|
|
|
- allwinner,sun50i-a64-sram-c
|
2018-12-05 17:24:38 +08:00
|
|
|
- allwinner,sun50i-a64-sram-c1, allwinner,sun4i-a10-sram-c1
|
2017-08-09 16:56:24 +08:00
|
|
|
|
2018-12-05 17:24:34 +08:00
|
|
|
The valid sections compatible for H5 are:
|
|
|
|
- allwinner,sun50i-h5-sram-c1, allwinner,sun4i-a10-sram-c1
|
|
|
|
|
2018-09-02 15:26:17 +08:00
|
|
|
The valid sections compatible for H6 are:
|
|
|
|
- allwinner,sun50i-h6-sram-c, allwinner,sun50i-a64-sram-c
|
2019-01-29 04:55:02 +08:00
|
|
|
- allwinner,sun50i-h6-sram-c1, allwinner,sun4i-a10-sram-c1
|
2018-09-02 15:26:17 +08:00
|
|
|
|
2018-12-03 04:23:48 +08:00
|
|
|
The valid sections compatible for F1C100s are:
|
|
|
|
- allwinner,suniv-f1c100s-sram-d, allwinner,sun4i-a10-sram-d
|
|
|
|
|
2015-06-01 17:04:26 +08:00
|
|
|
Devices using SRAM sections
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
Some devices need to request to the SRAM controller to map an SRAM for
|
|
|
|
their exclusive use.
|
|
|
|
|
|
|
|
The relationship between such a device and an SRAM section is
|
|
|
|
expressed through the allwinner,sram property, that will take a
|
|
|
|
phandle and an argument.
|
|
|
|
|
|
|
|
This valid values for this argument are:
|
|
|
|
- 0: CPU
|
|
|
|
- 1: Device
|
|
|
|
|
|
|
|
Example
|
|
|
|
-------
|
2018-07-10 16:00:55 +08:00
|
|
|
system-control@1c00000 {
|
|
|
|
compatible = "allwinner,sun4i-a10-system-control";
|
2015-06-01 17:04:26 +08:00
|
|
|
reg = <0x01c00000 0x30>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
sram_a: sram@00000000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x00000000 0xc000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 0x00000000 0xc000>;
|
|
|
|
|
|
|
|
emac_sram: sram-section@8000 {
|
|
|
|
compatible = "allwinner,sun4i-a10-sram-a3-a4";
|
|
|
|
reg = <0x8000 0x4000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-11-09 00:27:48 +08:00
|
|
|
emac: ethernet@1c0b000 {
|
2015-06-01 17:04:26 +08:00
|
|
|
compatible = "allwinner,sun4i-a10-emac";
|
|
|
|
...
|
|
|
|
|
|
|
|
allwinner,sram = <&emac_sram 1>;
|
|
|
|
};
|