drm/panel: simple: Add AUO G101EVN010 panel support
authorAlex Gonzalez <alex.gonzalez@digi.com>
Thu, 25 Oct 2018 15:09:30 +0000 (17:09 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 16:04:48 +0000 (17:04 +0100)
The change adds support for the AU Optronics G101EVN010 10.1" TFT LCD
panel.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
Reviewed-by: Rob Herring <robh@kernel.org>
[treding@nvidia.com: sort new entry alphabetically]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1540480173-12009-2-git-send-email-alex.gonzalez@digi.com
Documentation/devicetree/bindings/display/panel/auo,g101evn010 [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/auo,g101evn010 b/Documentation/devicetree/bindings/display/panel/auo,g101evn010
new file mode 100644 (file)
index 0000000..bc6a0c8
--- /dev/null
@@ -0,0 +1,12 @@
+AU Optronics Corporation 10.1" (1280x800) color TFT LCD panel
+
+Required properties:
+- compatible: should be "auo,g101evn010"
+- power-supply: as specified in the base binding
+
+Optional properties:
+- backlight: as specified in the base binding
+- enable-gpios: as specified in the base binding
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 5fbee837b0dbedbdd22cc4232e61279e1cb26e2c..9c69e739a524dd59d84f5758cc210686e4f797b4 100644 (file)
@@ -618,6 +618,30 @@ static const struct panel_desc auo_g070vvn01 = {
        },
 };
 
+static const struct drm_display_mode auo_g101evn010_mode = {
+       .clock = 68930,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 82,
+       .hsync_end = 1280 + 82 + 2,
+       .htotal = 1280 + 82 + 2 + 84,
+       .vdisplay = 800,
+       .vsync_start = 800 + 8,
+       .vsync_end = 800 + 8 + 2,
+       .vtotal = 800 + 8 + 2 + 6,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_g101evn010 = {
+       .modes = &auo_g101evn010_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 216,
+               .height = 135,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+};
+
 static const struct drm_display_mode auo_g104sn02_mode = {
        .clock = 40000,
        .hdisplay = 800,
@@ -2493,6 +2517,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "auo,g070vvn01",
                .data = &auo_g070vvn01,
+       }, {
+               .compatible = "auo,g101evn010",
+               .data = &auo_g101evn010,
        }, {
                .compatible = "auo,g104sn02",
                .data = &auo_g104sn02,