summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/ssdfb.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* change wsdisplay attribute type from long to uint32_tjsg2020-05-251-9/+9
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* Allow ssdfb(4) to be mmap(2)-able so that we can use its framebufferpatrick2019-02-221-6/+81
| | | | | from the userland. Also allow changing the brightness levels so that it can even be turned off to save power and to prevent burn in.
* No need to free the Command/Data GPIO in the I2C detach path since it ispatrick2019-01-171-2/+1
| | | | | | only allocated and used for the SPI backend. From Tobias Nygren
* Add support for the SSD1306 as seen on the NanoPi NEO2 withpatrick2019-01-171-2/+19
| | | | a NanoHat OLED.
* The official name for the ssdfb(4) reset GPIO attribute uses plural form.patrick2018-08-171-3/+3
|
* Support reading and using serveral device tree attributes for ssdfb(4),patrick2018-08-171-28/+54
| | | | | since some OLED display controller settings can change depending on the actual hardware integration.
* Hook up the rasops text emulation functions so we only write outpatrick2018-08-091-28/+125
| | | | | | | the characters that changed, and only when they change. This replaces writing out the whole framebuffer every 100ms with a partial update mechanism. Now the system stays responsive and does not slow down anymore due to the periodic update.
* Add I2C attachment code to ssdfb(4). The difference between the I2Cpatrick2018-08-021-54/+181
| | | | | and SPI bus is simply how to let the chip know it's a command or data transfer. Otherwise we push the very same bits.
* Implement a partial update mechanism. Since the SPI-connected displaypatrick2018-08-011-17/+77
| | | | | | | cannot read the framebuffer memory, we have to push the framebuffer to the display. ssdfb(4) will now be able to update only a certain region region of the framebuffer as soon as there is infrastructure to trigger it.
* Stop reversing bytes read from the framebuffer. That was added sincepatrick2018-07-311-2/+2
| | | | | | the 8x16 font showed horizontally flipped characters, but as it turns out the issue is that with 8-bit wide fonts we use optimized rasops code that apparently writes out the character with reversed bitorder.
* Add ssdfb(4), a driver for the SSD1309 controller that drives anpatrick2018-07-301-0/+441
128x64 OLED display. With the typical 8x16 font we get 4 rows with 16 characters each on it. The controller can be driven using I2C, 3-wire and 4-wire SPI. This commit includes support for the 4-wire protocol. ok deraadt@