[PATCH 2/2] drm/panel: simple: Add EDT ETML1010G0DKA panel
Dominik Haller
d.haller at phytec.de
Thu Aug 18 12:45:18 UTC 2022
Add support for the EDT ETML1010G0DKA 10.1" 1280x800 LVDS panel.
Signed-off-by: Dominik Haller <d.haller at phytec.de>
---
drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index f9e1f85daef7..9314db24ab51 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1779,6 +1779,32 @@ static const struct panel_desc edt_etml0700y5dha = {
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
+static const struct drm_display_mode edt_etml1010g0dka_mode = {
+ .clock = 70000,
+ .hdisplay = 1280,
+ .hsync_start = 1280 + 100,
+ .hsync_end = 1280 + 100 + 19,
+ .htotal = 1280 + 100 + 19 + 41,
+ .vdisplay = 800,
+ .vsync_start = 800 + 4,
+ .vsync_end = 800 + 4 + 4,
+ .vtotal = 800 + 4 + 4 + 15,
+ .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
+};
+
+static const struct panel_desc edt_etml1010g0dka = {
+ .modes = &edt_etml1010g0dka_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 216,
+ .height = 135,
+ },
+ .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 edt_etmv570g2dhu_mode = {
.clock = 25175,
.hdisplay = 640,
@@ -4057,6 +4083,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "edt,etml0700y5dha",
.data = &edt_etml0700y5dha,
+ }, {
+ .compatible = "edt,etml1010g0dka",
+ .data = &edt_etml1010g0dka,
}, {
.compatible = "edt,etmv570g2dhu",
.data = &edt_etmv570g2dhu,
--
2.25.1
More information about the dri-devel
mailing list