<div dir="ltr">Add <span style="background-color:transparent;font-size:1em;font-family:Roboto,sans-serif;color:rgb(32,33,36)"><a href="mailto:hsinyi@chromium.org">hsinyi@chromium.org</a> to cc list</span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 18 Feb 2022 at 17:44, Rex Nie <<a href="mailto:rexnie3@gmail.com">rexnie3@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Daocai Nie <<a href="mailto:niedaocai@huaqin.corp-partner.google.com" target="_blank">niedaocai@huaqin.corp-partner.google.com</a>><br>
<br>
Add support for the 14" innolux,n140hca-eac eDP panel.<br>
<br>
Signed-off-by: Daocai Nie <<a href="mailto:niedaocai@huaqin.corp-partner.google.com" target="_blank">niedaocai@huaqin.corp-partner.google.com</a>><br>
---<br>
drivers/gpu/drm/panel/panel-edp.c | 26 ++++++++++++++++++++++++++<br>
1 file changed, 26 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c<br>
index f7bfcf63d48e..f5f9c9cb26ba 100644<br>
--- a/drivers/gpu/drm/panel/panel-edp.c<br>
+++ b/drivers/gpu/drm/panel/panel-edp.c<br>
@@ -1330,6 +1330,29 @@ static const struct panel_desc innolux_n125hce_gn1 = {<br>
},<br>
};<br>
<br>
+static const struct display_timing innolux_n140hca_eac_timing = {<br>
+ .pixelclock = { 72600000, 76420000, 80240000 },<br>
+ .hactive = { 1920, 1920, 1920 },<br>
+ .hfront_porch = { 80, 80, 80 },<br>
+ .hback_porch = { 190, 190, 190 },<br>
+ .hsync_len = { 60, 60, 60 },<br>
+ .vactive = { 1080, 1080, 1080 },<br>
+ .vfront_porch = { 6, 6, 6 },<br>
+ .vback_porch = { 38, 38, 38 },<br>
+ .vsync_len = { 8, 8, 8 },<br>
+ .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW,<br>
+};<br>
+<br>
+static const struct panel_desc innolux_n140hca_eac = {<br>
+ .timings = &innolux_n140hca_eac_timing,<br>
+ .num_timings = 1,<br>
+ .bpc = 6,<br>
+ .size = {<br>
+ .width = 309,<br>
+ .height = 174,<br>
+ },<br>
+};<br>
+<br>
static const struct drm_display_mode innolux_p120zdg_bf1_mode = {<br>
.clock = 206016,<br>
.hdisplay = 2160,<br>
@@ -1750,6 +1773,9 @@ static const struct of_device_id platform_of_match[] = {<br>
}, {<br>
.compatible = "innolux,n125hce-gn1",<br>
.data = &innolux_n125hce_gn1,<br>
+ }, {<br>
+ .compatible = "innolux,n140hca-eac",<br>
+ .data = &innolux_n140hca_eac,<br>
}, {<br>
.compatible = "innolux,p120zdg-bf1",<br>
.data = &innolux_p120zdg_bf1,<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div>