-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/video: add support for the Solomon SSD1307 OLED Controller
Add support for the Solomon SSD1307 OLED controller found on the Crystalfontz CFA10036 board. This controller can drive a display with a resolution up to 128x39 and can operate over I2C or SPI. The current driver has only been tested on the CFA-10036, that is using this controller over I2C to driver a 96x16 OLED screen. [akpm@linux-foundation.org: checkpatch fixes] Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: Brian Lilly <brian@crystalfontz.com> Cc: Greg KH <gregkh@linux-foundation.org> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Thomas Petazzoni <thomas@free-electrons.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
- Loading branch information
Maxime Ripard
authored and
Tomi Valkeinen
committed
Dec 10, 2012
1 parent
8f22e8e
commit a2ed00d
Showing
4 changed files
with
436 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
* Solomon SSD1307 Framebuffer Driver | ||
|
||
Required properties: | ||
- compatible: Should be "solomon,ssd1307fb-<bus>". The only supported bus for | ||
now is i2c. | ||
- reg: Should contain address of the controller on the I2C bus. Most likely | ||
0x3c or 0x3d | ||
- pwm: Should contain the pwm to use according to the OF device tree PWM | ||
specification [0] | ||
- reset-gpios: Should contain the GPIO used to reset the OLED display | ||
|
||
Optional properties: | ||
- reset-active-low: Is the reset gpio is active on physical low? | ||
|
||
[0]: Documentation/devicetree/bindings/pwm/pwm.txt | ||
|
||
Examples: | ||
ssd1307: oled@3c { | ||
compatible = "solomon,ssd1307fb-i2c"; | ||
reg = <0x3c>; | ||
pwms = <&pwm 4 3000>; | ||
reset-gpios = <&gpio2 7>; | ||
reset-active-low; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.