Skip to content

Commit de0cd7a

Browse files
committed
drivers: ssd16xx: Add support for the ssd1680
Add support for the SSD1680 EPD driver chip with support for up to 296x176 pixel displays. Signed-off-by: Andreas Sandberg <[email protected]>
1 parent 2d750d4 commit de0cd7a

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

drivers/display/Kconfig.ssd16xx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config SSD16XX
1010
DT_HAS_SOLOMON_SSD1608_ENABLED || \
1111
DT_HAS_SOLOMON_SSD1673_ENABLED || \
1212
DT_HAS_SOLOMON_SSD1675A_ENABLED || \
13+
DT_HAS_SOLOMON_SSD1680_ENABLED || \
1314
DT_HAS_SOLOMON_SSD1681_ENABLED
1415
select SPI
1516
help

drivers/display/ssd16xx.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,17 @@ static struct ssd16xx_quirks quirks_solomon_ssd1675a = {
990990
};
991991
#endif
992992

993+
#if DT_HAS_COMPAT_STATUS_OKAY(solomon_ssd1680)
994+
static const struct ssd16xx_quirks quirks_solomon_ssd1680 = {
995+
.max_width = 296,
996+
.max_height = 176,
997+
.pp_width_bits = 8,
998+
.pp_height_bits = 16,
999+
.ctrl2_full = SSD16XX_GEN2_CTRL2_DISPLAY,
1000+
.ctrl2_partial = SSD16XX_GEN2_CTRL2_DISPLAY | SSD16XX_GEN2_CTRL2_MODE2,
1001+
};
1002+
#endif
1003+
9931004
#if DT_HAS_COMPAT_STATUS_OKAY(solomon_ssd1681)
9941005
static struct ssd16xx_quirks quirks_solomon_ssd1681 = {
9951006
.max_width = 200,
@@ -1087,5 +1098,7 @@ DT_FOREACH_STATUS_OKAY_VARGS(solomon_ssd1673, SSD16XX_DEFINE,
10871098
&quirks_solomon_ssd1673);
10881099
DT_FOREACH_STATUS_OKAY_VARGS(solomon_ssd1675a, SSD16XX_DEFINE,
10891100
&quirks_solomon_ssd1675a);
1101+
DT_FOREACH_STATUS_OKAY_VARGS(solomon_ssd1680, SSD16XX_DEFINE,
1102+
&quirks_solomon_ssd1680);
10901103
DT_FOREACH_STATUS_OKAY_VARGS(solomon_ssd1681, SSD16XX_DEFINE,
10911104
&quirks_solomon_ssd1681);
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2022 Andreas Sandberg
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: Solomon Systech SSD1680 296x176 EPD display controller
5+
6+
compatible: "solomon,ssd1680"
7+
8+
include: solomon,ssd16xx-common.yaml

0 commit comments

Comments
 (0)