Commit a614d151 authored by Neil Chen's avatar Neil Chen Committed by Benjamin Cabé
Browse files

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: default avatarNeil Chen <cheng.chen_1@nxp.com>
parent 725c28ec
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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. */
+2 −0
Original line number Diff line number Diff line
@@ -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
==================
+5 −0
Original line number Diff line number Diff line
@@ -117,3 +117,8 @@
&lptmr0 {
	status = "okay";
};

zephyr_udc0: &usb {
	status = "okay";
	num-bidir-endpoints = <8>;
};
+2 −0
Original line number Diff line number Diff line
@@ -21,4 +21,6 @@ supported:
  - counter
  - dac
  - pwm
  - usb_device
  - usbd
vendor: nxp