boards: nxp: frdm_mcxn947: PWM Support

Updated frdm_mcxn947 to add FlexPWM Support,
including updating the docs file.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
This commit is contained in:
Emilio Benavente 2024-04-03 22:49:36 -05:00 committed by Anas Nashif
commit 8adb7c17ca
5 changed files with 41 additions and 0 deletions

View file

@ -78,6 +78,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
Targets available
==================

View file

@ -101,4 +101,32 @@
input-enable;
};
};
pinmux_flexpwm1_pwm0: pinmux_flexpwm1_pwm0 {
group0 {
pinmux = <PWM1_A0_PIO2_6>,
<PWM1_B0_PIO2_7>;
slew-rate = "fast";
drive-strength = "low";
};
};
pinmux_flexpwm1_pwm1: pinmux_flexpwm1_pwm1 {
group0 {
pinmux = <PWM1_A1_PIO2_4>,
<PWM1_B1_PIO2_5>;
slew-rate = "fast";
drive-strength = "low";
};
};
pinmux_flexpwm1_pwm2: pinmux_flexpwm1_pwm2 {
group0 {
pinmux = <PWM1_A2_PIO2_2>,
<PWM1_B2_PIO2_3>;
slew-rate = "fast";
drive-strength = "low";
};
};
};

View file

@ -168,3 +168,8 @@
status = "okay";
};
};
&flexpwm1_pwm0 {
pinctrl-0 = <&pinmux_flexpwm1_pwm0>;
pinctrl-names = "default";
};

View file

@ -28,6 +28,7 @@
aliases{
watchdog0 = &wwdt0;
pwm-0 = &flexpwm1_pwm0;
};
};
@ -132,3 +133,7 @@
&wwdt0 {
status = "okay";
};
&flexpwm1_pwm0 {
status = "okay";
};

View file

@ -21,4 +21,5 @@ supported:
- dac
- i2c
- watchdog
- pwm
vendor: nxp