Skip to content

Commit ae0725b

Browse files
lucien-nxpjhedberg
authored andcommitted
dts: arm: nxp: add mcxe24x device tree
- Use specific_part.dtsi + full_devices.dtsi way to desribe all devices Signed-off-by: Lucien Zhao <[email protected]>
1 parent 057eb6d commit ae0725b

File tree

4 files changed

+771
-0
lines changed

4 files changed

+771
-0
lines changed

dts/arm/nxp/nxp_mcxe245.dtsi

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <nxp/nxp_mcxe24x_common.dtsi>
9+
10+
/ {
11+
/*
12+
* SRAM_L and SRAM_U form a continuous block in memory map,
13+
* but misaligned accesses across the 0x20000000 boundary
14+
* are not supported. Therefore two separate memory nodes
15+
* are created.
16+
*/
17+
sram_l: sram@1fff8000 {
18+
compatible = "mmio-sram";
19+
reg = <0x1fff8000 DT_SIZE_K(32)>;
20+
};
21+
22+
sram_u: sram@20000000 {
23+
compatible = "zephyr,memory-region", "mmio-sram";
24+
reg = <0x20000000 DT_SIZE_K(28)>;
25+
zephyr,memory-region = "SRAMU";
26+
};
27+
};
28+
29+
&ftfc {
30+
flash0: flash@0 {
31+
compatible = "soc-nv-flash";
32+
reg = <0 DT_SIZE_K(512)>;
33+
erase-block-size = <DT_SIZE_K(4)>;
34+
write-block-size = <8>;
35+
};
36+
};
37+
38+
&flexcan1 {
39+
compatible = "nxp,flexcan";
40+
interrupts = <85 0>, <86 0>, <88 0>;
41+
interrupt-names = "ored-warning-bus-off", "error", "mb-0-15";
42+
};
43+
44+
&flexcan2 {
45+
compatible = "nxp,flexcan";
46+
interrupts = <92 0>, <93 0>, <95 0>;
47+
interrupt-names = "ored-warning-bus-off", "error", "mb-0-15";
48+
};
49+
50+
/delete-node/ &ftm4;
51+
/delete-node/ &ftm5;
52+
/delete-node/ &ftm6;
53+
/delete-node/ &ftm7;
54+
/delete-node/ &enet;
55+
/delete-node/ &lpi2c1;
56+
/delete-node/ &sai0;
57+
/delete-node/ &sai1;

dts/arm/nxp/nxp_mcxe246.dtsi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <nxp/nxp_mcxe24x_common.dtsi>
9+
10+
/ {
11+
/*
12+
* SRAM_L and SRAM_U form a continuous block in memory map,
13+
* but misaligned accesses across the 0x20000000 boundary
14+
* are not supported. Therefore two separate memory nodes
15+
* are created.
16+
*/
17+
sram_l: sram@1fff0000 {
18+
compatible = "mmio-sram";
19+
reg = <0x1fff0000 DT_SIZE_K(64)>;
20+
};
21+
22+
sram_u: sram@20000000 {
23+
compatible = "zephyr,memory-region", "mmio-sram";
24+
reg = <0x20000000 DT_SIZE_K(60)>;
25+
zephyr,memory-region = "SRAMU";
26+
};
27+
};
28+
29+
&ftfc {
30+
flash0: flash@0 {
31+
compatible = "soc-nv-flash";
32+
reg = <0 DT_SIZE_M(1)>;
33+
erase-block-size = <DT_SIZE_K(4)>;
34+
write-block-size = <8>;
35+
};
36+
};
37+
38+
&flexcan2 {
39+
compatible = "nxp,flexcan";
40+
interrupts = <92 0>, <93 0>, <95 0>;
41+
interrupt-names = "ored-warning-bus-off", "error", "mb-0-15";
42+
};
43+
44+
/delete-node/ &ftm4;
45+
/delete-node/ &ftm5;
46+
/delete-node/ &enet;
47+
/delete-node/ &lpi2c1;
48+
/delete-node/ &sai0;
49+
/delete-node/ &sai1;

dts/arm/nxp/nxp_mcxe247.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <nxp/nxp_mcxe24x_common.dtsi>
9+
10+
/ {
11+
/*
12+
* SRAM_L and SRAM_U form a continuous block in memory map,
13+
* but misaligned accesses across the 0x20000000 boundary
14+
* are not supported. Therefore two separate memory nodes
15+
* are created.
16+
*/
17+
sram_l: sram@1ffe0000 {
18+
compatible = "mmio-sram";
19+
reg = <0x1ffe0000 DT_SIZE_K(128)>;
20+
};
21+
22+
sram_u: sram@20000000 {
23+
compatible = "zephyr,memory-region", "mmio-sram";
24+
reg = <0x20000000 DT_SIZE_K(124)>;
25+
zephyr,memory-region = "SRAMU";
26+
};
27+
};
28+
29+
&ftfc {
30+
flash0: flash@0 {
31+
compatible = "soc-nv-flash";
32+
reg = <0 DT_SIZE_K(1536)>;
33+
erase-block-size = <DT_SIZE_K(4)>;
34+
write-block-size = <8>;
35+
};
36+
};

0 commit comments

Comments
 (0)