diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-06-08 14:07:57 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-06-14 13:37:27 -0400 |
commit | 4177fa66a3248e3a5f4b512380a7fc5fce68e76d (patch) | |
tree | c56c205970e6841b9a8fbb8b1a4e8db7d326a943 | |
parent | fa9b4b6ff44e2e1747b2f5e5401d4e94b283999c (diff) |
drm/panel: simple: add support for NLT NL192108AC18-02D
This adds support for the NLT Technologies NL192108AC18-02D
15.6" LVDS FullHD TFT LCD panel, which can be supported
by the simple panel driver.
Timings are taken from the preliminary datasheet, as a final
one is not yet available.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608180758.31020-3-l.stach@pengutronix.de
-rw-r--r-- | Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 29 |
2 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt b/Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt new file mode 100644 index 000000000000..1a639fd8778d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/nlt,nl192108ac18-02d.txt | |||
@@ -0,0 +1,8 @@ | |||
1 | NLT Technologies, Ltd. 15.6" FHD (1920x1080) LVDS TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "nlt,nl192108ac18-02d" | ||
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 585b37f9171a..99758e38525e 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -1398,6 +1398,32 @@ static const struct panel_desc netron_dy_e231732 = { | |||
1398 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, | 1398 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
1399 | }; | 1399 | }; |
1400 | 1400 | ||
1401 | static const struct display_timing nlt_nl192108ac18_02d_timing = { | ||
1402 | .pixelclock = { 130000000, 148350000, 163000000 }, | ||
1403 | .hactive = { 1920, 1920, 1920 }, | ||
1404 | .hfront_porch = { 80, 100, 100 }, | ||
1405 | .hback_porch = { 100, 120, 120 }, | ||
1406 | .hsync_len = { 50, 60, 60 }, | ||
1407 | .vactive = { 1080, 1080, 1080 }, | ||
1408 | .vfront_porch = { 12, 30, 30 }, | ||
1409 | .vback_porch = { 4, 10, 10 }, | ||
1410 | .vsync_len = { 4, 5, 5 }, | ||
1411 | }; | ||
1412 | |||
1413 | static const struct panel_desc nlt_nl192108ac18_02d = { | ||
1414 | .timings = &nlt_nl192108ac18_02d_timing, | ||
1415 | .num_timings = 1, | ||
1416 | .bpc = 8, | ||
1417 | .size = { | ||
1418 | .width = 344, | ||
1419 | .height = 194, | ||
1420 | }, | ||
1421 | .delay = { | ||
1422 | .unprepare = 500, | ||
1423 | }, | ||
1424 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, | ||
1425 | }; | ||
1426 | |||
1401 | static const struct drm_display_mode nvd_9128_mode = { | 1427 | static const struct drm_display_mode nvd_9128_mode = { |
1402 | .clock = 29500, | 1428 | .clock = 29500, |
1403 | .hdisplay = 800, | 1429 | .hdisplay = 800, |
@@ -2008,6 +2034,9 @@ static const struct of_device_id platform_of_match[] = { | |||
2008 | .compatible = "netron-dy,e231732", | 2034 | .compatible = "netron-dy,e231732", |
2009 | .data = &netron_dy_e231732, | 2035 | .data = &netron_dy_e231732, |
2010 | }, { | 2036 | }, { |
2037 | .compatible = "nlt,nl192108ac18-02d", | ||
2038 | .data = &nlt_nl192108ac18_02d, | ||
2039 | }, { | ||
2011 | .compatible = "nvd,9128", | 2040 | .compatible = "nvd,9128", |
2012 | .data = &nvd_9128, | 2041 | .data = &nvd_9128, |
2013 | }, { | 2042 | }, { |