Skip to content

Commit 7077d1e

Browse files
NeilChen93kartben
authored andcommitted
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 <[email protected]>
1 parent bb108c9 commit 7077d1e

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

boards/nxp/frdm_mcxa153/frdm_mcxa153-pinctrl.dtsi

+9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
#include <nxp/mcx/MCXA153VLH-pinctrl.h>
88

99
&pinctrl {
10+
pinmux_flexpwm0_pwm0: pinmux_flexpwm0_pwm0 {
11+
group0 {
12+
pinmux = <PWM0_A0_P3_6>,
13+
<PWM0_B0_P3_7>;
14+
slew-rate = "fast";
15+
drive-strength = "low";
16+
};
17+
};
18+
1019
pinmux_lpuart0: pinmux_lpuart0 {
1120
group0 {
1221
pinmux = <LPUART0_RXD_P0_2>,

boards/nxp/frdm_mcxa153/frdm_mcxa153.dts

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
led2 = &blue_led;
2121
sw0 = &user_button_2;
2222
sw1 = &user_button_3;
23+
pwm-0 = &flexpwm0_pwm0;
2324
};
2425

2526
chosen {
@@ -93,6 +94,12 @@
9394
};
9495
};
9596

97+
&flexpwm0_pwm0 {
98+
status = "okay";
99+
pinctrl-0 = <&pinmux_flexpwm0_pwm0>;
100+
pinctrl-names = "default";
101+
};
102+
96103
&gpio0 {
97104
status = "okay";
98105
};

boards/nxp/frdm_mcxa153/frdm_mcxa153.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ supported:
1717
- dma
1818
- flash
1919
- gpio
20+
- pwm
2021
- uart
2122
vendor: nxp

0 commit comments

Comments
 (0)