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

drm/panel: add support for LG LD070WX3-SL01 panel

This panel is used by Tegra Note 7 and supported by the simple-panel
driver.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Alexandre Courbot and committed by
Thierry Reding
712ac1ba 499ce85a

+37
+7
Documentation/devicetree/bindings/panel/lg,ld070wx3-sl01.txt
··· 1 + LG Corporation 7" WXGA TFT LCD panel 2 + 3 + Required properties: 4 + - compatible: should be "lg,ld070wx3-sl01" 5 + 6 + This binding is compatible with the simple-panel binding, which is specified 7 + in simple-panel.txt in this directory.
+30
drivers/gpu/drm/panel/panel-simple.c
··· 430 430 unsigned int lanes; 431 431 }; 432 432 433 + static const struct drm_display_mode lg_ld070wx3_sl01_mode = { 434 + .clock = 71000, 435 + .hdisplay = 800, 436 + .hsync_start = 800 + 32, 437 + .hsync_end = 800 + 32 + 1, 438 + .htotal = 800 + 32 + 1 + 57, 439 + .vdisplay = 1280, 440 + .vsync_start = 1280 + 28, 441 + .vsync_end = 1280 + 28 + 1, 442 + .vtotal = 1280 + 28 + 1 + 14, 443 + .vrefresh = 60, 444 + }; 445 + 446 + static const struct panel_desc_dsi lg_ld070wx3_sl01 = { 447 + .desc = { 448 + .modes = &lg_ld070wx3_sl01_mode, 449 + .num_modes = 1, 450 + .size = { 451 + .width = 94, 452 + .height = 151, 453 + }, 454 + }, 455 + .flags = MIPI_DSI_MODE_VIDEO, 456 + .format = MIPI_DSI_FMT_RGB888, 457 + .lanes = 4, 458 + }; 459 + 433 460 static const struct drm_display_mode lg_lh500wx1_sd03_mode = { 434 461 .clock = 67000, 435 462 .hdisplay = 720, ··· 513 486 514 487 static const struct of_device_id dsi_of_match[] = { 515 488 { 489 + .compatible = "lg,ld070wx3-sl01", 490 + .data = &lg_ld070wx3_sl01 491 + }, { 516 492 .compatible = "lg,lh500wx1-sd03", 517 493 .data = &lg_lh500wx1_sd03 518 494 }, {