We have custom made board based on beaglebone black,
We are using linux kernel 3.8 in our project,
device doesnt have display, it has LEDs for different feedback/indiction.
we want to enable led-pwm driver in the kernel,
Basically our aim is to control leds through led driver with pwm binding,
But it seems that driver doesnt support configuration through device tree(and sysfs interface)
http://lxr.free-electrons.com/source/drivers/leds/?v=3.8
I tried using led-pwm driver in linux3.8 itself and thought i will add code for reading configuration from device tree,
i am able to compile it as built-in driver but probe funtion of the same is not getting called
I am sure i have not configured it properly, so one doubt is how do i configure it ?
This driver is very much present in linux3.14 kernel and
documentation gives information about how it can be configured using devicetree,
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/leds/leds-pwm.txt
But problem is we cant move to linux3.14 kernel because already much of testing has happened on linux3.8 kernel
and everything is works fine except one thing i.e. in Linux3.8 kernel we are using direct pwm interface for controlling leds. (sys/class/pwm) but we want to use (sys/class/led/). led-gpio driver works fine but we want to have pwm controlled leds.
Now only way for us to Make change in linux3.8 led-pwm driver, So
1. any suggestions for configurating led-pwm driver in linux3.8 ?
2. in driver/led/kconfig i see led-pwm is dependent on "HAVE_PWM" config, i am not able to find this configuration in kernel source ? but if i change that config to PWM then i am able to compile the driver, is this hack correct ?
Any suggestion will be helpful,
Thank you,
Regards,
Ankur