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

Support pwm for NXP frdm_mcxa156 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 2024-12-04 11:34:55 +08:00 committed by Anas Nashif
parent f9c6eea5b8
commit 9f6fdae430
4 changed files with 18 additions and 0 deletions

View file

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

View file

@ -23,4 +23,12 @@
slew-rate = "fast";
};
};
pinmux_flexpwm0_pwm0: pinmux_flexpwm0_pwm0 {
group0 {
pinmux = <PWM0_A0_P3_6>,
<PWM0_B0_P3_7>;
slew-rate = "fast";
drive-strength = "low";
};
};
};

View file

@ -20,6 +20,7 @@
led2 = &red_led;
sw0 = &user_button_2;
sw1 = &user_button_3;
pwm-0 = &flexpwm0_pwm0;
};
chosen {
@ -94,3 +95,9 @@
pinctrl-0 = <&pinmux_dac0>;
pinctrl-names = "default";
};
&flexpwm0_pwm0 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm0_pwm0>;
pinctrl-names = "default";
};

View file

@ -18,4 +18,5 @@ supported:
- flash
- gpio
- dac
- pwm
vendor: nxp