diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-06-08 14:07:55 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-06-14 13:36:29 -0400 |
commit | 01bacc13a39d65c052f087180f6c97863282403a (patch) | |
tree | 6d0476b043b56823b85764f11d68a6c8c692ea2a | |
parent | 14c8f2e9f8eaaed4fdcb2e1358a55b89f9df7c2b (diff) |
drm/panel: simple: add support for NEC NL12880B20-05
This adds support for the NEC LCD Technologies, Ltd. 12.1"
WXGA (1280x800) LVDS TFT LCD panel, which can be supported
by the simple panel driver.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608180758.31020-1-l.stach@pengutronix.de
-rw-r--r-- | Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 30 |
2 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt b/Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt new file mode 100644 index 000000000000..71cbc49ecfab --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/nec,nl12880b20-05.txt | |||
@@ -0,0 +1,8 @@ | |||
1 | NEC LCD Technologies, Ltd. 12.1" WXGA (1280x800) LVDS TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "nec,nl12880bc20-05" | ||
5 | - power-supply: as specified in the base binding | ||
6 | |||
7 | This binding is compatible with the simple-panel binding, which is specified | ||
8 | in simple-panel.txt in this directory. | ||
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index c4566ce8fda7..585b37f9171a 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -1322,6 +1322,33 @@ static const struct panel_desc lg_lp129qe = { | |||
1322 | }, | 1322 | }, |
1323 | }; | 1323 | }; |
1324 | 1324 | ||
1325 | static const struct display_timing nec_nl12880bc20_05_timing = { | ||
1326 | .pixelclock = { 67000000, 71000000, 75000000 }, | ||
1327 | .hactive = { 1280, 1280, 1280 }, | ||
1328 | .hfront_porch = { 2, 30, 30 }, | ||
1329 | .hback_porch = { 6, 100, 100 }, | ||
1330 | .hsync_len = { 2, 30, 30 }, | ||
1331 | .vactive = { 800, 800, 800 }, | ||
1332 | .vfront_porch = { 5, 5, 5 }, | ||
1333 | .vback_porch = { 11, 11, 11 }, | ||
1334 | .vsync_len = { 7, 7, 7 }, | ||
1335 | }; | ||
1336 | |||
1337 | static const struct panel_desc nec_nl12880bc20_05 = { | ||
1338 | .timings = &nec_nl12880bc20_05_timing, | ||
1339 | .num_timings = 1, | ||
1340 | .bpc = 8, | ||
1341 | .size = { | ||
1342 | .width = 261, | ||
1343 | .height = 163, | ||
1344 | }, | ||
1345 | .delay = { | ||
1346 | .enable = 50, | ||
1347 | .disable = 50, | ||
1348 | }, | ||
1349 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, | ||
1350 | }; | ||
1351 | |||
1325 | static const struct drm_display_mode nec_nl4827hc19_05b_mode = { | 1352 | static const struct drm_display_mode nec_nl4827hc19_05b_mode = { |
1326 | .clock = 10870, | 1353 | .clock = 10870, |
1327 | .hdisplay = 480, | 1354 | .hdisplay = 480, |
@@ -1972,6 +1999,9 @@ static const struct of_device_id platform_of_match[] = { | |||
1972 | .compatible = "lg,lp129qe", | 1999 | .compatible = "lg,lp129qe", |
1973 | .data = &lg_lp129qe, | 2000 | .data = &lg_lp129qe, |
1974 | }, { | 2001 | }, { |
2002 | .compatible = "nec,nl12880bc20-05", | ||
2003 | .data = &nec_nl12880bc20_05, | ||
2004 | }, { | ||
1975 | .compatible = "nec,nl4827hc19-05b", | 2005 | .compatible = "nec,nl4827hc19-05b", |
1976 | .data = &nec_nl4827hc19_05b, | 2006 | .data = &nec_nl4827hc19_05b, |
1977 | }, { | 2007 | }, { |