This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: PWM ecap function for LCM brightness

Part Number: AM5708


Hi Expert,

Could I disable PWM signal?

echo 100 > /sys/class/backlight/backlight/brightness

echo 50 > /sys/class/backlight/backlight/brightness

echo 1 > /sys/class/backlight/backlight/brightness

echo 0 > /sys/class/backlight/backlight/brightness

can see duty 50000 => 25000 => 500 => 0

But the brightness level=0 signal is same as brightness level=100,and the brightness is not on OFF status.

So how to disable the PWM signal?

Kernel:

lcd_bl: backlight {

                compatible = "pwm-backlight";

                pwms = <&ecap1 0 50000 0>;

                brightness-levels = <0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20

                                                           21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

                                                           41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60

                                                           61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80

                                                           81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100>;

                default-brightness-level = <100>;

        };

&epwmss1 {

    status = "okay";

 

    ecap1: ecap@48440100 {

        status = "okay";

    };

};

 

{MMC3_CMD, (M10 | PIN_OUTPUT_PULLUP)},

Thanks

Daniel