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 LH500WX1-SD03 panel

This panel is used by the NVIDIA SHIELD 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
499ce85a 462658b8

+37
+7
Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt
··· 1 + LG Corporation 5" HD TFT LCD panel 2 + 3 + Required properties: 4 + - compatible: should be "lg,lh500wx1-sd03" 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_lh500wx1_sd03_mode = { 434 + .clock = 67000, 435 + .hdisplay = 720, 436 + .hsync_start = 720 + 12, 437 + .hsync_end = 720 + 12 + 4, 438 + .htotal = 720 + 12 + 4 + 112, 439 + .vdisplay = 1280, 440 + .vsync_start = 1280 + 8, 441 + .vsync_end = 1280 + 8 + 4, 442 + .vtotal = 1280 + 8 + 4 + 12, 443 + .vrefresh = 60, 444 + }; 445 + 446 + static const struct panel_desc_dsi lg_lh500wx1_sd03 = { 447 + .desc = { 448 + .modes = &lg_lh500wx1_sd03_mode, 449 + .num_modes = 1, 450 + .size = { 451 + .width = 62, 452 + .height = 110, 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 panasonic_vvx10f004b00_mode = { 434 461 .clock = 157200, 435 462 .hdisplay = 1920, ··· 486 459 487 460 static const struct of_device_id dsi_of_match[] = { 488 461 { 462 + .compatible = "lg,lh500wx1-sd03", 463 + .data = &lg_lh500wx1_sd03 464 + }, { 489 465 .compatible = "panasonic,vvx10f004b00", 490 466 .data = &panasonic_vvx10f004b00 491 467 }, {