Hi @ah4711
I tested with these changes in devicetree and it is working.
diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/arm/boot/dts/imx6q-apalis-eval.dts
index 3ac59ca1d061..dcffcfa7a3ca 100644
--- a/arch/arm/boot/dts/imx6q-apalis-eval.dts
+++ b/arch/arm/boot/dts/imx6q-apalis-eval.dts
@@ -64,6 +64,15 @@
regulator-always-on;
};
+ pwmleds {
+ compatible = "pwm-leds";
+ led1 {
+ label = "PWM1";
+ pwms = <&pwm1 0 5000000 0>;
+ max-brightness = <255>;
+ };
+ };
+
};
&can1 {