[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220628075735.2142949-1-rexnie3@gmail.com>
Date: Tue, 28 Jun 2022 15:57:35 +0800
From: Rex Nie <rexnie3@...il.com>
To: linux-arm-kernel@...ts.infradead.org
Cc: Thierry Reding <thierry.reding@...il.com>,
Sam Ravnborg <sam@...nborg.org>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
robh+dt@...nel.org, spanda@...eaurora.org, dianders@...omium.org,
devicetree@...r.kernel.org, Hsin-Yi Wang <hsinyi@...omium.org>,
Rex Nie <rexnie3@...il.com>
Subject: [PATCH 1/2] drm/panel-edp: Add eDP innolux panel support
Add support for the 14" innolux,n140hca-eac eDP panel.
Signed-off-by: Rex Nie <rexnie3@...il.com>
---
drivers/gpu/drm/panel/panel-edp.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c
index 3626469c4cc2..2a8fcdffe80c 100644
--- a/drivers/gpu/drm/panel/panel-edp.c
+++ b/drivers/gpu/drm/panel/panel-edp.c
@@ -1355,6 +1355,29 @@ static const struct panel_desc innolux_n125hce_gn1 = {
},
};
+static const struct display_timing innolux_n140hca_eac_timing = {
+ .pixelclock = { 72600000, 76420000, 80240000 },
+ .hactive = { 1920, 1920, 1920 },
+ .hfront_porch = { 80, 80, 80 },
+ .hback_porch = { 190, 190, 190 },
+ .hsync_len = { 60, 60, 60 },
+ .vactive = { 1080, 1080, 1080 },
+ .vfront_porch = { 6, 6, 6 },
+ .vback_porch = { 38, 38, 38 },
+ .vsync_len = { 8, 8, 8 },
+ .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW,
+};
+
+static const struct panel_desc innolux_n140hca_eac = {
+ .timings = &innolux_n140hca_eac_timing,
+ .num_timings = 1,
+ .bpc = 6,
+ .size = {
+ .width = 309,
+ .height = 174,
+ },
+};
+
static const struct drm_display_mode innolux_p120zdg_bf1_mode = {
.clock = 206016,
.hdisplay = 2160,
@@ -1775,6 +1798,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "innolux,n125hce-gn1",
.data = &innolux_n125hce_gn1,
+ }, {
+ .compatible = "innolux,n140hca-eac",
+ .data = &innolux_n140hca_eac,
}, {
.compatible = "innolux,p120zdg-bf1",
.data = &innolux_p120zdg_bf1,
--
2.25.1
Powered by blists - more mailing lists