Skip to content

Commit aa57818

Browse files
peterwangszkartben
authored andcommitted
dts: mcxa166,mcxa276: add dts for MCXA166 and MCXA276
add dts for device MCXA166 and MCXA276 Signed-off-by: Peter Wang <[email protected]>
1 parent 9580bc5 commit aa57818

File tree

2 files changed

+322
-0
lines changed

2 files changed

+322
-0
lines changed

dts/arm/nxp/nxp_mcxa166.dtsi

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
/*
2+
* Copyright 2024-2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <arm/armv8-m.dtsi>
9+
#include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
10+
#include <zephyr/dt-bindings/gpio/gpio.h>
11+
12+
/ {
13+
cpus {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
cpu0: cpu@0 {
18+
compatible = "arm,cortex-m33f";
19+
reg = <0>;
20+
#address-cells = <1>;
21+
#size-cells = <1>;
22+
};
23+
};
24+
25+
/* Dummy pinctrl node, filled with pin mux options at board level */
26+
pinctrl: pinctrl {
27+
compatible = "nxp,port-pinctrl";
28+
status = "okay";
29+
};
30+
31+
soc {
32+
syscon: syscon@40091000 {
33+
compatible = "nxp,lpc-syscon";
34+
reg = <0x40091000 0x4000>;
35+
#clock-cells = <1>;
36+
37+
reset: reset {
38+
compatible = "nxp,lpc-syscon-reset";
39+
#reset-cells = <1>;
40+
};
41+
};
42+
43+
sramx: memory@4000000 {
44+
compatible = "mmio-sram";
45+
reg = <0x4000000 DT_SIZE_K(8)>;
46+
};
47+
48+
sram0: memory@20000000 {
49+
compatible = "mmio-sram";
50+
reg = <0x20000000 DT_SIZE_K(240)>;
51+
};
52+
53+
porta: pinmux@400bc000 {
54+
compatible = "nxp,port-pinmux";
55+
reg = <0x400bc000 0x1000>;
56+
clocks = <&syscon MCUX_PORT0_CLK>;
57+
};
58+
59+
portb: pinmux@400bd000 {
60+
compatible = "nxp,port-pinmux";
61+
reg = <0x400bd000 0x1000>;
62+
clocks = <&syscon MCUX_PORT1_CLK>;
63+
};
64+
65+
portc: pinmux@400be000 {
66+
compatible = "nxp,port-pinmux";
67+
reg = <0x400be000 0x1000>;
68+
clocks = <&syscon MCUX_PORT2_CLK>;
69+
};
70+
71+
portd: pinmux@400bf000 {
72+
compatible = "nxp,port-pinmux";
73+
reg = <0x400bf000 0x1000>;
74+
clocks = <&syscon MCUX_PORT3_CLK>;
75+
};
76+
77+
porte: pinmux@400c0000 {
78+
compatible = "nxp,port-pinmux";
79+
reg = <0x400c0000 0x1000>;
80+
clocks = <&syscon MCUX_PORT4_CLK>;
81+
};
82+
83+
gpio0: gpio@40102000 {
84+
compatible = "nxp,kinetis-gpio";
85+
status = "disabled";
86+
reg = <0x40102000 0x1000>;
87+
interrupts = <71 0>;
88+
gpio-controller;
89+
#gpio-cells = <2>;
90+
nxp,kinetis-port = <&porta>;
91+
};
92+
93+
gpio1: gpio@40103000 {
94+
compatible = "nxp,kinetis-gpio";
95+
status = "disabled";
96+
reg = <0x40103000 0x1000>;
97+
interrupts = <72 0>;
98+
gpio-controller;
99+
#gpio-cells = <2>;
100+
nxp,kinetis-port = <&portb>;
101+
};
102+
103+
gpio2: gpio@40104000 {
104+
compatible = "nxp,kinetis-gpio";
105+
status = "disabled";
106+
reg = <0x40104000 0x1000>;
107+
interrupts = <73 0>;
108+
gpio-controller;
109+
#gpio-cells = <2>;
110+
nxp,kinetis-port = <&portc>;
111+
};
112+
113+
gpio3: gpio@40105000 {
114+
compatible = "nxp,kinetis-gpio";
115+
status = "disabled";
116+
reg = <0x40105000 0x1000>;
117+
interrupts = <74 0>;
118+
gpio-controller;
119+
#gpio-cells = <2>;
120+
nxp,kinetis-port = <&portd>;
121+
};
122+
123+
gpio4: gpio@40106000 {
124+
compatible = "nxp,kinetis-gpio";
125+
status = "disabled";
126+
reg = <0x40106000 0x1000>;
127+
interrupts = <75 0>;
128+
gpio-controller;
129+
#gpio-cells = <2>;
130+
nxp,kinetis-port = <&porte>;
131+
};
132+
133+
lpuart2: lpuart@400a1000 {
134+
compatible = "nxp,lpuart";
135+
status = "disabled";
136+
reg = <0x400a1000 0x1000>;
137+
interrupts = <33 0>;
138+
clocks = <&syscon MCUX_LPUART2_CLK>;
139+
};
140+
141+
fmu: flash-controller@40095000 {
142+
compatible = "nxp,msf1";
143+
reg = <0x40095000 0x1000>;
144+
interrupts = <12 0>;
145+
146+
#address-cells = <1>;
147+
#size-cells = <1>;
148+
149+
flash: flash@0 {
150+
compatible = "soc-nv-flash";
151+
reg = <0 DT_SIZE_M(1)>;
152+
erase-block-size = <8192>;
153+
write-block-size = <128>;
154+
};
155+
};
156+
};
157+
};
158+
159+
&nvic {
160+
arm,num-irq-priority-bits = <3>;
161+
};

dts/arm/nxp/nxp_mcxa276.dtsi

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
/*
2+
* Copyright 2024-2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <arm/armv8-m.dtsi>
9+
#include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
10+
#include <zephyr/dt-bindings/gpio/gpio.h>
11+
12+
/ {
13+
cpus {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
cpu0: cpu@0 {
18+
compatible = "arm,cortex-m33f";
19+
reg = <0>;
20+
#address-cells = <1>;
21+
#size-cells = <1>;
22+
};
23+
};
24+
25+
/* Dummy pinctrl node, filled with pin mux options at board level */
26+
pinctrl: pinctrl {
27+
compatible = "nxp,port-pinctrl";
28+
status = "okay";
29+
};
30+
31+
soc {
32+
syscon: syscon@40091000 {
33+
compatible = "nxp,lpc-syscon";
34+
reg = <0x40091000 0x4000>;
35+
#clock-cells = <1>;
36+
37+
reset: reset {
38+
compatible = "nxp,lpc-syscon-reset";
39+
#reset-cells = <1>;
40+
};
41+
};
42+
43+
sramx: memory@4000000 {
44+
compatible = "mmio-sram";
45+
reg = <0x4000000 DT_SIZE_K(8)>;
46+
};
47+
48+
sram0: memory@20000000 {
49+
compatible = "mmio-sram";
50+
reg = <0x20000000 DT_SIZE_K(240)>;
51+
};
52+
53+
porta: pinmux@400bc000 {
54+
compatible = "nxp,port-pinmux";
55+
reg = <0x400bc000 0x1000>;
56+
clocks = <&syscon MCUX_PORT0_CLK>;
57+
};
58+
59+
portb: pinmux@400bd000 {
60+
compatible = "nxp,port-pinmux";
61+
reg = <0x400bd000 0x1000>;
62+
clocks = <&syscon MCUX_PORT1_CLK>;
63+
};
64+
65+
portc: pinmux@400be000 {
66+
compatible = "nxp,port-pinmux";
67+
reg = <0x400be000 0x1000>;
68+
clocks = <&syscon MCUX_PORT2_CLK>;
69+
};
70+
71+
portd: pinmux@400bf000 {
72+
compatible = "nxp,port-pinmux";
73+
reg = <0x400bf000 0x1000>;
74+
clocks = <&syscon MCUX_PORT3_CLK>;
75+
};
76+
77+
porte: pinmux@400c0000 {
78+
compatible = "nxp,port-pinmux";
79+
reg = <0x400c0000 0x1000>;
80+
clocks = <&syscon MCUX_PORT4_CLK>;
81+
};
82+
83+
gpio0: gpio@40102000 {
84+
compatible = "nxp,kinetis-gpio";
85+
status = "disabled";
86+
reg = <0x40102000 0x1000>;
87+
interrupts = <71 0>;
88+
gpio-controller;
89+
#gpio-cells = <2>;
90+
nxp,kinetis-port = <&porta>;
91+
};
92+
93+
gpio1: gpio@40103000 {
94+
compatible = "nxp,kinetis-gpio";
95+
status = "disabled";
96+
reg = <0x40103000 0x1000>;
97+
interrupts = <72 0>;
98+
gpio-controller;
99+
#gpio-cells = <2>;
100+
nxp,kinetis-port = <&portb>;
101+
};
102+
103+
gpio2: gpio@40104000 {
104+
compatible = "nxp,kinetis-gpio";
105+
status = "disabled";
106+
reg = <0x40104000 0x1000>;
107+
interrupts = <73 0>;
108+
gpio-controller;
109+
#gpio-cells = <2>;
110+
nxp,kinetis-port = <&portc>;
111+
};
112+
113+
gpio3: gpio@40105000 {
114+
compatible = "nxp,kinetis-gpio";
115+
status = "disabled";
116+
reg = <0x40105000 0x1000>;
117+
interrupts = <74 0>;
118+
gpio-controller;
119+
#gpio-cells = <2>;
120+
nxp,kinetis-port = <&portd>;
121+
};
122+
123+
gpio4: gpio@40106000 {
124+
compatible = "nxp,kinetis-gpio";
125+
status = "disabled";
126+
reg = <0x40106000 0x1000>;
127+
interrupts = <75 0>;
128+
gpio-controller;
129+
#gpio-cells = <2>;
130+
nxp,kinetis-port = <&porte>;
131+
};
132+
133+
lpuart2: lpuart@400a1000 {
134+
compatible = "nxp,lpuart";
135+
status = "disabled";
136+
reg = <0x400a1000 0x1000>;
137+
interrupts = <33 0>;
138+
clocks = <&syscon MCUX_LPUART2_CLK>;
139+
};
140+
141+
fmu: flash-controller@40095000 {
142+
compatible = "nxp,msf1";
143+
reg = <0x40095000 0x1000>;
144+
interrupts = <12 0>;
145+
146+
#address-cells = <1>;
147+
#size-cells = <1>;
148+
149+
flash: flash@0 {
150+
compatible = "soc-nv-flash";
151+
reg = <0 DT_SIZE_M(1)>;
152+
erase-block-size = <8192>;
153+
write-block-size = <128>;
154+
};
155+
};
156+
};
157+
};
158+
159+
&nvic {
160+
arm,num-irq-priority-bits = <3>;
161+
};

0 commit comments

Comments
 (0)