Skip to content

Commit

Permalink
board: MIMXRT1062-FMURT6: correct PWM prescaler
Browse files Browse the repository at this point in the history
Set the PWM clock prescaler values to 64 for controlling standard servo
50Hz carrier frequency.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
  • Loading branch information
bperseghetti authored and mmahadevan108 committed Jul 3, 2023
1 parent 64c4d4d commit 3529de3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion boards/arm/mimxrt1062_fmurt6/mimxrt1062_fmurt6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
led1 = &red_led;
watchdog0 = &wdog0;
sdhc0 = &usdhc1;
pwm-0 = &flexpwm2_pwm0;
gps1 = &lpuart2;
telem1 = &lpuart3;
telem4-gps2 = &lpuart5;
Expand Down Expand Up @@ -350,48 +349,56 @@
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch1>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm2_pwm1 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch2>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm2_pwm2 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch3>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm2_pwm3 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch4>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm3_pwm2 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch5>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm3_pwm0 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch6>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm4_pwm2 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch7>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&flexpwm4_pwm0 {
status = "okay";
pinctrl-0 = <&pinmux_flexpwm_fmu_ch8>;
pinctrl-names = "default";
nxp,prescaler = <64>;
};

&enet2 {
Expand Down

0 comments on commit 3529de3

Please sign in to comment.