1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/display/solomon,ssd1307fb.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Solomon SSD1307 OLED Controller Framebuffer
10 - Maxime Ripard <mripard@kernel.org>
11 - Javier Martinez Canillas <javierm@redhat.com>
16 # Deprecated compatible strings
18 - solomon,ssd1305fb-i2c
19 - solomon,ssd1306fb-i2c
20 - solomon,ssd1307fb-i2c
21 - solomon,ssd1309fb-i2c
34 description: The supply for VBAT
37 $ref: /schemas/types.yaml#/definitions/uint32
40 Offset of pages (band of 8 pixels) that the screen is mapped to
42 solomon,segment-no-remap:
45 Display needs normal (non-inverted) data column to segment mapping
48 $ref: /schemas/types.yaml#/definitions/uint32
51 Offset of columns (COL/SEG) that the screen is mapped to
56 Display uses sequential COM pin configuration
61 Display uses left-right COM pin remap
66 Display uses inverted COM pin scan direction
69 $ref: /schemas/types.yaml#/definitions/uint32
72 Number of the COM pin wired to the first display line
75 $ref: /schemas/types.yaml#/definitions/uint32
78 Length of deselect period (phase 1) in clock cycles
81 $ref: /schemas/types.yaml#/definitions/uint32
84 Length of precharge period (phase 2) in clock cycles. This needs to be
85 the higher, the higher the capacitance of the OLED's pixels is.
88 $ref: /schemas/types.yaml#/definitions/uint32
92 Clock divisor. The default value is controller-dependent.
95 $ref: /schemas/types.yaml#/definitions/uint32
99 Clock frequency, higher value means higher frequency.
100 The default value is controller-dependent.
102 solomon,lookup-table:
103 $ref: /schemas/types.yaml#/definitions/uint8-array
106 8 bit value array of current drive pulse widths for BANK0, and colors A,
107 B, and C. Each value in range of 31 to 63 for pulse widths of 32 to 64.
108 Color D is always width 64.
110 solomon,area-color-enable:
113 Display uses color mode
118 Display runs in low power mode
125 - $ref: solomon,ssd-common.yaml#
131 const: sinowealth,sh1106
148 - solomon,ssd1305-i2c
166 - solomon,ssd1306-i2c
184 - solomon,ssd1307-i2c
204 - solomon,ssd1309-i2c
217 unevaluatedProperties: false
222 #address-cells = <1>;
225 ssd1307_i2c: oled@3c {
226 compatible = "solomon,ssd1307";
228 pwms = <&pwm 4 3000>;
229 reset-gpios = <&gpio2 7>;
232 ssd1306_i2c: oled@3d {
233 compatible = "solomon,ssd1306";
235 pwms = <&pwm 4 3000>;
236 reset-gpios = <&gpio2 7>;
239 solomon,com-offset = <32>;
240 solomon,lookup-table = /bits/ 8 <0x3f 0x3f 0x3f 0x3f>;
245 #address-cells = <1>;
248 ssd1307_spi: oled@0 {
249 compatible = "solomon,ssd1307";
251 pwms = <&pwm 4 3000>;
252 reset-gpios = <&gpio2 7>;
253 dc-gpios = <&gpio2 8>;
254 spi-max-frequency = <10000000>;
257 ssd1306_spi: oled@1 {
258 compatible = "solomon,ssd1306";
260 pwms = <&pwm 4 3000>;
261 reset-gpios = <&gpio2 7>;
262 dc-gpios = <&gpio2 8>;
263 spi-max-frequency = <10000000>;
266 solomon,com-offset = <32>;
267 solomon,lookup-table = /bits/ 8 <0x3f 0x3f 0x3f 0x3f>;