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

drm/panel: simple: Allow DSI panels to provide mode flags

In order to differentiate between the different video modes (burst vs.
non-burst, sync pulses vs. sync events) supported by peripherals, pass
the flags that specify this mode in the panel description to the DSI
peripheral device when probed.

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

+3
+3
drivers/gpu/drm/panel/panel-simple.c
··· 425 425 struct panel_desc_dsi { 426 426 struct panel_desc desc; 427 427 428 + unsigned long flags; 428 429 enum mipi_dsi_pixel_format format; 429 430 unsigned int lanes; 430 431 }; ··· 452 451 .height = 136, 453 452 }, 454 453 }, 454 + .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, 455 455 .format = MIPI_DSI_FMT_RGB888, 456 456 .lanes = 4, 457 457 }; ··· 483 481 if (err < 0) 484 482 return err; 485 483 484 + dsi->mode_flags = desc->flags; 486 485 dsi->format = desc->format; 487 486 dsi->lanes = desc->lanes; 488 487