how can i add pwm-backlight in my kernel? i use RIoTboard and linux L3.10.17_1.0.0 but can't find where can add it.
thanks!
Solved! Go to Solution.
Ooops! Totally forgot about it.
If you want to change the PWM device, you don't have to change any source code, just the DTS file for your board. Pretty much as I did for my board:
And that's all. As Artur Petukhov pointed out, you'll have your backlight control exported to sysfs, so you can change its brightness value.
Please refer to the Section 6.2.2 of the document attached.
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
you need to do a couple of things:
Also, you can see what I did to my board here https://community.freescale.com/thread/337988 It's for a iMX25 board, but the DTB configuration is similar.
Hi Carlos:
thanks for your reply. but i have some point not understand.
1. in imx6solo_RIoTboard.dts have pwm-backlight
backlight {
compatible = "pwm-backlight";
pwms = <&pwm4 0 5000000>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <7>;
2. if modify to use pwm3 (SD1_DATA1) where can modify it. because i can't fine the file in source code. could you give me the fiel path or which way to modify it?
Ooops! Totally forgot about it.
If you want to change the PWM device, you don't have to change any source code, just the DTS file for your board. Pretty much as I did for my board:
And that's all. As Artur Petukhov pointed out, you'll have your backlight control exported to sysfs, so you can change its brightness value.