This adds support for the AU Optronics G133HAN01
13.3" LVDS FullHD TFT LCD panel, which can be supported
by the simple panel driver.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 .../bindings/display/panel/auo,g133han01.txt       |  7 +++++
 drivers/gpu/drm/panel/panel-simple.c               | 32 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 
Documentation/devicetree/bindings/display/panel/auo,g133han01.txt

diff --git a/Documentation/devicetree/bindings/display/panel/auo,g133han01.txt 
b/Documentation/devicetree/bindings/display/panel/auo,g133han01.txt
new file mode 100644
index 000000000000..3afc76747824
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/auo,g133han01.txt
@@ -0,0 +1,7 @@
+AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
+
+Required properties:
+- compatible: should be "auo,g133han01"
+
+This binding is compatible with the simple-panel binding, which is specified
+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 2bc22c3abbde..9d0b1377cac6 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -555,6 +555,35 @@ static const struct panel_desc auo_b133htn01 = {
        },
 };

+static const struct display_timing auo_g133han01_timings = {
+       .pixelclock = { 134000000, 141200000, 149000000 },
+       .hactive = { 1920, 1920, 1920 },
+       .hfront_porch = { 39, 58, 77 },
+       .hback_porch = { 59, 88, 117 },
+       .hsync_len = { 28, 42, 56 },
+       .vactive = { 1080, 1080, 1080 },
+       .vfront_porch = { 3, 8, 11 },
+       .vback_porch = { 5, 14, 19 },
+       .vsync_len = { 4, 14, 19 },
+};
+
+static const struct panel_desc auo_g133han01 = {
+       .timings = &auo_g133han01_timings,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 293,
+               .height = 165,
+       },
+       .delay = {
+               .prepare = 200,
+               .enable = 50,
+               .disable = 50,
+               .unprepare = 1000,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
+};
+
 static const struct drm_display_mode avic_tm070ddh03_mode = {
        .clock = 51200,
        .hdisplay = 1024,
@@ -1579,6 +1608,9 @@ static const struct of_device_id platform_of_match[] = {
                .compatible = "auo,b133xtn01",
                .data = &auo_b133xtn01,
        }, {
+               .compatible = "auo,g133han01",
+               .data = &auo_g133han01,
+       }, {
                .compatible = "avic,tm070ddh03",
                .data = &avic_tm070ddh03,
        }, {
-- 
2.10.2

Reply via email to