From: Thierry Reding <tred...@nvidia.com>

The porch maximum values for the HannStar HSD101PWW2 are unusually
small. Make them a bit larger to allow a more flexibility when
overriding the timings in device tree. Unfortunately the datasheet
doesn't list porch limits in detail, so this is a bit of guesswork.

Signed-off-by: Thierry Reding <tred...@nvidia.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-simple.c 
b/drivers/gpu/drm/panel/panel-simple.c
index 4badda6570d5..4bab181e9d4b 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2104,13 +2104,13 @@ static const struct panel_desc hannstar_hsd100pxn1 = {
 static const struct display_timing hannstar_hsd101pww2_timing = {
        .pixelclock = { 64300000, 71100000, 82000000 },
        .hactive = { 1280, 1280, 1280 },
-       .hfront_porch = { 1, 1, 10 },
-       .hback_porch = { 1, 1, 10 },
-       .hsync_len = { 58, 158, 661 },
+       .hfront_porch = { 1, 1, 64 },
+       .hback_porch = { 1, 1, 64 },
+       .hsync_len = { 58, 158, 553 },
        .vactive = { 800, 800, 800 },
-       .vfront_porch = { 1, 1, 10 },
-       .vback_porch = { 1, 1, 10 },
-       .vsync_len = { 1, 21, 203 },
+       .vfront_porch = { 1, 1, 32 },
+       .vback_porch = { 1, 1, 32 },
+       .vsync_len = { 1, 21, 159 },
        .flags = DISPLAY_FLAGS_DE_HIGH,
 };
 
-- 
2.41.0

Reply via email to