diff options
-rw-r--r-- | Documentation/devicetree/bindings/panel/edt,et070080dh6.txt | 10 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/panel/edt,etm0700g0dh6.txt | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 29 |
3 files changed, 49 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/edt,et070080dh6.txt b/Documentation/devicetree/bindings/panel/edt,et070080dh6.txt new file mode 100644 index 000000000000..20cb38e836e4 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/edt,et070080dh6.txt | |||
@@ -0,0 +1,10 @@ | |||
1 | Emerging Display Technology Corp. ET070080DH6 7.0" WVGA TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "edt,et070080dh6" | ||
5 | |||
6 | This panel is the same as ETM0700G0DH6 except for the touchscreen. | ||
7 | ET070080DH6 is the model with resistive touch. | ||
8 | |||
9 | This binding is compatible with the simple-panel binding, which is specified | ||
10 | in simple-panel.txt in this directory. | ||
diff --git a/Documentation/devicetree/bindings/panel/edt,etm0700g0dh6.txt b/Documentation/devicetree/bindings/panel/edt,etm0700g0dh6.txt new file mode 100644 index 000000000000..ee4b18053e40 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/edt,etm0700g0dh6.txt | |||
@@ -0,0 +1,10 @@ | |||
1 | Emerging Display Technology Corp. ETM0700G0DH6 7.0" WVGA TFT LCD panel | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "edt,etm0700g0dh6" | ||
5 | |||
6 | This panel is the same as ET070080DH6 except for the touchscreen. | ||
7 | ETM0700G0DH6 is the model with capacitive multitouch. | ||
8 | |||
9 | This binding is compatible with the simple-panel binding, which is specified | ||
10 | 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 309f29e9234a..72da48cce7e4 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
@@ -328,6 +328,29 @@ static const struct panel_desc chunghwa_claa101wb01 = { | |||
328 | }, | 328 | }, |
329 | }; | 329 | }; |
330 | 330 | ||
331 | static const struct drm_display_mode edt_etm0700g0dh6_mode = { | ||
332 | .clock = 33260, | ||
333 | .hdisplay = 800, | ||
334 | .hsync_start = 800 + 40, | ||
335 | .hsync_end = 800 + 40 + 128, | ||
336 | .htotal = 800 + 40 + 128 + 88, | ||
337 | .vdisplay = 480, | ||
338 | .vsync_start = 480 + 10, | ||
339 | .vsync_end = 480 + 10 + 2, | ||
340 | .vtotal = 480 + 10 + 2 + 33, | ||
341 | .vrefresh = 60, | ||
342 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, | ||
343 | }; | ||
344 | |||
345 | static const struct panel_desc edt_etm0700g0dh6 = { | ||
346 | .modes = &edt_etm0700g0dh6_mode, | ||
347 | .num_modes = 1, | ||
348 | .size = { | ||
349 | .width = 152, | ||
350 | .height = 91, | ||
351 | }, | ||
352 | }; | ||
353 | |||
331 | static const struct drm_display_mode lg_lp129qe_mode = { | 354 | static const struct drm_display_mode lg_lp129qe_mode = { |
332 | .clock = 285250, | 355 | .clock = 285250, |
333 | .hdisplay = 2560, | 356 | .hdisplay = 2560, |
@@ -383,6 +406,12 @@ static const struct of_device_id platform_of_match[] = { | |||
383 | .compatible = "chunghwa,claa101wb01", | 406 | .compatible = "chunghwa,claa101wb01", |
384 | .data = &chunghwa_claa101wb01 | 407 | .data = &chunghwa_claa101wb01 |
385 | }, { | 408 | }, { |
409 | .compatible = "edt,et070080dh6", | ||
410 | .data = &edt_etm0700g0dh6, | ||
411 | }, { | ||
412 | .compatible = "edt,etm0700g0dh6", | ||
413 | .data = &edt_etm0700g0dh6, | ||
414 | }, { | ||
386 | .compatible = "lg,lp129qe", | 415 | .compatible = "lg,lp129qe", |
387 | .data = &lg_lp129qe, | 416 | .data = &lg_lp129qe, |
388 | }, { | 417 | }, { |