diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2019-07-23 16:48:38 +0200 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2019-07-31 10:13:21 +0200 |
commit | c472b2bb018166d6a76513ac02439802fa18fe65 (patch) | |
tree | 035b075f00785f99b7be2c2dd08639416e670496 /drivers | |
parent | 1866baea7c5cb0766ea7cf4592ca5ebeb501e0d0 (diff) |
Panel: simple: Add Toradex 7" Capacitive Touch Display
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 39a61ffe4f23..9370fcd10b74 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1913,6 +1913,29 @@ static const struct panel_desc toradex_captouch_101_lvds = { .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, }; +static const struct display_timing toradex_captouch_7_rgb_timing = { + .pixelclock = { 33300000, 33300000, 46800000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 16, 210, 354 }, + .hback_porch = { 46, 46, 46 }, + .hsync_len = { 1, 20, 40 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 7, 22, 147 }, + .vback_porch = { 23, 23, 23 }, + .vsync_len = { 1, 10, 20 }, +}; + +static const struct panel_desc toradex_captouch_7_rgb = { + .timings = &toradex_captouch_7_rgb_timing, + .num_timings = 1, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, +}; + static const struct drm_display_mode tpk_f07a_0102_mode = { .clock = 33260, .hdisplay = 800, @@ -2204,6 +2227,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "toradex,captouch-101-lvds", .data = &toradex_captouch_101_lvds, }, { + .compatible = "toradex,captouch-7-rgb", + .data = &toradex_captouch_7_rgb, + }, { .compatible = "tpk,f07a-0102", .data = &tpk_f07a_0102, }, { |