[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1624099230-20899-3-git-send-email-rajeevny@codeaurora.org>
Date: Sat, 19 Jun 2021 16:10:27 +0530
From: Rajeev Nandan <rajeevny@...eaurora.org>
To: dri-devel@...ts.freedesktop.org, linux-arm-msm@...r.kernel.org,
freedreno@...ts.freedesktop.org, devicetree@...r.kernel.org
Cc: Rajeev Nandan <rajeevny@...eaurora.org>,
linux-kernel@...r.kernel.org, thierry.reding@...il.com,
sam@...nborg.org, robdclark@...il.com, dianders@...omium.org,
lyude@...hat.com, jani.nikula@...el.com, robh@...nel.org,
laurent.pinchart@...asonboard.com, a.hajda@...sung.com,
daniel.thompson@...aro.org, hoegsberg@...omium.org,
abhinavk@...eaurora.org, seanpaul@...omium.org,
kalyan_t@...eaurora.org, mkrishn@...eaurora.org,
lee.jones@...aro.org, jingoohan1@...il.com,
linux-fbdev@...r.kernel.org
Subject: [v7 2/5] drm/panel-simple: Support DP AUX backlight
If there is no backlight specified in the device tree and the panel
has access to the DP AUX channel then create a DP AUX backlight if
supported by the panel.
Signed-off-by: Rajeev Nandan <rajeevny@...eaurora.org>
Reviewed-by: Douglas Anderson <dianders@...omium.org>
---
(no changes since v5)
This patch depends on the previous patch (2/5) of this series.
Changes in v4:
- New
Changes in v5:
- Address review comments and move backlight functions to drm_panel.c (Douglas)
- Create and register DP AUX backlight if there is no backlight specified in the
device tree and panel has the DP AUX channel. (Douglas)
- The new drm_panel_dp_aux_backlight() will do the drm_edp_backlight_supported() check.
drivers/gpu/drm/panel/panel-simple.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index df6fbd1..26555ec 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -800,6 +800,12 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc,
if (err)
goto disable_pm_runtime;
+ if (!panel->base.backlight && panel->aux) {
+ err = drm_panel_dp_aux_backlight(&panel->base, panel->aux);
+ if (err)
+ goto disable_pm_runtime;
+ }
+
drm_panel_add(&panel->base);
return 0;
--
2.7.4
Powered by blists - more mailing lists