AnsweredAssumed Answered

backlight does not work in Android

Question asked by fang min on Jul 3, 2014
Latest reply on Jul 7, 2014 by alejandrolozano

hi, ALL 

     i encountered a problem for backlight.

     the Backlight Brightness pin is pwm3 that correspond to SD4_DAT1 pad on my customer board.

     i configured SD4_DAT1 pad to MX6Q_PAD_SD4_DAT1__PWM3_PWMO。

     the platform_pwm_backlight_data is like this:

------------------------------------------------------------------------------------------------

static struct platform_pwm_backlight_data mx6_pwm_backlight_data = {

  .pwm_id = 2,

  .max_brightness = 248,

  .dft_brightness = 128,

  .pwm_period_ns = 50000,

};

-------------------------------------------------------------------------------------

and add the following code in boad init.

  imx6q_add_mxc_pwm(2);

  imx6q_add_mxc_pwm_backlight(2, &mx6_pwm_backlight_data);

 

but when i operated the Brightness in android setting,   it seems not work.

 

Do anyone know what's missing or what's wrong?

    

     lvds0.JPG.jpg

Outcomes