Skip to content

Commit 8e4db38

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 cd8d956 commit 8e4db38

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-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: 9 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,11 @@
11051109
interrupts = <17 0>;
11061110
status = "disabled";
11071111
};
1112+
1113+
pmc_tmpsns: pmc-tmpsns {
1114+
compatible = "nxp,pmc-tmpsns";
1115+
status = "disabled";
1116+
};
11081117
};
11091118

11101119
&xspi0 {

0 commit comments

Comments
 (0)