Hi, I would like to drive a LED using PWM Subsystem to modulate light intensity.
I've properly configured pin-mux in my custom board, and now I can drive the LED from the user-space using the sysfs interface. I would prefer to use the kernel LED framework, which provides several useful kernel-level led triggers, but as now this is not possible with latest PSP kernel.
Looking at kernel drivers source code, I've seen that AM335x PWMSS driver is based on PWM framework which came as a kernel patch by Bill Gatliff (which is not the same framework included in latest 3.6 official Linux kernel). Unfortunately it seems that not all the patches by Gatliff have been included in AM335x Linux kernel: CONFIG_LEDS_PWM feature has not been patched, therefore LED framework and Gatliff PWM framework are not compatible in AM335x Linux kernel, and this makes impossible to drive a pwm-based leds using LED framework.
Can someone help or give some hints on which is the exact version of Gatliff patches already included?
I would try to complete that patching, and I will share the result if useful to someone else.
Thanks. Regards,
Max