-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add ssd1306 overlay for OLED display
See: raspberrypi/firmware#1098 Signed-off-by: mincepi <mincepi@gmail.com>
- Loading branch information
1 parent
2a09628
commit 921926b
Showing
3 changed files
with
68 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Overlay for SSD1306 128x64 and 128x32 OLED displays | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2718"; | ||
|
||
fragment@0 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
status = "okay"; | ||
|
||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
ssd1306: oled@3c{ | ||
compatible = "solomon,ssd1306fb-i2c"; | ||
reg = <0x3c>; | ||
solomon,width = <128>; | ||
solomon,height = <64>; | ||
solomon,page-offset = <0>; | ||
}; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
address = <&ssd1306>,"reg:0"; | ||
width = <&ssd1306>,"solomon,width:0"; | ||
height = <&ssd1306>,"solomon,height:0"; | ||
offset = <&ssd1306>,"solomon,page-offset:0"; | ||
normal = <&ssd1306>,"solomon,segment-no-remap?"; | ||
sequential = <&ssd1306>,"solomon,com-seq?"; | ||
remapped = <&ssd1306>,"solomon,com-lrremap?"; | ||
inverted = <&ssd1306>,"solomon,com-invdir?"; | ||
}; | ||
}; |