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

drm/panel: simple: Add support for Ampire AM-480272H3TMQW-T01H

Add simple-panel support for the Ampire AM-480272H3TMQW-T01H, which is a
4.3" WQVGA panel.

Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Yannick Fertre and committed by
Thierry Reding
966fea78 2db49675

+28
+28
drivers/gpu/drm/panel/panel-simple.c
··· 386 386 panel_simple_disable(&panel->base); 387 387 } 388 388 389 + static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { 390 + .clock = 9000, 391 + .hdisplay = 480, 392 + .hsync_start = 480 + 2, 393 + .hsync_end = 480 + 2 + 41, 394 + .htotal = 480 + 2 + 41 + 2, 395 + .vdisplay = 272, 396 + .vsync_start = 272 + 2, 397 + .vsync_end = 272 + 2 + 10, 398 + .vtotal = 272 + 2 + 10 + 2, 399 + .vrefresh = 60, 400 + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, 401 + }; 402 + 403 + static const struct panel_desc ampire_am_480272h3tmqw_t01h = { 404 + .modes = &ampire_am_480272h3tmqw_t01h_mode, 405 + .num_modes = 1, 406 + .bpc = 8, 407 + .size = { 408 + .width = 105, 409 + .height = 67, 410 + }, 411 + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, 412 + }; 413 + 389 414 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { 390 415 .clock = 33333, 391 416 .hdisplay = 800, ··· 1833 1808 1834 1809 static const struct of_device_id platform_of_match[] = { 1835 1810 { 1811 + .compatible = "ampire,am-480272h3tmqw-t01h", 1812 + .data = &ampire_am_480272h3tmqw_t01h, 1813 + }, { 1836 1814 .compatible = "ampire,am800480r3tmqwa1h", 1837 1815 .data = &ampire_am800480r3tmqwa1h, 1838 1816 }, {