Skip to content

Commit 6675080

Browse files
committed
dts: nxp: add pmc-tmpsns to rt7xx dts
1. add pmc-tmpsns to rt7xx dts 2. add pmc-tmpsns to rt700 evk Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 68a4456 commit 6675080

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

boards/nxp/mimxrt700_evk/board.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#include "fsl_clock.h"
99
#include <soc.h>
1010
#include <fsl_glikey.h>
11+
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pmc_tmpsns), okay)
12+
#include "fsl_romapi_otp.h"
13+
#endif
1114

1215
/*!< System oscillator settling time in us */
1316
#define SYSOSC_SETTLING_US 220U
@@ -544,6 +547,12 @@ void board_early_init_hook(void)
544547
CLOCK_EnableClock(kCLOCK_Acmp0);
545548
RESET_ClearPeripheralReset(kACMP0_RST_SHIFT_RSTn);
546549
#endif
550+
551+
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pmc_tmpsns), okay)
552+
POWER_DisablePD(kPDRUNCFG_PD_PMC_TEMPSNS);
553+
POWER_ApplyPD();
554+
otp_init(SystemCoreClock);
555+
#endif
547556
}
548557

549558
static void GlikeyWriteEnable(GLIKEY_Type *base, uint8_t idx)

dts/arm/nxp/nxp_rt7xx_cm33_cpu0.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include <zephyr/dt-bindings/misc/nxp_rtxxx_dsp_ctrl.h>
1010

1111
/ {
12+
aliases {
13+
die-temp0 = &pmc_tmpsns;
14+
};
15+
1216
cpus {
1317
#address-cells = <1>;
1418
#size-cells = <0>;
@@ -1105,6 +1109,31 @@
11051109
interrupts = <17 0>;
11061110
status = "disabled";
11071111
};
1112+
1113+
mbox4: mailbox@189000 {
1114+
#mbox-cells = <1>;
1115+
1116+
compatible = "nxp,mbox-imx-mu";
1117+
reg = <0x189000 0x1000>;
1118+
1119+
interrupts = <31 0>;
1120+
rx-channels = <4>;
1121+
1122+
status = "disabled";
1123+
};
1124+
1125+
pmc_tmpsns: pmc-tmpsns {
1126+
compatible = "nxp,pmc-tmpsns";
1127+
status = "disabled";
1128+
};
1129+
};
1130+
1131+
&systick {
1132+
/*
1133+
* RT700 cm33_cpu0 relies by default on the OS Timer for system
1134+
* clock implementation, so the SysTick node is not to be enabled.
1135+
*/
1136+
status = "disabled";
11081137
};
11091138

11101139
&xspi0 {

0 commit comments

Comments
 (0)