Skip to content

Commit dbf78a1

Browse files
NeilChen93kartben
authored andcommitted
boards: nxp: frdm_mcxa153: Support usb for NXP frdm_mcxa153 board
Support usb for NXP frdm_mcxa153 board. Test it using samples/subsys/usb/console. Signed-off-by: Neil Chen <[email protected]>
1 parent 42737a7 commit dbf78a1

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

boards/nxp/frdm_mcxa153/board.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ void board_early_init_hook(void)
189189
RESET_ReleasePeripheralReset(kPORT3_RST_SHIFT_RSTn);
190190
#endif
191191

192+
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usb))
193+
RESET_PeripheralReset(kUSB0_RST_SHIFT_RSTn);
194+
CLOCK_EnableUsbfsClock();
195+
#endif
196+
192197
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(wwdt0))
193198
CLOCK_SetClockDiv(kCLOCK_DivWWDT0, 1u);
194199
#endif

boards/nxp/frdm_mcxa153/frdm_mcxa153.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@
185185
pinctrl-names = "default";
186186
};
187187

188+
zephyr_udc0: &usb {
189+
status = "okay";
190+
};
191+
188192
&wwdt0 {
189193
status = "okay";
190194
};

boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ supported:
2424
- pwm
2525
- spi
2626
- uart
27+
- usb_device
2728
- watchdog
2829
vendor: nxp

0 commit comments

Comments
 (0)