Skip to content

teensy41: pwm sample unable to build #45292

Answered by henrikbrixandersen
ric96 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to put the pinmux under &pinctrl:

/ {
        pwmleds {
                compatible = "pwm-leds";
                external_pwm_led: external_pwm_led {
                        pwms = <&flexpwm4_pwm2 0 PWM_MSEC(20)>;
                };
        };

        aliases {
                pwm-led0 = &external_pwm_led;
        };
};

&pinctrl {
        pinmux_flexpwm4: pinmux_flexpwm4 {
                group0 {
                        pinmux = <&iomuxc_gpio_emc_04_flexpwm4_pwma2>;
                        drive-strength = "high";
                        bias-pull-down;
                        slew-rate = "fast";
                };
        };
};

&flexpwm4_pwm2 {
        status = "okay";
     …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Mjenz
Comment options

Answer selected by ric96
Comment options

You must be logged in to vote
3 replies
@henrikbrixandersen
Comment options

@ric96
Comment options

@pirate21213
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants
Converted from issue

This discussion was converted from issue #45266 on May 03, 2022 06:54.