Add the BOE DV215FHM-R01 21.5" FHD (1920x1080) dual-channel

LVDS panel.

Signed-off-by: Vishnu Saini <[email protected]>
---
 drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c 
b/drivers/gpu/drm/panel/panel-simple.c
index 5c169fdf265c..d95f842c8980 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1563,6 +1563,31 @@ static const struct panel_desc boe_bp101wx1_100 = {
        .connector_type = DRM_MODE_CONNECTOR_LVDS,
 };
 
+static const struct display_timing boe_dv215fhm_r01_timing = {
+       .pixelclock = { 148500000, 148500000, 148500000 },
+       .hactive = { 1920, 1920, 1920 },
+       .hfront_porch = { 88, 88, 88 },
+       .hback_porch = { 148, 148, 148 },
+       .hsync_len = { 44, 44, 44 },
+       .vactive = { 1080, 1080, 1080 },
+       .vfront_porch = { 4, 4, 4 },
+       .vback_porch = { 36, 36, 36 },
+       .vsync_len = { 5, 5, 5 },
+       .flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc boe_dv215fhm_r01 = {
+       .timings = &boe_dv215fhm_r01_timing,
+       .num_timings = 1,
+       .bpc = 8,
+       .size = {
+               .width = 476,
+               .height = 268,
+       },
+       .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+       .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct display_timing boe_ev121wxm_n10_1850_timing = {
        .pixelclock = { 69922000, 71000000, 72293000 },
        .hactive = { 1280, 1280, 1280 },
@@ -5726,6 +5751,9 @@ static const struct of_device_id platform_of_match[] = {
        }, {
                .compatible = "boe,bp101wx1-100",
                .data = &boe_bp101wx1_100,
+       }, {
+               .compatible = "boe,dv215fhm-r01",
+               .data = &boe_dv215fhm_r01,
        }, {
                .compatible = "boe,ev121wxm-n10-1850",
                .data = &boe_ev121wxm_n10_1850,

-- 
2.34.1

Reply via email to