boards: nxp: frdm_mcxa153: Support pwm for NXP frdm_mcxa153 board

Support pwm for NXP frdm_mcxa153 board.
Test with tests/drivers/pwm/pwm_api.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
Neil Chen 2025-04-21 10:38:08 +08:00 committed by Benjamin Cabé
commit 7077d1e0a6
3 changed files with 17 additions and 0 deletions

View file

@ -7,6 +7,15 @@
#include <nxp/mcx/MCXA153VLH-pinctrl.h> #include <nxp/mcx/MCXA153VLH-pinctrl.h>
&pinctrl { &pinctrl {
pinmux_flexpwm0_pwm0: pinmux_flexpwm0_pwm0 {
group0 {
pinmux = <PWM0_A0_P3_6>,
<PWM0_B0_P3_7>;
slew-rate = "fast";
drive-strength = "low";
};
};
pinmux_lpuart0: pinmux_lpuart0 { pinmux_lpuart0: pinmux_lpuart0 {
group0 { group0 {
pinmux = <LPUART0_RXD_P0_2>, pinmux = <LPUART0_RXD_P0_2>,

View file

@ -20,6 +20,7 @@
led2 = &blue_led; led2 = &blue_led;
sw0 = &user_button_2; sw0 = &user_button_2;
sw1 = &user_button_3; sw1 = &user_button_3;
pwm-0 = &flexpwm0_pwm0;
}; };
chosen { chosen {
@ -93,6 +94,12 @@
}; };
}; };
&flexpwm0_pwm0 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm0_pwm0>;
pinctrl-names = "default";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };

View file

@ -17,5 +17,6 @@ supported:
- dma - dma
- flash - flash
- gpio - gpio
- pwm
- uart - uart
vendor: nxp vendor: nxp