Skip to content

Commit b0b32c5

Browse files
danieldegrasseMaureenHelm
authored andcommitted
dts: arm: nxp: rt6xx: add SRAM code region
Add SRAM code region definition to RT6xx series SOC. The RT6xx shares SRAM partitions between the code and data bus, but a default allocation is chosen by the SOC level devicetree. The user can modify this allocation by changing the base address and size of the sram_code and sram0 regions in their board devicetree. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
1 parent d0f6321 commit b0b32c5

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

dts/arm/nxp/nxp_rt6xx.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
/ {
1010
soc {
11-
sram: sram@30018000 {
12-
ranges = <0x20180000 0x30180000 0x300000>;
11+
sram: sram@30000000 {
12+
ranges = <0x0 0x10000000 0x500000
13+
0x20000000 0x30000000 0x500000>;
1314
};
1415

1516
peripheral: peripheral@50000000 {

dts/arm/nxp/nxp_rt6xx_common.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,20 @@
5454
#address-cells = <1>;
5555
#size-cells = <1>;
5656

57+
/* RT6XX SRAM partitions are shared
58+
* between code and data. Boards can
59+
* override the reg properties of either sram0 or sram_code nodes to
60+
* change the balance of SRAM allocation.
61+
*
62+
* Note that the sram code region starts at an offset of 0x1B000,
63+
* as the boot ROM will not load code before 0x1C000. The first
64+
* 0x1000 of the image will contain the boot header.
65+
*/
66+
sram_code: memory@1b000 {
67+
compatible = "mmio-sram";
68+
reg = <0x1b000 DT_SIZE_K(1428)>;
69+
};
70+
5771
sram0: memory@20180000 {
5872
compatible = "mmio-sram";
5973
reg = <0x20180000 DT_SIZE_K(3072)>;

dts/arm/nxp/nxp_rt6xx_ns.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
/ {
1010
soc {
11-
sram: sram@20180000 {
12-
ranges = <0x20180000 0x20180000 0x300000>;
11+
sram: sram@20000000 {
12+
ranges = <0x0 0x0 0x500000
13+
0x20000000 0x20000000 0x500000>;
1314
};
1415

1516
peripheral: peripheral@40000000 {

0 commit comments

Comments
 (0)