How to use timers2 as pwm-backlight?
HI, I needs use timers2 to enable the pwm function. Then it will used as pwm-backlight for LCD. I wasn't known how to write the dts file. Could you show me some example code on this function?
HI, I needs use timers2 to enable the pwm function. Then it will used as pwm-backlight for LCD. I wasn't known how to write the dts file. Could you show me some example code on this function?
Could you please try this declaration and use &pwm2 phandle in your pwms declaration ( pwms = <&pwm2 0 5000000>;):
503 &timers2 {
504 status = "okay";
505 /* spare dmas for other usage */
506 /delete-property/dmas;
507 /delete-property/dma-names;
508 - pwm {
+ pwm2: pwm {
509 pinctrl-0 = <&pwm2_pins_a>;
510 pinctrl-1 = <&pwm2_sleep_pins_a>;
511 pinctrl-names = "default", "sleep";
512 #pwm-cells = <2>;
513 status = "okay";
514 };
515 - timer@1 {
516 - status = "disabled";
517 - };
518 };
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.