[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210316140707.RFC.2.Ie81e36b66aadc4afe29eb6ae9126177b811c381e@changeid>
Date: Tue, 16 Mar 2021 14:08:20 -0700
From: Douglas Anderson <dianders@...omium.org>
To: Bjorn Andersson <bjorn.andersson@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Thierry Reding <thierry.reding@...il.com>,
Sam Ravnborg <sam@...nborg.org>
Cc: robdclark@...omium.org, Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, David Airlie <airlied@...ux.ie>,
devicetree@...r.kernel.org, swboyd@...omium.org,
linux-arm-msm@...r.kernel.org, Steev Klimaszewski <steev@...i.org>,
eballetbo@...il.com, Andy Gross <agross@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
drinkcat@...omium.org, Douglas Anderson <dianders@...omium.org>,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 2/3] drm/panel: panel-simple: Add the panel on sc7180-trogdor-pompom
This adds an entry to simple panel for the timings of a panel that
might be attached to the board sc7180-trogdor-pompom.
As talked about in the previous patch ("dt-bindings: display: simple:
Add the panel on sc7180-trogdor-pompom") any number of panels might be
attached. These panels might have different timings or even different
resolutions.
When we see a pompom panel we'll use some conservative power sequence
timings that can work with any of the panels that will be
attached. All the rest of the details about the panel can be found by
read its EDID.
NOTE: if we wanted to optimize things a bit we could figure out which
of the panels was actually attached and perhaps reduce some of the
timings by a tiny bit if it was a panel that we recognized. I won't
attempt this right now but it could be a nice future optimization,
epsecially getting rid of the 200 ms "enable delay" imposed by the
Starry panel.
Signed-off-by: Douglas Anderson <dianders@...omium.org>
---
For overall discussion about the idea of defining a generic panel at
the board level, please respond in the bindings patch so we can keep
all discussion in one place.
drivers/gpu/drm/panel/panel-simple.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 4e2dad314c79..c8964efd562b 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2205,6 +2205,15 @@ static const struct panel_desc hitachi_tx23d38vm0caa = {
},
};
+static const struct panel_desc google_pompom_panel = {
+ .delay = {
+ .hpd_absent_delay = 200,
+ .enable = 200,
+ .unprepare = 500,
+ },
+ .connector_type = DRM_MODE_CONNECTOR_eDP,
+};
+
static const struct drm_display_mode innolux_at043tn24_mode = {
.clock = 9000,
.hdisplay = 480,
@@ -4265,6 +4274,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "hit,tx23d38vm0caa",
.data = &hitachi_tx23d38vm0caa
+ }, {
+ .compatible = "google,pompom-panel",
+ .data = &google_pompom_panel,
}, {
.compatible = "innolux,at043tn24",
.data = &innolux_at043tn24,
--
2.31.0.rc2.261.g7f71774620-goog
Powered by blists - more mailing lists