Skip to content

Commit 22881d8

Browse files
committed
boards: nxp/frdm_mcxaxx6: Support trng for NXP frdm_mcxaxx6 board
Support trng for NXP frdm_mcxa366 and frdm_mcxa266 board Verified tests/drivers/entropy/api Signed-off-by: Neil Chen <[email protected]>
1 parent 77e08d0 commit 22881d8

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

boards/nxp/frdm_mcxaxx6/board.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ void board_early_init_hook(void)
311311
RESET_ReleasePeripheralReset(kFLEXIO0_RST_SHIFT_RSTn);
312312
#endif
313313

314+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(trng))
315+
RESET_ReleasePeripheralReset(kTRNG0_RST_SHIFT_RSTn);
316+
#endif
317+
314318
/* Set SystemCoreClock variable. */
315319
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;
316320
}

boards/nxp/frdm_mcxaxx6/frdm_mcxa266.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
aliases {
1919
ambient-temp0 = &p3t1755;
2020
};
21+
22+
chosen {
23+
zephyr,entropy = &trng;
24+
};
2125
};
2226

2327
&cpu0 {

boards/nxp/frdm_mcxaxx6/frdm_mcxa266.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ supported:
2525
- dma
2626
- i3c
2727
- can
28+
- entropy
2829
vendor: nxp

boards/nxp/frdm_mcxaxx6/frdm_mcxa366.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
aliases {
1919
ambient-temp0 = &p3t1755;
2020
};
21+
22+
chosen {
23+
zephyr,entropy = &trng;
24+
};
2125
};
2226

2327
&cpu0 {

boards/nxp/frdm_mcxaxx6/frdm_mcxa366.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ supported:
2626
- i3c
2727
- opamp
2828
- can
29+
- entropy
2930
vendor: nxp

0 commit comments

Comments
 (0)