Hi NXP Team,
We are working on iMX8M Mini on Android 11 OS.
We have integrated pwm backlight driver (pwm-bl.c) to our code for backlight control of LVDS display.
The backlight is getting properly controlled from the pwm node i.e /sys/class/backlight/backlight_grp/brightness, but we are not able to control it via Android UI backlight slider.
Kernel Changes:
backlight: backlight_grp {
compatible = "pwm-backlight";
pwms = <&pwm3 0 50000>; /*duty cycle in nano seconds*/
enable-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; /*LCD_SHUTDWN*/
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <7>;
post-pwm-on-delay-ms = <10>;
pwm-off-delay-ms = <10>;
status = "okay";
};
init.rc changes:
setprop vendor.hw.backlight.dev "backlight_grp"
chown system system /sys/class/backlight/backlight_grp/brightness
chmod 0660 /sys/class/backlight/backlight_grp/brightness
Could you please help us in solving this issue.
Thanks,
Hrithik