This series brings up proper power sequencing, glitch-free blanking, and
AMOLED backlight control ("smart dimming") for the Samsung AMS452EF01
panel with S6E88A0 controller (used on Samsung Galaxy A3 2015 / MSM8916):- Patch 1 sets prepare_prev_first = true so the DSI host is powered on before prepare() sends DCS init commands and reads MTP calibration. - Patch 2 moves MIPI_DCS_SET_DISPLAY_OFF + 35 ms delay into a .disable callback so the panel blanks while the video stream is still active, avoiding ~160 ms of noise/stripes on screen blank. - Patch 3 adds full 62-level smart-dimming backlight support (MTP calibration read on first prepare, revA/revC gamma generation, AOR and ELVSS tables, HS DCS updates) and adds `depends on BACKLIGHT_CLASS_DEVICE` in Kconfig. Note: on MSM8916, smooth video-mode backlight updates also benefit from the independent drm/msm/dsi patch skipping dsi_wait4video_eng_busy() when BLOCK_DMA_WITHIN_FRAME is set: https://lore.kernel.org/linux-arm-msm/[email protected]/ (no compile-time or API dependency between the two series). Tested on Samsung Galaxy A3 (SM-A300F, rev C panel). Vladimir Bely (3): drm/panel: s6e88a0-ams452ef01: set prepare_prev_first drm/panel: s6e88a0-ams452ef01: move display off to disable callback drm/panel: s6e88a0-ams452ef01: add backlight support drivers/gpu/drm/panel/Kconfig | 1 + .../panel/panel-samsung-s6e88a0-ams452ef01.c | 830 +++++++++++++++++- 2 files changed, 829 insertions(+), 2 deletions(-) base-commit: 5ce32a0c94a827ff44ee60898c28060714dcff75 -- 2.43.0
