]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/panel: simple: Add Netron DY E231732
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 6 Sep 2016 14:46:17 +0000 (16:46 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 26 Jan 2017 09:55:01 +0000 (10:55 +0100)
The E231732 is a 7" panel with a resolution of 1024x600.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
[treding@nvidia.com: add missing device tree binding]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Documentation/devicetree/bindings/display/panel/netron-dy,e231732.txt [new file with mode: 0644]
drivers/gpu/drm/panel/panel-simple.c

diff --git a/Documentation/devicetree/bindings/display/panel/netron-dy,e231732.txt b/Documentation/devicetree/bindings/display/panel/netron-dy,e231732.txt
new file mode 100644 (file)
index 0000000..c6d06b5
--- /dev/null
@@ -0,0 +1,7 @@
+Netron-DY E231732 7.0" WSVGA TFT LCD panel
+
+Required properties:
+- compatible: should be "netron-dy,e231732"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
index c56fb983311cb37dd03f5066e74534715f307651..be35f3fa7e9a0365c9863974226190bcd980abad 100644 (file)
@@ -1319,6 +1319,29 @@ static const struct panel_desc nec_nl4827hc19_05b = {
        .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE,
 };
 
+static const struct drm_display_mode netron_dy_e231732_mode = {
+       .clock = 66000,
+       .hdisplay = 1024,
+       .hsync_start = 1024 + 160,
+       .hsync_end = 1024 + 160 + 70,
+       .htotal = 1024 + 160 + 70 + 90,
+       .vdisplay = 600,
+       .vsync_start = 600 + 127,
+       .vsync_end = 600 + 127 + 20,
+       .vtotal = 600 + 127 + 20 + 3,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc netron_dy_e231732 = {
+       .modes = &netron_dy_e231732_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 154,
+               .height = 87,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+};
+
 static const struct drm_display_mode nvd_9128_mode = {
        .clock = 29500,
        .hdisplay = 800,
@@ -1894,6 +1917,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "nec,nl4827hc19-05b",
                .data = &nec_nl4827hc19_05b,
+       }, {
+               .compatible = "netron-dy,e231732",
+               .data = &netron_dy_e231732,
        }, {
                .compatible = "nvd,9128",
                .data = &nvd_9128,