Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: simple: Add AVIC TM070DDH03 panel support

The Shanghai AVIC Optoelectronics TM070DDH03 is a 7" 1024x600 TFT LCD
panel connecting to a 24-bit RGB LVDS interface.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Philipp Zabel and committed by
Thierry Reding
d47df633 fc7275aa

+38
+7
Documentation/devicetree/bindings/panel/avic,tm070ddh03.txt
··· 1 + Shanghai AVIC Optoelectronics 7" 1024x600 color TFT-LCD panel 2 + 3 + Required properties: 4 + - compatible: should be "avic,tm070ddh03" 5 + 6 + This binding is compatible with the simple-panel binding, which is specified 7 + in simple-panel.txt in this directory.
+31
drivers/gpu/drm/panel/panel-simple.c
··· 448 448 }, 449 449 }; 450 450 451 + static const struct drm_display_mode avic_tm070ddh03_mode = { 452 + .clock = 51200, 453 + .hdisplay = 1024, 454 + .hsync_start = 1024 + 160, 455 + .hsync_end = 1024 + 160 + 4, 456 + .htotal = 1024 + 160 + 4 + 156, 457 + .vdisplay = 600, 458 + .vsync_start = 600 + 17, 459 + .vsync_end = 600 + 17 + 1, 460 + .vtotal = 600 + 17 + 1 + 17, 461 + .vrefresh = 60, 462 + }; 463 + 464 + static const struct panel_desc avic_tm070ddh03 = { 465 + .modes = &avic_tm070ddh03_mode, 466 + .num_modes = 1, 467 + .bpc = 8, 468 + .size = { 469 + .width = 154, 470 + .height = 90, 471 + }, 472 + .delay = { 473 + .prepare = 20, 474 + .enable = 200, 475 + .disable = 200, 476 + }, 477 + }; 478 + 451 479 static const struct drm_display_mode chunghwa_claa101wa01a_mode = { 452 480 .clock = 72070, 453 481 .hdisplay = 1366, ··· 795 767 }, { 796 768 .compatible = "auo,b133xtn01", 797 769 .data = &auo_b133xtn01, 770 + }, { 771 + .compatible = "avic,tm070ddh03", 772 + .data = &avic_tm070ddh03, 798 773 }, { 799 774 .compatible = "chunghwa,claa101wa01a", 800 775 .data = &chunghwa_claa101wa01a