<div dir="ltr">Apologies for the spammy emails, I didn't see Sam's comment on time.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 17, 2021 at 6:36 PM Nikola Pavlica <<a href="mailto:pavlica.nikola@gmail.com">pavlica.nikola@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">The model and make of the LCD panel of the Vivax TPC-9150 is unknown,<br>
hence the panel settings that were retrieved with a FEX dump are named<br>
after the device NOT the actual panel.<br>
<br>
The LCD in question is a 50 pin MISO TFT LCD panel of the resolution<br>
1024x600 used by the aforementioned device.<br>
<br>
Version 2, as Thierry kindly suggested that I fix the order in which the<br>
panel was ordered compared to others.<br>
<br>
Version 3, filling in the required info suggested by Sam. Plus some<br>
factual issues that I've corrected myself (tested working)<br>
<br>
Thanks,<br>
Nikola<br>
<br>
Signed-off-by: Nikola Pavlica <<a href="mailto:pavlica.nikola@gmail.com" target="_blank">pavlica.nikola@gmail.com</a>><br>
---<br>
drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++<br>
1 file changed, 29 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c<br>
index 4e2dad314c79..f6b3e58c162b 100644<br>
--- a/drivers/gpu/drm/panel/panel-simple.c<br>
+++ b/drivers/gpu/drm/panel/panel-simple.c<br>
@@ -3989,6 +3989,32 @@ static const struct panel_desc urt_umsh_8596md_parallel = {<br>
.bus_format = MEDIA_BUS_FMT_RGB666_1X18,<br>
};<br>
<br>
+static const struct drm_display_mode vivax_tpc9150_panel_mode = {<br>
+ .clock = 60000,<br>
+ .hdisplay = 1024,<br>
+ .hsync_start = 1024 + 160,<br>
+ .hsync_end = 1024 + 160 + 100,<br>
+ .htotal = 1024 + 160 + 100 + 60,<br>
+ .vdisplay = 600,<br>
+ .vsync_start = 600 + 12,<br>
+ .vsync_end = 600 + 12 + 10,<br>
+ .vtotal = 600 + 12 + 10 + 13,<br>
+};<br>
+<br>
+static const struct panel_desc vivax_tpc9150_panel = {<br>
+ .modes = &vivax_tpc9150_panel_mode,<br>
+ .num_modes = 1,<br>
+ .size = {<br>
+ .width = 200,<br>
+ .height = 115,<br>
+ },<br>
+ .bpc = 6,<br>
+ .bus_format = MEDIA_BUS_FMT_RGB666_1X24,<br>
+ .bus_flags = DRM_BUS_FLAG_DE_HIGH,<br>
+ .connector_type = DRM_MODE_CONNECTOR_LVDS,<br>
+};<br>
+<br>
+<br>
static const struct drm_display_mode vl050_8048nt_c01_mode = {<br>
.clock = 33333,<br>
.hdisplay = 800,<br>
@@ -4490,6 +4516,9 @@ static const struct of_device_id platform_of_match[] = {<br>
}, {<br>
.compatible = "urt,umsh-8596md-20t",<br>
.data = &urt_umsh_8596md_parallel,<br>
+ }, {<br>
+ .compatible = "vivax,tpc9150-panel",<br>
+ .data = &vivax_tpc9150_panel,<br>
}, {<br>
.compatible = "vxt,vl050-8048nt-c01",<br>
.data = &vl050_8048nt_c01,<br>
-- <br>
2.32.0<br>
<br>
</blockquote></div>