aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-06-08 14:07:58 -0400
committerThierry Reding <treding@nvidia.com>2017-06-14 13:37:56 -0400
commit70c0d5b783f518889e1df43dd70260790816b1dc (patch)
treefa28bd99d33b4c4173e341d9612c3cbdc8eca9bc
parent4177fa66a3248e3a5f4b512380a7fc5fce68e76d (diff)
drm/panel: simple: add support for AUO P320HVN03
This adds support for the AU Optronics Corporation 31.5" FHD (1920x1080) LVDS TFT LCD panel, which can be supported by the simple panel driver 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-4-l.stach@pengutronix.de
-rw-r--r--Documentation/devicetree/bindings/display/panel/auo,p320hvn03.txt8
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c31
2 files changed, 39 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/display/panel/auo,p320hvn03.txt b/Documentation/devicetree/bindings/display/panel/auo,p320hvn03.txt
new file mode 100644
index 000000000000..59bb6cd8aa75
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/auo,p320hvn03.txt
@@ -0,0 +1,8 @@
1AU Optronics Corporation 31.5" FHD (1920x1080) TFT LCD panel
2
3Required properties:
4- compatible: should be "auo,p320hvn03"
5- power-supply: as specified in the base binding
6
7This binding is compatible with the simple-panel binding, which is specified
8in 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 99758e38525e..474fa759e06e 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -638,6 +638,34 @@ static const struct panel_desc auo_g185han01 = {
638 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, 638 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
639}; 639};
640 640
641static const struct display_timing auo_p320hvn03_timings = {
642 .pixelclock = { 106000000, 148500000, 164000000 },
643 .hactive = { 1920, 1920, 1920 },
644 .hfront_porch = { 25, 50, 130 },
645 .hback_porch = { 25, 50, 130 },
646 .hsync_len = { 20, 40, 105 },
647 .vactive = { 1080, 1080, 1080 },
648 .vfront_porch = { 8, 17, 150 },
649 .vback_porch = { 8, 17, 150 },
650 .vsync_len = { 4, 11, 100 },
651};
652
653static const struct panel_desc auo_p320hvn03 = {
654 .timings = &auo_p320hvn03_timings,
655 .num_timings = 1,
656 .bpc = 8,
657 .size = {
658 .width = 698,
659 .height = 393,
660 },
661 .delay = {
662 .prepare = 1,
663 .enable = 450,
664 .unprepare = 500,
665 },
666 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
667};
668
641static const struct drm_display_mode auo_t215hvn01_mode = { 669static const struct drm_display_mode auo_t215hvn01_mode = {
642 .clock = 148800, 670 .clock = 148800,
643 .hdisplay = 1920, 671 .hdisplay = 1920,
@@ -1941,6 +1969,9 @@ static const struct of_device_id platform_of_match[] = {
1941 .compatible = "auo,g185han01", 1969 .compatible = "auo,g185han01",
1942 .data = &auo_g185han01, 1970 .data = &auo_g185han01,
1943 }, { 1971 }, {
1972 .compatible = "auo,p320hvn03",
1973 .data = &auo_p320hvn03,
1974 }, {
1944 .compatible = "auo,t215hvn01", 1975 .compatible = "auo,t215hvn01",
1945 .data = &auo_t215hvn01, 1976 .data = &auo_t215hvn01,
1946 }, { 1977 }, {