Skip to content

Commit 9c04d0b

Browse files
committed
boards: nxp: frdm_mcxa344: Support wwdt for NXP frdm_mcxa344 board
Support watchdog for NXP frdm_mcxa344 board. Test using samples/drivers/watchdog. Signed-off-by: Neil Chen <[email protected]>
1 parent 8a5a93d commit 9c04d0b

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

boards/nxp/frdm_mcxa344/board.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ void board_early_init_hook(void)
163163
RESET_ReleasePeripheralReset(kLPUART3_RST_SHIFT_RSTn);
164164
#endif
165165

166+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(wwdt0))
167+
CLOCK_SetClockDiv(kCLOCK_DivWWDT0, 1u);
168+
#endif
169+
166170
/* Set SystemCoreClock variable. */
167171
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;
168172
}

boards/nxp/frdm_mcxa344/frdm_mcxa344.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
led2 = &blue_led;
2222
sw0 = &user_button_2;
2323
sw1 = &user_button_3;
24+
watchdog0 = &wwdt0;
2425
};
2526

2627
chosen {
@@ -178,3 +179,7 @@
178179
pinctrl-0 = <&pinmux_lpuart2>;
179180
pinctrl-names = "default";
180181
};
182+
183+
&wwdt0 {
184+
status = "okay";
185+
};

boards/nxp/frdm_mcxa344/frdm_mcxa344.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ supported:
2020
- i2c
2121
- spi
2222
- uart
23+
- watchdog
2324
vendor: nxp

0 commit comments

Comments
 (0)