diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-01-15 15:45:48 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-01-19 20:07:40 +0300 |
commit | d1d511d516f72e0da2fea1e32a2dbf7b4f19b81f (patch) | |
tree | 56b35ddc2c033f11f9014c1b1561c0448d3309c3 /drivers/gpu/drm/tiny/st7735r.c | |
parent | 98823f379447ad7691d427151e6f9c8761416052 (diff) | |
download | linux-d1d511d516f72e0da2fea1e32a2dbf7b4f19b81f.tar.xz |
drm: tiny: st7735r: Add support for Okaya RH128128T
Add support for the Okaya RH128128T display to the st7735r driver on
DT-enabled systems.
The RH128128T is a 128x128 1.44" TFT display driven by a Sitronix
ST7715R TFT Controller/Driver. The latter is very similar to the
ST7735R, and can be handled by the existing st7735r driver.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115124548.3951-6-geert+renesas@glider.be
Diffstat (limited to 'drivers/gpu/drm/tiny/st7735r.c')
-rw-r--r-- | drivers/gpu/drm/tiny/st7735r.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tiny/st7735r.c b/drivers/gpu/drm/tiny/st7735r.c index a838f237c8d8..32574f1b6071 100644 --- a/drivers/gpu/drm/tiny/st7735r.c +++ b/drivers/gpu/drm/tiny/st7735r.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ /* - * DRM driver for Sitronix ST7735R panels + * DRM driver for display panels connected to a Sitronix ST7715R or ST7735R + * display controller in SPI mode. * * Copyright 2017 David Lechner <david@lechnology.com> * Copyright (C) 2019 Glider bvba @@ -144,6 +145,11 @@ static const struct st7735r_cfg jd_t18003_t01_cfg = { .write_only = true, }; +static const struct st7735r_cfg rh128128t_cfg = { + .mode = { DRM_SIMPLE_MODE(128, 128, 25, 26) }, + .left_offset = 2, + .top_offset = 3, + .rgb = true, }; DEFINE_DRM_GEM_CMA_FOPS(st7735r_fops); @@ -163,6 +169,7 @@ static struct drm_driver st7735r_driver = { static const struct of_device_id st7735r_of_match[] = { { .compatible = "jianda,jd-t18003-t01", .data = &jd_t18003_t01_cfg }, + { .compatible = "okaya,rh128128t", .data = &rh128128t_cfg }, { }, }; MODULE_DEVICE_TABLE(of, st7735r_of_match); |