-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add overlay for the Solomon SSD1327 OLED
The ssd130x driver now supports for the Solomon SSD132x controller family. Add a Device Tree Overlay for the SSD1327 OLED panel. Signed-off-by: Javier Martinez Canillas <[email protected]>
- Loading branch information
1 parent
d4bae5c
commit d404498
Showing
3 changed files
with
79 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,70 @@ | ||
/* | ||
* Device Tree overlay for SSD1327 based SPI OLED display | ||
* | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&spidev0>; | ||
__overlay__ { | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&spidev1>; | ||
__overlay__ { | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
fragment@3 { | ||
target = <&gpio>; | ||
__overlay__ { | ||
ssd1327_pins: ssd1327_pins { | ||
brcm,pins = <25 24>; | ||
brcm,function = <1 1>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@4 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
/* needed to avoid dtc warning */ | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
ssd1327: ssd1327@0{ | ||
compatible = "solomon,ssd1327"; | ||
reg = <0>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&ssd1327_pins>; | ||
|
||
spi-max-frequency = <4500000>; | ||
reset-gpios = <&gpio 25 1>; | ||
dc-gpios = <&gpio 24 0>; | ||
}; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
speed = <&ssd1327>,"spi-max-frequency:0"; | ||
dc_pin = <&ssd1327>,"dc-gpios:4", | ||
<&ssd1327_pins>,"brcm,pins:4"; | ||
reset_pin = <&ssd1327>,"reset-gpios:4", | ||
<&ssd1327_pins>,"brcm,pins:0"; | ||
}; | ||
}; |