From: Fabio Estevam <[email protected]>
Add support for the Innolux G150XGE-L05 15.0" TFT 1024x768 LVDS panel.
Signed-off-by: Fabio Estevam <[email protected]>
---
Changes since v1:
- None.
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 3acc9f3dac16..c606e5932ca7 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2836,6 +2836,32 @@ static const struct panel_desc innolux_g121xce_l01 = {
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
+static const struct display_timing innolux_g150xge_l05_timing = {
+ .pixelclock = { 53350000, 65000000, 80000000 },
+ .hactive = { 1024, 1024, 1024 },
+ .hfront_porch = { 58, 160, 288 },
+ .hback_porch = { 58, 160, 288 },
+ .hsync_len = { 1, 1, 1 },
+ .vactive = { 768, 768, 768 },
+ .vfront_porch = { 6, 19, 216 },
+ .vback_porch = { 6, 19, 216 },
+ .vsync_len = { 1, 1, 1 },
+ .flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc innolux_g150xge_l05 = {
+ .timings = &innolux_g150xge_l05_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 304,
+ .height = 228,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+ .bus_flags = DRM_BUS_FLAG_DE_HIGH,
+ .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
static const struct display_timing innolux_g156hce_l01_timings = {
.pixelclock = { 120000000, 141860000, 150000000 },
.hactive = { 1920, 1920, 1920 },
@@ -5314,6 +5340,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "innolux,g121xce-l01",
.data = &innolux_g121xce_l01,
+ }, {
+ .compatible = "innolux,g150xge-l05",
+ .data = &innolux_g150xge_l05,
}, {
.compatible = "innolux,g156hce-l01",
.data = &innolux_g156hce_l01,