Home | History | Annotate | Line # | Download | only in man4
 $NetBSD: ssdfb.4,v 1.8 2022/06/15 15:54:40 brad Exp $

Copyright (c) 2019 The NetBSD Foundation, Inc.
All rights reserved.

This code is derived from software contributed to The NetBSD Foundation
by Tobias Nygren.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

.Dd August 5, 2021 .Dt SSDFB 4 .Os .Sh NAME .Nm ssdfb .Nd OLED/PLED framebuffer device driver .Sh SYNOPSIS .Cd "options FONT_SPLEEN5x8" .Cd "ssdfb* at iic? addr ?" .Cd "ssdfb* at iic? addr 0x3c" .Cd "ssdfb* at iic? addr 0x3d flags 0x102" .Cd "ssdfb* at spi? slave ? flags 0x105" .Cd "wsdisplay* at ssdfb?" .Sh DESCRIPTION The .Nm driver provides .Xr wsdisplay 4 support for OLED/PLED framebuffer modules based on one of the following controller chips: l -bullet -offset indent t Solomon Systech Ltd SSD1306 t Sino Wealth Electronic Ltd SH1106 t Solomon Systech Ltd SSD1322 t Solomon Systech Ltd SSD1353 .El

p The following products (controller + panel assemblies) are supported: l -bullet -offset indent t .Em 0x01 : Generic SSD1306 modules using default settings t .Em 0x02 : Generic SH1106 modules using default settings t .Em 0x03 : Adafruit Industries, LLC product 931 (128x32) t .Em 0x04 : Adafruit Industries, LLC product 938 (128x64) t .Em 0x05 : Generic SSD1322 modules using default settings t .Em 0x06 : Generic SSD1353 modules using default settings t .Em 0x07 : Display Elektronik GmbH DEP 160128A(1)-RGB .El

p The flags value can contain one or more of the following, bitwise OR'ed: l -bullet -offset indent t .Em 0x0?? : Exactly one product id from the above list t .Em 0x100 : indicates that the display is mounted upside down and flips the screen t .Em 0x200 : enable inverse video t .Em 0x400 : forcibly attach as console .El

p On most displays, the contrast setting can be adjusted with the .Xr wsconsctl 8 program. .Sh EXAMPLES To attach an SSD1322 display using the 4-wire .Xr spi 4 interface on an Allwinner A20 ARM single board computer, the following Device Tree overlay can be used: d -literal -offset indent &spi0 { ssdfb@0 { compatible = "solomon,ssd1322"; reg = <0x00>; dc-gpio = <0x10 0x07 0x02 0x00>; status = "okay"; }; }; .Ed

p To attach an SSD1306 display using the .Xr iic 4 interface on the same board, use: d -literal -offset indent &i2c2 { ssdfb@3c { compatible = "solomon,ssd1306fb-i2c"; reg = <0x3c>; status = "okay"; }; }; .Ed .Sh SEE ALSO .Xr iic 4 , .Xr wsdisplay 4 .Sh HISTORY An .Nm driver first appeared in .Ox 6.4 and later in .Nx 9.0 . .Sh AUTHORS .An -nosplit The .Nm driver was written by .An Tobias Nygren Aq Mt tnn (at] NetBSD.org .

p It was inspired by (and shares its name with) the .Ox driver written by .An Patrick Wildt Aq Mt patrick (at] blueri.se but does not share any code.