drm/panel: Add support for Chunghwa CLAA070WP03XG panel
authorRandy Li <ayaka@soulik.info>
Mon, 19 Sep 2016 19:02:51 +0000 (03:02 +0800)
committerThierry Reding <treding@nvidia.com>
Tue, 6 Dec 2016 15:43:55 +0000 (16:43 +0100)
The Chunghwa CLAA070WP03XG is a 7" 1280x800 panel, which can be
supported by the simple panel driver.

Signed-off-by: Randy Li <ayaka@soulik.info>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/display/panel/chunghwa,claa070wp03xg.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/chunghwa,claa070wp03xg.txt b/Documentation/devicetree/bindings/display/panel/chunghwa,claa070wp03xg.txt
new file mode 100644 (file)
index 0000000..dd22685
--- /dev/null
@@ -0,0 +1,7 @@
+Chunghwa Picture Tubes Ltd. 7" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "chunghwa,claa070wp03xg"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index 659c75941b451d24063d996230ab1d9838267356..261b0083ba4098f0fda0d10c999e82a4466b2ab4 100644 (file)
@@ -610,6 +610,30 @@ static const struct panel_desc avic_tm070ddh03 = {
        },
 };
 
+static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
+       .clock = 66770,
+       .hdisplay = 800,
+       .hsync_start = 800 + 49,
+       .hsync_end = 800 + 49 + 33,
+       .htotal = 800 + 49 + 33 + 17,
+       .vdisplay = 1280,
+       .vsync_start = 1280 + 1,
+       .vsync_end = 1280 + 1 + 7,
+       .vtotal = 1280 + 1 + 7 + 15,
+       .vrefresh = 60,
+       .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc chunghwa_claa070wp03xg = {
+       .modes = &chunghwa_claa070wp03xg_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 94,
+               .height = 150,
+       },
+};
+
 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
        .clock = 72070,
        .hdisplay = 1366,
@@ -1654,6 +1678,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "avic,tm070ddh03",
                .data = &avic_tm070ddh03,
+       }, {
+               .compatible = "chunghwa,claa070wp03xg",
+               .data = &chunghwa_claa070wp03xg,
        }, {
                .compatible = "chunghwa,claa101wa01a",
                .data = &chunghwa_claa101wa01a