Skip to content

Commit fdd7e78

Browse files
danieldegrassecarlescufi
authored andcommitted
boards: arm: mimxrt1060_evk: added additional PWM outputs
Added PWM outputs to arduino header, to make testing PWM support with this EVK simpler. These PWM outputs are enabled by the pwm_api test, although they are not used. The user can enable the PWM shell in order to test these PWM outputs. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 43be17a commit fdd7e78

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

boards/arm/mimxrt1060_evk/mimxrt1060_evk-pinctrl.dtsi

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
};
9999

100100
/* flexpwm output for board LED */
101-
pinmux_flexpwm2: pinmux_flexpwm2 {
101+
pinmux_flexpwm2_3: pinmux_flexpwm2_3 {
102102
group0 {
103103
pinmux = <&iomuxc_gpio_ad_b0_09_flexpwm2_pwma3>;
104104
drive-strength = "r0-4";
@@ -109,6 +109,29 @@
109109
};
110110
};
111111

112+
/* Conflicts with SD and SPI pins. Requires R281/R356 be populated */
113+
pinmux_flexpwm1_0: pinmux_flexpwm1_0 {
114+
group0 {
115+
pinmux = <&iomuxc_gpio_sd_b0_01_flexpwm1_pwmb0>;
116+
drive-strength = "r0-4";
117+
bias-pull-up;
118+
bias-pull-up-value = "47k";
119+
slew-rate = "slow";
120+
nxp,speed = "100-mhz";
121+
};
122+
};
123+
124+
pinmux_flexpwm1: pinmux_flexpwm1 {
125+
group0 {
126+
pinmux = <&iomuxc_gpio_ad_b0_10_flexpwm1_pwma3>;
127+
drive-strength = "r0-4";
128+
bias-pull-up;
129+
bias-pull-up-value = "47k";
130+
slew-rate = "slow";
131+
nxp,speed = "100-mhz";
132+
};
133+
};
134+
112135
pinmux_flexspi1: pinmux_flexspi1 {
113136
group0 {
114137
pinmux = <&iomuxc_gpio_sd_b1_05_flexspi_a_dqs>;

boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,17 @@ zephyr_udc0: &usb1 {
238238

239239
&flexpwm2_pwm3 {
240240
status = "okay";
241-
pinctrl-0 = <&pinmux_flexpwm2>;
241+
pinctrl-0 = <&pinmux_flexpwm2_3>;
242+
pinctrl-names = "default";
243+
};
244+
245+
&flexpwm1_pwm0 {
246+
pinctrl-0 = <&pinmux_flexpwm1_0>;
247+
pinctrl-names = "default";
248+
};
249+
250+
&flexpwm1_pwm3 {
251+
pinctrl-0 = <&pinmux_flexpwm1>;
242252
pinctrl-names = "default";
243253
};
244254

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Enable PWM outputs on J24 pin 3 and J22 pin 6. These outputs are not used
9+
* by the test, but can be tested using the PWM shell.
10+
*/
11+
12+
&flexpwm1_pwm3 {
13+
status = "okay";
14+
};
15+
16+
&flexpwm1_pwm0 {
17+
status = "okay";
18+
};

0 commit comments

Comments
 (0)