Skip to content

Commit 5b0fe7a

Browse files
committed
drm/panel: simple: Add support for PDA 91-00156-A0 panel
PDA 91-00156-A0 5.0 is a 5.0" WVGA TFT LCD panel. This panel with backlight is found in PDA 5" LCD screen (TM5000 series or AC320005-5). Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/1547458584-29548-4-git-send-email-eugen.hristev@microchip.com
1 parent efae11d commit 5b0fe7a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,30 @@ static const struct panel_desc ortustech_com43h4m85ulc = {
18721872
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
18731873
};
18741874

1875+
static const struct drm_display_mode pda_91_00156_a0_mode = {
1876+
.clock = 33300,
1877+
.hdisplay = 800,
1878+
.hsync_start = 800 + 1,
1879+
.hsync_end = 800 + 1 + 64,
1880+
.htotal = 800 + 1 + 64 + 64,
1881+
.vdisplay = 480,
1882+
.vsync_start = 480 + 1,
1883+
.vsync_end = 480 + 1 + 23,
1884+
.vtotal = 480 + 1 + 23 + 22,
1885+
.vrefresh = 60,
1886+
};
1887+
1888+
static const struct panel_desc pda_91_00156_a0 = {
1889+
.modes = &pda_91_00156_a0_mode,
1890+
.num_modes = 1,
1891+
.size = {
1892+
.width = 152,
1893+
.height = 91,
1894+
},
1895+
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1896+
};
1897+
1898+
18751899
static const struct drm_display_mode qd43003c0_40_mode = {
18761900
.clock = 9000,
18771901
.hdisplay = 480,
@@ -2504,6 +2528,9 @@ static const struct of_device_id platform_of_match[] = {
25042528
}, {
25052529
.compatible = "ortustech,com43h4m85ulc",
25062530
.data = &ortustech_com43h4m85ulc,
2531+
}, {
2532+
.compatible = "pda,91-00156-a0",
2533+
.data = &pda_91_00156_a0,
25072534
}, {
25082535
.compatible = "qiaodian,qd43003c0-40",
25092536
.data = &qd43003c0_40,

0 commit comments

Comments
 (0)