Skip to contentSkip to conversation

drm/panel: simple: fix vertical timings for Innolux AT043TN24

PATCH In review Philipp Zabel 2 participants 6 messages Oct 11, 2017 – Oct 12, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 drm/panel: simple: fix vertical timings for Innolux AT043TN24

The vsync length should be 10 lines, as specified in the data sheet. This gets the actual refresh rate closer to nominal 60 Hz given the 9 MHz pixel clock.

---
 drivers/gpu/drm/panel/panel-simple.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/panel/panel-simple.c +2 -2
index 474fa759e06ec..fd21ca799be8d 100644
@@ -1017,8 +1017,8 @@ static const struct drm_display_mode innolux_at043tn24_mode = {
 	.htotal = 480 + 2 + 41 + 2,
 	.vdisplay = 272,
 	.vsync_start = 272 + 2,
-	.vsync_end = 272 + 2 + 11,
-	.vtotal = 272 + 2 + 11 + 2,
+	.vsync_end = 272 + 2 + 10,
+	.vtotal = 272 + 2 + 10 + 2,
 	.vrefresh = 60,
 	.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
 };
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/3 drm/panel: simple: add bus flags for Innolux AT043TN24

For LCD interface controllers that support configuring polarity of pixel clock and data enable signal, specify bus flags in the panel descriptor.

---
 drivers/gpu/drm/panel/panel-simple.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-simple.c +1 -0
index fd21ca799be8d..30944d006bf1c 100644
@@ -1032,6 +1032,7 @@ static const struct panel_desc innolux_at043tn24 = {
 		.height = 54,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
 };
 
 static const struct drm_display_mode innolux_at070tn92_mode = {
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Tested-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] drm/panel: simple: add bus flags for Innolux AT043TN24

Quoted 5 lines · Philipp Zabel

For LCD interface controllers that support configuring polarity of pixel clock and data enable signal, specify bus flags in the panel descriptor.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

PATCH 3/3 drm/panel: simple: add delays for Innolux AT043TN24

In reply to Philipp Zabel

The delays between video data and backlight enable and between backlight disable and end of video data are given as >= 160 ms in the datasheet.

---
 drivers/gpu/drm/panel/panel-simple.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +4 -0
index 30944d006bf1c..0d0769874e382 100644
@@ -1007,6 +1007,10 @@ static const struct panel_desc hitachi_tx23d38vm0caa = {
 		.width = 195,
 		.height = 117,
 	},
+	.delay = {
+		.enable = 160,
+		.disable = 160,
+	},
 };
 
 static const struct drm_display_mode innolux_at043tn24_mode = {
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Tested-by on v1 3/3
#4 lore raw

Re: [PATCH 3/3] drm/panel: simple: add delays for Innolux AT043TN24

Quoted 6 lines · Philipp Zabel

The delays between video data and backlight enable and between backlight
disable and end of video data are given as >= 160 ms in the datasheet.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Tested-by on v1 1/3
#5 lore raw
In reply to Philipp Zabel

Hi Philipp,

Quoted 5 lines · Philipp Zabel

The vsync length should be 10 lines, as specified in the data sheet. This gets the actual refresh rate closer to nominal 60 Hz given the 9 MHz pixel clock.

Thank you for all these fixes.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel