drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support
authorLiu Ying <victor.liu@nxp.com>
Mon, 8 May 2023 08:38:26 +0000 (16:38 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 11 May 2023 08:46:07 +0000 (10:46 +0200)
Add BOE EV121WXM-N10-1850 12.1" WXGA (1280x800) TFT LCD panel support.
The panel has a LVDS display interface.

The panel's product specification can be found at:
http://www.onetech.com.tw/files/EV121WXM-N10-1850ProductSpecification_20180801.pdf

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230508083826.1016206-3-victor.liu@nxp.com
drivers/gpu/drm/panel/panel-simple.c

index 2a9c1a785a5cbe7ba7226a655f9759b343eed98a..5778824dffd47a3145b0f296f280770787f5fda9 100644 (file)
@@ -1211,6 +1211,37 @@ static const struct panel_desc bananapi_s070wv20_ct16 = {
        },
 };
 
+static const struct display_timing boe_ev121wxm_n10_1850_timing = {
+       .pixelclock = { 69922000, 71000000, 72293000 },
+       .hactive = { 1280, 1280, 1280 },
+       .hfront_porch = { 48, 48, 48 },
+       .hback_porch = { 80, 80, 80 },
+       .hsync_len = { 32, 32, 32 },
+       .vactive = { 800, 800, 800 },
+       .vfront_porch = { 3, 3, 3 },
+       .vback_porch = { 14, 14, 14 },
+       .vsync_len = { 6, 6, 6 },
+};
+
+static const struct panel_desc boe_ev121wxm_n10_1850 = {
+       .timings = &boe_ev121wxm_n10_1850_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 261,
+               .height = 163,
+       },
+       .delay = {
+               .prepare = 9,
+               .enable = 300,
+               .unprepare = 300,
+               .disable = 560,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+       .bus_flags = DRM_BUS_FLAG_DE_HIGH,
+       .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct drm_display_mode boe_hv070wsa_mode = {
        .clock = 42105,
        .hdisplay = 1024,
@@ -4016,6 +4047,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "bananapi,s070wv20-ct16",
                .data = &bananapi_s070wv20_ct16,
+       }, {
+               .compatible = "boe,ev121wxm-n10-1850",
+               .data = &boe_ev121wxm_n10_1850,
        }, {
                .compatible = "boe,hv070wsa-100",
                .data = &boe_hv070wsa