Skip to content

Commit 9746f5f

Browse files
alistair23sravnborg
authored andcommitted
drm/panel: Add support for E Ink VB3300-KCA
Add support for the 10.3" E Ink panel described at: https://www.eink.com/product.html?type=productdetail&id=7 Signed-off-by: Alistair Francis <[email protected]> Acked-by: Rob Herring <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 853bc39 commit 9746f5f

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

Documentation/devicetree/bindings/display/panel/panel-simple.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ properties:
138138
# Emerging Display Technology Corp. 5.7" VGA TFT LCD panel with
139139
# capacitive touch
140140
- edt,etmv570g2dhu
141+
# E Ink VB3300-KCA
142+
- eink,vb3300-kca
141143
# Evervision Electronics Co. Ltd. VGG804821 5.0" WVGA TFT LCD Panel
142144
- evervision,vgg804821
143145
# Foxlink Group 5" WVGA TFT LCD panel

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ patternProperties:
339339
description: eGalax_eMPIA Technology Inc
340340
"^einfochips,.*":
341341
description: Einfochips
342+
"^eink,.*":
343+
description: E Ink Corporation
342344
"^elan,.*":
343345
description: Elan Microelectronic Corp.
344346
"^element14,.*":

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,33 @@ static const struct panel_desc edt_etmv570g2dhu = {
21782178
.connector_type = DRM_MODE_CONNECTOR_DPI,
21792179
};
21802180

2181+
static const struct display_timing eink_vb3300_kca_timing = {
2182+
.pixelclock = { 40000000, 40000000, 40000000 },
2183+
.hactive = { 334, 334, 334 },
2184+
.hfront_porch = { 1, 1, 1 },
2185+
.hback_porch = { 1, 1, 1 },
2186+
.hsync_len = { 1, 1, 1 },
2187+
.vactive = { 1405, 1405, 1405 },
2188+
.vfront_porch = { 1, 1, 1 },
2189+
.vback_porch = { 1, 1, 1 },
2190+
.vsync_len = { 1, 1, 1 },
2191+
.flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2192+
DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
2193+
};
2194+
2195+
static const struct panel_desc eink_vb3300_kca = {
2196+
.timings = &eink_vb3300_kca_timing,
2197+
.num_timings = 1,
2198+
.bpc = 6,
2199+
.size = {
2200+
.width = 157,
2201+
.height = 209,
2202+
},
2203+
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2204+
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2205+
.connector_type = DRM_MODE_CONNECTOR_DPI,
2206+
};
2207+
21812208
static const struct display_timing evervision_vgg804821_timing = {
21822209
.pixelclock = { 27600000, 33300000, 50000000 },
21832210
.hactive = { 800, 800, 800 },
@@ -4494,6 +4521,9 @@ static const struct of_device_id platform_of_match[] = {
44944521
}, {
44954522
.compatible = "edt,etmv570g2dhu",
44964523
.data = &edt_etmv570g2dhu,
4524+
}, {
4525+
.compatible = "eink,vb3300-kca",
4526+
.data = &eink_vb3300_kca,
44974527
}, {
44984528
.compatible = "evervision,vgg804821",
44994529
.data = &evervision_vgg804821,

0 commit comments

Comments
 (0)