<div dir="ltr"><div><div><div><span style="font-family:verdana,sans-serif">Hello Jitao,<br><br></span></div><span style="font-family:verdana,sans-serif">Can't we add this panel information in device tree file instead inside the device driver ?<br><br></span></div><span style="font-family:verdana,sans-serif">Regards<br></span></div><span style="font-family:verdana,sans-serif">Sanjeev Sharma </span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 4:31 PM, Jitao Shi <span dir="ltr"><<a href="mailto:jitao.shi@mediatek.com" target="_blank">jitao.shi@mediatek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The LG lp120up1 TFT LCD panel with eDP interface is a 12.0" 1920x1280<br>
panel, which can be supported by the simple panel driver<br>
<br>
Signed-off-by: Jitao Shi <<a href="mailto:jitao.shi@mediatek.com">jitao.shi@mediatek.com</a>><br>
---<br>
Changes since v1:<br>
- Add eDP panel type in comment msg<br>
- Fixed comment msg with 72 characters width<br>
---<br>
drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++<br>
1 file changed, 26 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c<br>
index f88a631..2030c37 100644<br>
--- a/drivers/gpu/drm/panel/panel-simple.c<br>
+++ b/drivers/gpu/drm/panel/panel-simple.c<br>
@@ -982,6 +982,29 @@ static const struct panel_desc lg_lb070wv8 = {<br>
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,<br>
};<br>
<br>
+static const struct drm_display_mode lg_lp120up1_mode = {<br>
+ .clock = 162300,<br>
+ .hdisplay = 1920,<br>
+ .hsync_start = 1920 + 40,<br>
+ .hsync_end = 1920 + 40 + 40,<br>
+ .htotal = 1920 + 40 + 40+ 80,<br>
+ .vdisplay = 1280,<br>
+ .vsync_start = 1280 + 4,<br>
+ .vsync_end = 1280 + 4 + 4,<br>
+ .vtotal = 1280 + 4 + 4 + 12,<br>
+ .vrefresh = 60,<br>
+};<br>
+<br>
+static const struct panel_desc lg_lp120up1 = {<br>
+ .modes = &lg_lp120up1_mode,<br>
+ .num_modes = 1,<br>
+ .bpc = 8,<br>
+ .size = {<br>
+ .width = 267,<br>
+ .height = 183,<br>
+ },<br>
+};<br>
+<br>
static const struct drm_display_mode lg_lp129qe_mode = {<br>
.clock = 285250,<br>
.hdisplay = 2560,<br>
@@ -1256,6 +1279,9 @@ static const struct of_device_id platform_of_match[] = {<br>
.compatible = "lg,lb070wv8",<br>
.data = &lg_lb070wv8,<br>
}, {<br>
+ .compatible = "lg,lp120up1",<br>
+ .data = &lg_lp120up1,<br>
+ }, {<br>
.compatible = "lg,lp129qe",<br>
.data = &lg_lp129qe,<br>
}, {<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.5<br>
<br>
<br>
_______________________________________________<br>
linux-arm-kernel mailing list<br>
<a href="mailto:linux-arm-kernel@lists.infradead.org">linux-arm-kernel@lists.infradead.org</a><br>
<a href="http://lists.infradead.org/mailman/listinfo/linux-arm-kernel" rel="noreferrer" target="_blank">http://lists.infradead.org/mailman/listinfo/linux-arm-kernel</a><br>
</font></span></blockquote></div><br></div>