summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
authorRajeev Nandan <rajeevny@codeaurora.org>2021-06-26 22:21:03 +0530
committerDouglas Anderson <dianders@chromium.org>2021-07-09 06:47:11 -0700
commit10f7b40e4f3050cd22a161f46a47564e8c5ce91f (patch)
tree5db098905663cf4aa649a6c5bd243f32f818f223 /drivers/gpu/drm/panel/panel-simple.c
parent60f800b2bdfafa350e642c4e77dc646a008f2111 (diff)
drm/panel: add basic DP AUX backlight support
Some panels support backlight control over DP AUX channel using VESA's standard backlight control interface. Using new DRM eDP backlight helpers, add support to create and register a backlight for those panels in drm_panel to simplify the panel drivers. The panel driver with access to "struct drm_dp_aux" can create and register a backlight device using following code snippet in its probe() function: err = drm_panel_dp_aux_backlight(panel, aux); if (err) return err; Then drm_panel will handle backlight_(enable|disable) calls similar to the case when drm_panel_of_backlight() is used. Currently, we are not supporting one feature where the source device can combine the backlight brightness levels set through DP AUX and the BL_PWM_DIM eDP connector pin. Since it's not required for the basic backlight controls, it can be added later. Signed-off-by: Rajeev Nandan <rajeevny@codeaurora.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Lyude Paul <lyude@redhat.com> [dianders: added blank line for warning when applying] Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/1624726268-14869-2-git-send-email-rajeevny@codeaurora.org
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
0 files changed, 0 insertions, 0 deletions