boards: nxp: frdm_mcxa156: Support usb for NXP frdm_mcxa156 board

Support usb for NXP frdm_mcxa156 board.
Test it using samples/subsys/usb/console and tests/drivers/udc

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2024-12-12 15:55:21 +08:00 committed by Benjamin Cabé
parent 725c28ec4e
commit a614d151a3
4 changed files with 14 additions and 0 deletions

View file

@ -154,6 +154,11 @@ static int frdm_mcxa156_init(void)
CLOCK_AttachClk(kFRO12M_to_LPTMR0);
#endif /* DT_PROP(DT_NODELABEL(lptmr0), clk_source) */
#endif
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usb))
RESET_PeripheralReset(kUSB0_RST_SHIFT_RSTn);
CLOCK_EnableUsbfsClock();
#endif
/* Set SystemCoreClock variable. */

View file

@ -64,6 +64,8 @@ The FRDM-MCXA156 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| USB | on-chip | USB device |
+-----------+------------+-------------------------------------+
Targets available
==================

View file

@ -117,3 +117,8 @@
&lptmr0 {
status = "okay";
};
zephyr_udc0: &usb {
status = "okay";
num-bidir-endpoints = <8>;
};

View file

@ -21,4 +21,6 @@ supported:
- counter
- dac
- pwm
- usb_device
- usbd
vendor: nxp