Hi,
I tried to implement the CAF LEDs module as described here. But when added the Kconfig variable CONFIG_LED_PWM=y I got the error message "CONFIG_LED_PWM was assigned the value y, but got the value n. Missing dependencies: DT_HAS_PWM_LEDS_ENABLED"
How do I enable the PWM LEDs? My dts file looks similar to the description of the CAF LEDs module.
pwmleds0 {
compatible = "pwm-leds";
status = "okay";
red_pwm_led: red_pwm_led {
status = "okay";
pwms = <&pwm0 0 PWM_MSEC(1) PWM_POLARITY_INVERTED>;
label = "LED0 red";
};
green_pwm_led: green_pwm_led {
status = "okay";
pwms = <&pwm0 1 PWM_MSEC(1) PWM_POLARITY_INVERTED>;
label = "LED0 green";
};
blue_pwm_led: blue_pwm_led {
status = "okay";
pwms = <&pwm0 2 PWM_MSEC(1) PWM_POLARITY_INVERTED>;
label = "LED0 blue";
};
};
Best regards,
Christian