Skip to content

Commit 56cd16e

Browse files
Dat-NguyenDuynashif
authored andcommitted
dts: nxp: s32ze: add devicetree node for code RAM
Add devicetree node for code RAM, code RAM can be accessed over AIXM bus or AXIF bus. Code access via AXIF interface provides the best optimal performance Signed-off-by: Dat Nguyen Duy <[email protected]>
1 parent 2b2b41d commit 56cd16e

File tree

9 files changed

+23
-11
lines changed

9 files changed

+23
-11
lines changed

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
compatible = "nxp,s32z270";
1414

1515
chosen {
16-
zephyr,sram = &sram0;
16+
zephyr,sram = &dram0;
17+
zephyr,flash = &cram0;
1718
zephyr,canbus = &canxl0;
1819
};
1920

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1.dts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
compatible = "nxp,s32z270";
1414

1515
chosen {
16-
zephyr,sram = &sram1;
17-
zephyr,console = &uart0;
18-
zephyr,shell-uart = &uart0;
16+
zephyr,sram = &dram1;
17+
zephyr,flash = &cram1;
1918
zephyr,canbus = &flexcan0;
2019
};
2120

dts/arm/nxp/nxp_s32z27x_r52.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
status = "okay";
111111
};
112112

113-
sram0: memory@31780000 {
113+
dram0: memory@31780000 {
114114
compatible = "mmio-sram";
115115
reg = <0x31780000 DT_SIZE_M(1)>;
116116
};
117117

118-
sram1: memory@35780000 {
118+
dram1: memory@35780000 {
119119
compatible = "mmio-sram";
120120
reg = <0x35780000 DT_SIZE_M(1)>;
121121
};

dts/arm/nxp/nxp_s32z27x_rtu0_r52.dtsi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 NXP
2+
* Copyright 2022-2024 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -16,6 +16,12 @@
1616
};
1717

1818
soc {
19+
/* Accessing code RAM over AXIF - a read-only flash memory bus */
20+
cram0: memory@79900000 {
21+
compatible = "mmio-sram";
22+
reg = <0x79900000 DT_SIZE_M(7)>;
23+
};
24+
1925
stm0: stm@76200000 {
2026
compatible = "nxp,s32-sys-timer";
2127
reg = <0x76200000 0x10000>;

dts/arm/nxp/nxp_s32z27x_rtu1_r52.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
};
1717

1818
soc {
19+
/* Accessing code RAM over AXIF - a read-only flash memory bus */
20+
cram1: memory@7d900000 {
21+
compatible = "mmio-sram";
22+
reg = <0x7d900000 DT_SIZE_M(7)>;
23+
};
24+
1925
stm0: stm@76a00000 {
2026
compatible = "nxp,s32-sys-timer";
2127
reg = <0x76a00000 0x10000>;

tests/drivers/dma/chan_blen_transfer/boards/s32z2xxdc2_s32z270_rtu0.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
};
1818
};
1919

20-
&sram0 {
20+
&dram0 {
2121
compatible = "mmio-sram";
2222
reg = <0x31780000 DT_SIZE_K(960)>;
2323
};

tests/drivers/dma/chan_blen_transfer/boards/s32z2xxdc2_s32z270_rtu1.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
};
1818
};
1919

20-
&sram1 {
20+
&dram1 {
2121
compatible = "mmio-sram";
2222
reg = <0x35780000 DT_SIZE_K(960)>;
2323
};

tests/drivers/dma/loop_transfer/boards/s32z2xxdc2_s32z270_rtu0.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
};
1818
};
1919

20-
&sram0 {
20+
&dram0 {
2121
compatible = "mmio-sram";
2222
reg = <0x31780000 DT_SIZE_K(960)>;
2323
};

tests/drivers/dma/loop_transfer/boards/s32z2xxdc2_s32z270_rtu1.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
};
1818
};
1919

20-
&sram1 {
20+
&dram1 {
2121
compatible = "mmio-sram";
2222
reg = <0x35780000 DT_SIZE_K(960)>;
2323
};

0 commit comments

Comments
 (0)