Skip to content

Commit a062720

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 eb96878 commit a062720

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-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
@@ -532,6 +535,12 @@ void board_early_init_hook(void)
532535
CLOCK_EnableClock(kCLOCK_Acmp0);
533536
RESET_ClearPeripheralReset(kACMP0_RST_SHIFT_RSTn);
534537
#endif
538+
539+
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pmc_tmpsns), okay)
540+
POWER_DisablePD(kPDRUNCFG_PD_PMC_TEMPSNS);
541+
POWER_ApplyPD();
542+
otp_init(SystemCoreClock);
543+
#endif
535544
}
536545

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

boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,7 @@ p3t1755dp_ard_i2c_interface: &flexcomm8_lpi2c8 {};
283283
&mbox4 {
284284
status = "okay";
285285
};
286+
287+
&pmc_tmpsns {
288+
status = "okay";
289+
};

dts/arm/nxp/nxp_rt7xx_cm33_cpu0.dtsi

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

1717
/ {
18+
aliases {
19+
die-temp0 = &pmc_tmpsns;
20+
};
21+
1822
cpus {
1923
#address-cells = <1>;
2024
#size-cells = <0>;
@@ -1240,6 +1244,11 @@
12401244

12411245
status = "disabled";
12421246
};
1247+
1248+
pmc_tmpsns: pmc-tmpsns {
1249+
compatible = "nxp,pmc-tmpsns";
1250+
status = "disabled";
1251+
};
12431252
};
12441253

12451254
&systick {

0 commit comments

Comments
 (0)