[PATCH 0/4] drm/tiny: Add driver for Solomon SSD1307 OLED displays
Javier Martinez Canillas
javierm at redhat.com
Mon Jan 31 20:12:20 UTC 2022
This patch series adds a DRM driver for the Solomon OLED SSD1305, SSD1306,
SSD1307 and SSD1309 displays. It is a port of the ssd1307fb fbdev driver.
Using the DRM fb emulation, all the tests from Geert Uytterhoeven's fbtest
(https://git.kernel.org/pub/scm/linux/kernel/git/geert/fbtest.git) passes:
./fbtest -f /dev/fb1
Using drawops cfb32 (32 bpp packed pixels)
Available visuals:
Monochrome
Grayscale 256
Truecolor 8:8:8:0
Using visops truecolor
Running all tests
test001: PASSED
test002: PASSED
test003: PASSED
test004: PASSED
test005: PASSED
test006: PASSED
test008: PASSED
test009: PASSED
test010: PASSED
Benchmarking... 10x10 squares: 412.99 Mpixels/s
Benchmarking... 20x20 squares: 857.46 Mpixels/s
Benchmarking... 50x50 squares: 1593.51 Mpixels/s
test012: PASSED
Benchmarking... R5 circles: 237.07 Mpixels/s
Benchmarking... R10 circles: 501.24 Mpixels/s
Benchmarking... R25 circles: 947.86 Mpixels/s
test013: PASSED
Patch #1 adds an I2C connector type since currently there isn't one and
I2C drivers use DRM_MODE_CONNECTOR_Unknown or DRM_MODE_CONNECTOR_VIRTUAL.
Patch #2 adds a drm_fb_gray8_to_mono_reversed() DRM format helper since
most DRM/KMS user-space don't support bpp 1 displays, so drivers expose
a common format that's converted to greyscale and then to monochrome.
Patch #3 adds the driver. The name ssd1307 was used instead of ssd130x
(which would be more accurate) to avoid confusion for users who want to
migrate from the existing ssd1307fb fbdev driver.
Patch #4 just adds a MAINTAINERS entry for this new DRM driver.
Best regards,
Javier
Javier Martinez Canillas (4):
drm: Add I2C connector type
drm/format-helper: Add drm_fb_gray8_to_mono_reversed()
drm/tiny: Add driver for Solomon SSD1307 OLED displays
MAINTAINERS: Add entry for Solomon SSD1307 OLED displays DRM driver
MAINTAINERS | 7 +
drivers/gpu/drm/drm_connector.c | 1 +
drivers/gpu/drm/drm_format_helper.c | 35 +
drivers/gpu/drm/tiny/Kconfig | 12 +
drivers/gpu/drm/tiny/Makefile | 1 +
drivers/gpu/drm/tiny/ssd1307.c | 976 ++++++++++++++++++++++++++++
include/drm/drm_format_helper.h | 2 +
include/uapi/drm/drm_mode.h | 1 +
8 files changed, 1035 insertions(+)
create mode 100644 drivers/gpu/drm/tiny/ssd1307.c
--
2.34.1
More information about the dri-devel
mailing list