leds-pwm frequecy support for imx28 bsp linux 2.6.35.3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

leds-pwm frequecy support for imx28 bsp linux 2.6.35.3

跳至解决方案
1,681 次查看
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 项奖励
回复
1 解答
1,338 次查看
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 项奖励
回复
2 回复数
1,339 次查看
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 项奖励
回复
1,338 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi,

Thanks for sharing your solution!

Best regards!

/Carlos.

0 项奖励
回复