diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-04-26 17:29:08 +0200 |
---|---|---|
committer | Loic Poulain <loic.poulain@linaro.org> | 2021-04-26 17:29:08 +0200 |
commit | 7c7f90349e8dda3755d83c718e3b0436c763ee08 (patch) | |
tree | 2566783f1556e3f826cd043f70b6a7baee333df5 | |
parent | b77ee591717f3e04da370b5210965900b26fbce4 (diff) |
drm: panel: simple: Add support for AUO G150XAN02
Add support for the AUO G150XAN02, a 1024x768 15 Inch
TFT-LCD LVDS panel.
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 4e2dad314c79..63a1ed3bc1b0 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1154,6 +1154,35 @@ static const struct panel_desc auo_g133han01 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct display_timing auo_g150xan02_timings = { + .pixelclock = { 63000000, 65000000, 67000000 }, + .hactive = { 1024, 1024, 1024 }, + .hfront_porch = { 160, 160, 160 }, + .hback_porch = { 80, 80, 80 }, + .hsync_len = { 64, 80, 96 }, + .vactive = { 768, 768, 768 }, + .vfront_porch = { 18, 18, 18 }, + .vback_porch = { 10, 10, 10 }, + .vsync_len = { 8, 10, 12 }, +}; + +static const struct panel_desc auo_g150xan02 = { + .timings = &auo_g150xan02_timings, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 304, + .height = 228, + }, + .delay = { + .prepare = 60, + .disable = 250, + .unprepare = 1000, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct drm_display_mode auo_g156xtn01_mode = { .clock = 76000, .hdisplay = 1366, @@ -4143,6 +4172,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,g133han01", .data = &auo_g133han01, }, { + .compatible = "auo,g150xan02", + .data = &auo_g150xan02, + }, { .compatible = "auo,g156xtn01", .data = &auo_g156xtn01, }, { |