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

drm/panel: add panel CDTech S043WQ26H-CT7 to panel-simple

This patch adds support for CDTech S043WQ26H-CT7 480x272 4.3" panel to
DRM simple panel driver.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180730231117.5631-5-giulio.benetti@micronovasrl.com

authored by

Giulio Benetti and committed by
Thierry Reding
e58edce6 1a4d3f24

+28
+28
drivers/gpu/drm/panel/panel-simple.c
··· 836 836 }, 837 837 }; 838 838 839 + static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { 840 + .clock = 9000, 841 + .hdisplay = 480, 842 + .hsync_start = 480 + 5, 843 + .hsync_end = 480 + 5 + 5, 844 + .htotal = 480 + 5 + 5 + 40, 845 + .vdisplay = 272, 846 + .vsync_start = 272 + 8, 847 + .vsync_end = 272 + 8 + 8, 848 + .vtotal = 272 + 8 + 8 + 8, 849 + .vrefresh = 60, 850 + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, 851 + }; 852 + 853 + static const struct panel_desc cdtech_s043wq26h_ct7 = { 854 + .modes = &cdtech_s043wq26h_ct7_mode, 855 + .num_modes = 1, 856 + .bpc = 8, 857 + .size = { 858 + .width = 95, 859 + .height = 54, 860 + }, 861 + .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, 862 + }; 863 + 839 864 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { 840 865 .clock = 35000, 841 866 .hdisplay = 800, ··· 2424 2399 }, { 2425 2400 .compatible = "boe,nv101wxmn51", 2426 2401 .data = &boe_nv101wxmn51, 2402 + }, { 2403 + .compatible = "cdtech,s043wq26h-ct7", 2404 + .data = &cdtech_s043wq26h_ct7, 2427 2405 }, { 2428 2406 .compatible = "cdtech,s070wv95-ct16", 2429 2407 .data = &cdtech_s070wv95_ct16,