Skip to contentSkip to conversation

drm/panel: simple: Fix Innolux G101ICE-L01 timings

PATCH In review Marek Vasut 2 participants 3 messages Oct 8, 2023 – Nov 16, 2023

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

PATCH 1/1 drm/panel: simple: Fix Innolux G101ICE-L01 timings

The Innolux G101ICE-L01 datasheet [1] page 17 table 6.1 INPUT SIGNAL TIMING SPECIFICATIONS
indicates that maximum vertical blanking time is 40 lines. Currently the driver uses 29 lines.

Fix it, and since this panel is a DE panel, adjust the timings to make them less hostile to controllers which cannot do 1 px HSA/VSA, distribute the delays evenly between all three parts.

[1] https://www.data-modul.com/sites/default/files/products/G101ICE-L01-C2-specification-12042389.pdf

Fixes 1e29b840af9f ("drm/panel: simple: Add Innolux G101ICE-L01 panel")

---
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Jessica Zhang <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]

---
 drivers/gpu/drm/panel/panel-simple.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/panel/panel-simple.c +6 -6
index 7ce51ad616296..44c11c418cd56 100644
@@ -2295,13 +2295,13 @@ static const struct panel_desc innolux_g070y2_t02 = {
 static const struct display_timing innolux_g101ice_l01_timing = {
 	.pixelclock = { 60400000, 71100000, 74700000 },
 	.hactive = { 1280, 1280, 1280 },
-	.hfront_porch = { 41, 80, 100 },
-	.hback_porch = { 40, 79, 99 },
-	.hsync_len = { 1, 1, 1 },
+	.hfront_porch = { 30, 60, 70 },
+	.hback_porch = { 30, 60, 70 },
+	.hsync_len = { 22, 40, 60 },
 	.vactive = { 800, 800, 800 },
-	.vfront_porch = { 5, 11, 14 },
-	.vback_porch = { 4, 11, 14 },
-	.vsync_len = { 1, 1, 1 },
+	.vfront_porch = { 3, 8, 14 },
+	.vback_porch = { 3, 8, 14 },
+	.vsync_len = { 4, 7, 12 },
 	.flags = DISPLAY_FLAGS_DE_HIGH,
 };
 
Signature · 1 line
2.40.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 41 lines · Marek Vasut

The Innolux G101ICE-L01 datasheet [1] page 17 table 6.1 INPUT SIGNAL TIMING SPECIFICATIONS
indicates that maximum vertical blanking time is 40 lines. Currently the driver uses 29 lines.

Fix it, and since this panel is a DE panel, adjust the timings to make them less hostile to controllers which cannot do 1 px HSA/VSA, distribute the delays evenly between all three parts.

[1] https://www.data-modul.com/sites/default/files/products/G101ICE-L01-C2-specification-12042389.pdf

Fixes 1e29b840af9f ("drm/panel: simple: Add Innolux G101ICE-L01 panel")

---
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Jessica Zhang <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]

---
  drivers/gpu/drm/panel/panel-simple.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/panel/panel-simple.c +3 -3
index 7ce51ad616296..44c11c418cd56 100644
@@ -2295,13 +2295,13 @@ static const struct panel_desc innolux_g070y2_t02 = {
  static const struct display_timing innolux_g101ice_l01_timing = {
  	.pixelclock = { 60400000, 71100000, 74700000 },
  	.hactive = { 1280, 1280, 1280 },
-	.hfront_porch = { 41, 80, 100 },
-	.hback_porch = { 40, 79, 99 },
-	.hsync_len = { 1, 1, 1 },
+	.hfront_porch = { 30, 60, 70 },
+	.hback_porch = { 30, 60, 70 },
+	.hsync_len = { 22, 40, 60 },

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc innolux_g070y2_t02 = { · line 2307

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +3 -3
  	.vactive = { 800, 800, 800 },
-	.vfront_porch = { 5, 11, 14 },
-	.vback_porch = { 4, 11, 14 },
-	.vsync_len = { 1, 1, 1 },
+	.vfront_porch = { 3, 8, 14 },
+	.vback_porch = { 3, 8, 14 },
+	.vsync_len = { 4, 7, 12 },
  	.flags = DISPLAY_FLAGS_DE_HIGH,
  };
 

Looks ok, I'll wait for a few days before applying if someone wants to test it.

Thanks,
Neil

#2 lore raw
Quoted 57 lines · Neil Armstrong

Hi,

Quoted 41 lines · Marek Vasut

The Innolux G101ICE-L01 datasheet [1] page 17 table 6.1 INPUT SIGNAL TIMING SPECIFICATIONS
indicates that maximum vertical blanking time is 40 lines. Currently the driver uses 29 lines.

Fix it, and since this panel is a DE panel, adjust the timings to make them less hostile to controllers which cannot do 1 px HSA/VSA, distribute the delays evenly between all three parts.

[1] https://www.data-modul.com/sites/default/files/products/G101ICE-L01-C2-specification-12042389.pdf

Fixes 1e29b840af9f ("drm/panel: simple: Add Innolux G101ICE-L01 panel")

---
Cc: Daniel Vetter <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Jessica Zhang <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
---
  drivers/gpu/drm/panel/panel-simple.c | 12 ++++++------

  1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/panel/panel-simple.c +2 -3
index 7ce51ad616296..44c11c418cd56 100644
@@ -2295,13 +2295,13 @@ static const struct panel_desc 
 innolux_g070y2_t02 = {
   static const struct display_timing innolux_g101ice_l01_timing = {
       .pixelclock = { 60400000, 71100000, 74700000 },
       .hactive = { 1280, 1280, 1280 },
-    .hfront_porch = { 41, 80, 100 },
-    .hback_porch = { 40, 79, 99 },
-    .hsync_len = { 1, 1, 1 },
+    .hfront_porch = { 30, 60, 70 },
+    .hback_porch = { 30, 60, 70 },

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc · line 2307

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +4 -3
+    .hsync_len = { 22, 40, 60 },
       .vactive = { 800, 800, 800 },
-    .vfront_porch = { 5, 11, 14 },
-    .vback_porch = { 4, 11, 14 },
-    .vsync_len = { 1, 1, 1 },
+    .vfront_porch = { 3, 8, 14 },
+    .vback_porch = { 3, 8, 14 },
+    .vsync_len = { 4, 7, 12 },
       .flags = DISPLAY_FLAGS_DE_HIGH,
   };

Looks ok, I'll wait for a few days before applying if someone wants to test it.

Quoted 1 line

Maybe it is time to apply ?