leds-pwm frequecy support for imx28 bsp linux 2.6.35.3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

leds-pwm frequecy support for imx28 bsp linux 2.6.35.3

Jump to solution
925 Views
ask
Contributor III

Hi all,

We have two backlight controls in imx287 processor based. One is for lcd panel and other is for switch buttons.

lcd panel backlight is connected to pwm4(gpio3_29) and switch buttons backlgiht is connected to pwm3(gpio3_28).

 

Dutycycle of pwm3 is able to cotrol through  drivers/leds/leds-mxs-pwm.c driver after configuring platform data as per my needs. pwm3 output is routed to switch buttons via booster(tps6115), which needs minimum 50 khz frequency. The default frequency which I am getting is 1.47Khz using leds-mxs-pwm driver.

Please let me know how to change the default frequency to 50kz.

0 Kudos
1 Solution
582 Views
ask
Contributor III

I could able to chage the period by chaning cdiv value. Now I could able to change the switch buttons brightness.

View solution in original post

0 Kudos
2 Replies
583 Views
ask
Contributor III

I could able to chage the period by chaning cdiv value. Now I could able to change the switch buttons brightness.

0 Kudos
582 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi,

Thanks for sharing your solution!

Best regards!

/Carlos.

0 Kudos