1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/sram/sram.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic on-chip SRAM
10 - Rob Herring <robh@kernel.org>
13 Simple IO memory regions to be managed by the genalloc API.
15 Each child of the sram node specifies a region of reserved memory. Each
16 child node should use a 'reg' property to specify a specific range of
19 Following the generic-names recommended practice, node names should
20 reflect the purpose of the node. Unit address (@<address>) should be
25 pattern: "^sram(@.*)?"
31 - atmel,sama5d2-securam
38 A list of phandle and clock specifier pair that controls the single
49 Should translate from local addresses within the sram to bus addresses.
53 The flag indicating, that SRAM memory region has not to be remapped
54 as write combining. WC is used by default.
58 "^([a-z]*-)?sram(-section)?@[a-f0-9]+$":
61 Each child of the sram node specifies a region of reserved memory.
65 Should contain a vendor specific string in the form
66 <vendor>,[<device>-]<usage>
69 - allwinner,sun4i-a10-sram-a3-a4
70 - allwinner,sun4i-a10-sram-c1
71 - allwinner,sun4i-a10-sram-d
72 - allwinner,sun9i-a80-smp-sram
73 - allwinner,sun50i-a64-sram-c
74 - amlogic,meson8-smp-sram
75 - amlogic,meson8b-smp-sram
77 - rockchip,rk3066-smp-sram
78 - samsung,exynos4210-sysram
79 - samsung,exynos4210-sysram-ns
80 - socionext,milbeaut-smp-sram
84 IO mem address range, relative to the SRAM range.
89 Indicates that the particular reserved SRAM area is addressable
90 and in use by another device or devices.
95 Indicates that the reserved SRAM area may be accessed outside
96 of the kernel, e.g. by bootloader or userspace.
101 Same as 'pool' above but with the additional constraint that code
102 will be run from the region and that the memory is maintained as
103 read-only, executable during code execution. NOTE: This region must
104 be page aligned on start and end in order to properly allow
105 manipulation of the page attributes.
110 The name for the reserved partition, if omitted, the label is taken
111 from the node name excluding the unit address.
116 additionalProperties: false
125 additionalProperties: false
130 compatible = "mmio-sram";
131 reg = <0x5c000000 0x40000>; /* 256 KiB SRAM at address 0x5c000000 */
133 #address-cells = <1>;
135 ranges = <0 0x5c000000 0x40000>;
142 reg = <0x1000 0x1000>;
146 exported-sram@20000 {
147 reg = <0x20000 0x20000>;
153 // Samsung SMP-capable Exynos SoCs use part of the SYSRAM for the bringup
154 // of the secondary cores. Once the core gets powered up it executes the
155 // code that is residing at some specific location of the SYSRAM.
157 // Therefore reserved section sub-nodes have to be added to the mmio-sram
158 // declaration. These nodes are of two types depending upon secure or
159 // non-secure execution environment.
161 compatible = "mmio-sram";
162 reg = <0x02020000 0x54000>;
163 #address-cells = <1>;
165 ranges = <0 0x02020000 0x54000>;
168 compatible = "samsung,exynos4210-sysram";
173 compatible = "samsung,exynos4210-sysram-ns";
174 reg = <0x53000 0x1000>;
179 // Amlogic's SMP-capable SoCs use part of the sram for the bringup of the cores.
180 // Once the core gets powered up it executes the code that is residing at a
181 // specific location.
183 // Therefore a reserved section sub-node has to be added to the mmio-sram
186 compatible = "mmio-sram";
187 reg = <0xd9000000 0x20000>;
188 #address-cells = <1>;
190 ranges = <0 0xd9000000 0x20000>;
193 compatible = "amlogic,meson8b-smp-sram";
200 compatible = "mmio-sram";
201 reg = <0xe63c0000 0x1000>;
202 #address-cells = <1>;
204 ranges = <0 0xe63c0000 0x1000>;
207 compatible = "renesas,smp-sram";
214 compatible = "mmio-sram";
215 reg = <0x10080000 0x10000>;
216 #address-cells = <1>;
221 compatible = "rockchip,rk3066-smp-sram";
222 reg = <0x10080000 0x50>;
227 // Allwinner's A80 SoC uses part of the secure sram for hotplugging of the
228 // primary core (cpu0). Once the core gets powered up it checks if a magic
229 // value is set at a specific location. If it is then the BROM will jump
230 // to the software entry address, instead of executing a standard boot.
232 // Also there are no "secure-only" properties. The implementation should
233 // check if this SRAM is usable first.
235 // 256 KiB secure SRAM at 0x20000
236 compatible = "mmio-sram";
237 reg = <0x00020000 0x40000>;
238 #address-cells = <1>;
240 ranges = <0 0x00020000 0x40000>;
243 // This is checked by BROM to determine if
244 // cpu0 should jump to SMP entry vector
245 compatible = "allwinner,sun9i-a80-smp-sram";
252 compatible = "mmio-sram";
254 #address-cells = <1>;
256 ranges = <0 0x0 0x10000>;
259 compatible = "socionext,milbeaut-smp-sram";