Skip to content

Commit 999e3ab

Browse files
ZhaoxiangJinnashif
authored andcommitted
dts: nxp_mcxn23x: Add power-states for MCXN23x devices
1. Add power-states for MCXN23x devices 2. Add power management related device nodes to MCXN23x, including spc, cmc vbat, and wuu. 3. Add 'zephyr,cortex-m-idle-timer' node in frdm_mcxn236.dts Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
1 parent 6cfd51e commit 999e3ab

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

boards/nxp/frdm_mcxn236/frdm_mcxn236.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
zephyr,shell-uart = &flexcomm4_lpuart4;
2828
zephyr,canbus = &flexcan1;
2929
zephyr,edac = &erm0;
30+
zephyr,cortex-m-idle-timer = &lptmr0;
3031
};
3132

3233
aliases {

dts/arm/nxp/nxp_mcxn23x_common.dtsi

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
reg = <0>;
2323
#address-cells = <1>;
2424
#size-cells = <1>;
25+
cpu-power-states = <&sleep &deepsleep &powerdown>;
2526

2627
mpu: mpu@e000ed90 {
2728
compatible = "arm,armv8m-mpu";
@@ -50,6 +51,36 @@
5051
};
5152
};
5253

54+
power-states {
55+
/*
56+
* Note:
57+
* - 'exit-latency-us' depends on system clock frequency and voltage level.
58+
* - 'min-residency-us' needs to be adjusted according to the actual project
59+
* requirements. The values provided here are not applicable to all real
60+
* projects.
61+
*/
62+
sleep: sleep {
63+
compatible = "zephyr,power-state";
64+
power-state-name = "runtime-idle";
65+
min-residency-us = <10000>;
66+
exit-latency-us = <1>;
67+
};
68+
69+
deepsleep: deepsleep {
70+
compatible = "zephyr,power-state";
71+
power-state-name = "suspend-to-idle";
72+
min-residency-us = <50000>;
73+
exit-latency-us = <10>;
74+
};
75+
76+
powerdown: powerdown {
77+
compatible = "zephyr,power-state";
78+
power-state-name = "standby";
79+
min-residency-us = <80000>;
80+
exit-latency-us = <20>;
81+
};
82+
};
83+
5384
pinctrl: pinctrl {
5485
compatible = "nxp,port-pinctrl";
5586
status = "okay";
@@ -1105,6 +1136,31 @@
11051136
decimation-filter-gain = <4>;
11061137
};
11071138
};
1139+
1140+
spc: system-modules@45000 {
1141+
compatible = "nxp,spc";
1142+
reg = <0x45000 0x1000>;
1143+
interrupts = <146 0>;
1144+
wakeup-delay = <780>;
1145+
};
1146+
1147+
wuu: system-modules@46000 {
1148+
compatible = "nxp,wuu";
1149+
reg = <0x46000 0x1000>;
1150+
interrupts = <147 0>;
1151+
};
1152+
1153+
cmc: system-modules@48000 {
1154+
compatible = "nxp,cmc";
1155+
reg = <0x48000 0x1000>;
1156+
interrupts = <154 0>;
1157+
};
1158+
1159+
vbat: system-modules@59000 {
1160+
compatible = "nxp,vbat";
1161+
reg = <0x59000 0x1000>;
1162+
interrupts = <99 0>;
1163+
};
11081164
};
11091165

11101166
&systick {

0 commit comments

Comments
 (0)