Skip to contentSkip to conversation

drm/panel-edp: Add eDP innolux panel support

PATCH In review Rex Nie 2 participants 3 messages Feb 18, 2022 – Feb 21, 2022

Subsystems (4)
lore
Share & tools
lore

Rex Nie

author
#0 lore raw

PATCH 1/2 drm/panel-edp: Add eDP innolux panel support

From: Daocai Nie <[email protected]>

Add support for the 14" innolux,n140hca-eac eDP panel.

---
 drivers/gpu/drm/panel/panel-edp.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/gpu/drm/panel/panel-edp.c +26 -0
index f7bfcf63d48e..f5f9c9cb26ba 100644
@@ -1330,6 +1330,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,
@@ -1750,6 +1773,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,
Signature · 1 line
2.25.1
author
#1 lore raw

Add [email protected] to cc list

Quoted 60 lines · Rex Nie

From: Daocai Nie <[email protected]>

Add support for the 14" innolux,n140hca-eac eDP panel.

---
 drivers/gpu/drm/panel/panel-edp.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/gpu/drm/panel/panel-edp.c +23 -0
index f7bfcf63d48e..f5f9c9cb26ba 100644
@@ -1330,6 +1330,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,
drivers/gpu/drm/panel/panel-edp.c +3 -0
@@ -1750,6 +1773,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

Acked-by
#2 lore raw
Quoted 10 lines · Rex Nie

Add [email protected] to cc list

Quoted 6 lines · Rex Nie

From: Daocai Nie <[email protected]>

Add support for the 14" innolux,n140hca-eac eDP panel.

Quoted 51 lines
Quoted 51 lines
---
 drivers/gpu/drm/panel/panel-edp.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/gpu/drm/panel/panel-edp.c +26 -1
index f7bfcf63d48e..f5f9c9cb26ba 100644
@@ -1330,6 +1330,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,
@@ -1750,6 +1773,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