SSDFB(4) FreeBSD Kernel Interfaces Manual SSDFB(4)
NAME
ssdfb - OLED/PLED framebuffer device driver
SYNOPSIS
options FONT_SPLEEN5x8
ssdfb* at iic? addr ?
ssdfb* at iic? addr 0x3c
ssdfb* at iic? addr 0x3d flags 0x102
ssdfb* at spi? slave ? flags 0x105
wsdisplay* at ssdfb?
DESCRIPTION
The ssdfb driver provides wsdisplay(4) support for OLED/PLED framebuffer
modules based on one of the following controller chips:
o Solomon Systech Ltd SSD1306
o Sino Wealth Electronic Ltd SH1106
o Solomon Systech Ltd SSD1322
o Solomon Systech Ltd SSD1353
The following products (controller + panel assemblies) are supported:
o 0x01: Generic SSD1306 modules using default settings
o 0x02: Generic SH1106 modules using default settings
o 0x03: Adafruit Industries, LLC product 931 (128x32)
o 0x04: Adafruit Industries, LLC product 938 (128x64)
o 0x05: Generic SSD1322 modules using default settings
o 0x06: Generic SSD1353 modules using default settings
o 0x07: Display Elektronik GmbH DEP 160128A(1)-RGB
The flags value can contain one or more of the following, bitwise OR'ed:
o 0x0??: Exactly one product id from the above list
o 0x100: indicates that the display is mounted upside down and
flips the screen
o 0x200: enable inverse video
o 0x400: forcibly attach as console
On most displays, the contrast setting can be adjusted with the
wsconsctl(8) program.
EXAMPLES
To attach an SSD1322 display using the 4-wire spi(4) interface on an
Allwinner A20 ARM single board computer, the following Device Tree
overlay can be used:
&spi0 {
ssdfb@0 {
compatible = "solomon,ssd1322";
reg = <0x00>;
dc-gpio = <0x10 0x07 0x02 0x00>;
status = "okay";
};
};
To attach an SSD1306 display using the iic(4) interface on the same
board, use:
&i2c2 {
ssdfb@3c {
compatible = "solomon,ssd1306fb-i2c";
reg = <0x3c>;
status = "okay";
};
};
SEE ALSO
iic(4), wsdisplay(4)
HISTORY
An ssdfb driver first appeared in OpenBSD 6.4 and later in NetBSD 9.0.
AUTHORS
The ssdfb driver was written by Tobias Nygren <
[email protected]>.
It was inspired by (and shares its name with) the OpenBSD driver written
by Patrick Wildt <
[email protected]> but does not share any code.
FreeBSD 14.1-RELEASE-p8 August 5, 2021 FreeBSD 14.1-RELEASE-p8