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:
parent
bb108c9e20
commit
7077d1e0a6
3 changed files with 17 additions and 0 deletions
|
@ -7,6 +7,15 @@
|
|||
#include <nxp/mcx/MCXA153VLH-pinctrl.h>
|
||||
|
||||
&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 {
|
||||
group0 {
|
||||
pinmux = <LPUART0_RXD_P0_2>,
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
led2 = &blue_led;
|
||||
sw0 = &user_button_2;
|
||||
sw1 = &user_button_3;
|
||||
pwm-0 = &flexpwm0_pwm0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -93,6 +94,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
&flexpwm0_pwm0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&pinmux_flexpwm0_pwm0>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -17,5 +17,6 @@ supported:
|
|||
- dma
|
||||
- flash
|
||||
- gpio
|
||||
- pwm
|
||||
- uart
|
||||
vendor: nxp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue