drm/panel: simple: Add Sharp LS020B1DD01D panel support
The Sharp LS020B1DD01D is a simple 2.0" 240x160 16-bit TFT panel. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Tested-by: Artur Rojek <contact@artur-rojek.eu> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190603153120.23947-3-paul@crapouillou.net
This commit is contained in:
committed by
Sam Ravnborg
parent
f9a763d274
commit
f1bd37f300
@@ -2533,6 +2533,33 @@ static const struct panel_desc sharp_lq150x1lg11 = {
|
|||||||
.bus_format = MEDIA_BUS_FMT_RGB565_1X16,
|
.bus_format = MEDIA_BUS_FMT_RGB565_1X16,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct display_timing sharp_ls020b1dd01d_timing = {
|
||||||
|
.pixelclock = { 2000000, 4200000, 5000000 },
|
||||||
|
.hactive = { 240, 240, 240 },
|
||||||
|
.hfront_porch = { 66, 66, 66 },
|
||||||
|
.hback_porch = { 1, 1, 1 },
|
||||||
|
.hsync_len = { 1, 1, 1 },
|
||||||
|
.vactive = { 160, 160, 160 },
|
||||||
|
.vfront_porch = { 52, 52, 52 },
|
||||||
|
.vback_porch = { 6, 6, 6 },
|
||||||
|
.vsync_len = { 10, 10, 10 },
|
||||||
|
.flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_LOW,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct panel_desc sharp_ls020b1dd01d = {
|
||||||
|
.timings = &sharp_ls020b1dd01d_timing,
|
||||||
|
.num_timings = 1,
|
||||||
|
.bpc = 6,
|
||||||
|
.size = {
|
||||||
|
.width = 42,
|
||||||
|
.height = 28,
|
||||||
|
},
|
||||||
|
.bus_format = MEDIA_BUS_FMT_RGB565_1X16,
|
||||||
|
.bus_flags = DRM_BUS_FLAG_DE_HIGH
|
||||||
|
| DRM_BUS_FLAG_PIXDATA_NEGEDGE
|
||||||
|
| DRM_BUS_FLAG_SHARP_SIGNALS,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
|
static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
|
||||||
.clock = 33300,
|
.clock = 33300,
|
||||||
.hdisplay = 800,
|
.hdisplay = 800,
|
||||||
@@ -3105,6 +3132,9 @@ static const struct of_device_id platform_of_match[] = {
|
|||||||
}, {
|
}, {
|
||||||
.compatible = "sharp,lq150x1lg11",
|
.compatible = "sharp,lq150x1lg11",
|
||||||
.data = &sharp_lq150x1lg11,
|
.data = &sharp_lq150x1lg11,
|
||||||
|
}, {
|
||||||
|
.compatible = "sharp,ls020b1dd01d",
|
||||||
|
.data = &sharp_ls020b1dd01d,
|
||||||
}, {
|
}, {
|
||||||
.compatible = "shelly,sca07010-bfn-lnn",
|
.compatible = "shelly,sca07010-bfn-lnn",
|
||||||
.data = &shelly_sca07010_bfn_lnn,
|
.data = &shelly_sca07010_bfn_lnn,
|
||||||
|
|||||||
Reference in New Issue
Block a user