Solomon SSD1307 OLED Controller Framebuffer

Schema identifier ($id): "http://devicetree.org/schemas/display/solomon,ssd1307fb.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Maxime Ripard <mripard@kernel.org>", "Javier Martinez Canillas <javierm@redhat.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "solomon,ssd1305fb-i2c", "solomon,ssd1306fb-i2c", "solomon,ssd1307fb-i2c", "solomon,ssd1309fb-i2c"

Deprecated (deprecated): true

Rule 2

Allowed values (enum): "sinowealth,sh1106", "solomon,ssd1305", "solomon,ssd1306", "solomon,ssd1307", "solomon,ssd1309"

pwms — not listed as required here #

Maximum number of items (maxItems): 1

vbat-supply — not listed as required here #

The supply for VBAT

solomon,page-offset — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 1

Offset of pages (band of 8 pixels) that the screen is mapped to

solomon,segment-no-remap — not listed as required here #

Value type (type): "boolean"

Display needs normal (non-inverted) data column to segment mapping

solomon,col-offset — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

Offset of columns (COL/SEG) that the screen is mapped to

solomon,com-seq — not listed as required here #

Value type (type): "boolean"

Display uses sequential COM pin configuration

solomon,com-lrremap — not listed as required here #

Value type (type): "boolean"

Display uses left-right COM pin remap

solomon,com-invdir — not listed as required here #

Value type (type): "boolean"

Display uses inverted COM pin scan direction

solomon,com-offset — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

Number of the COM pin wired to the first display line

solomon,prechargep1 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 2

Length of deselect period (phase 1) in clock cycles

solomon,prechargep2 — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 2

Length of precharge period (phase 2) in clock cycles. This needs to be the higher, the higher the capacitance of the OLED's pixels is.

solomon,dclk-div — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 16

Clock divisor. The default value is controller-dependent.

solomon,dclk-frq — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 15

Clock frequency, higher value means higher frequency. The default value is controller-dependent.

solomon,lookup-table — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array

Maximum number of items (maxItems): 4

8 bit value array of current drive pulse widths for BANK0, and colors A, B, and C. Each value in range of 31 to 63 for pulse widths of 32 to 64. Color D is always width 64.

solomon,area-color-enable — not listed as required here #

Value type (type): "boolean"

Display uses color mode

solomon,low-power — not listed as required here #

Value type (type): "boolean"

Display runs in low power mode

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): solomon,ssd-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "sinowealth,sh1106"

When the condition matches (then) #

Properties and child nodes (properties)

solomon,width — not listed as required here

Default value (default): 132

solomon,height — not listed as required here

Default value (default): 64

solomon,dclk-div — not listed as required here

Default value (default): 1

solomon,dclk-frq — not listed as required here

Default value (default): 5

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "solomon,ssd1305-i2c", "solomon,ssd1305"

When the condition matches (then) #

Properties and child nodes (properties)

solomon,width — not listed as required here

Default value (default): 132

solomon,height — not listed as required here

Default value (default): 64

solomon,dclk-div — not listed as required here

Default value (default): 1

solomon,dclk-frq — not listed as required here

Default value (default): 7

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "solomon,ssd1306-i2c", "solomon,ssd1306"

When the condition matches (then) #

Properties and child nodes (properties)

solomon,width — not listed as required here

Default value (default): 128

solomon,height — not listed as required here

Default value (default): 64

solomon,dclk-div — not listed as required here

Default value (default): 1

solomon,dclk-frq — not listed as required here

Default value (default): 8

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "solomon,ssd1307-i2c", "solomon,ssd1307"

When the condition matches (then) #

Properties and child nodes (properties)

solomon,width — not listed as required here

Default value (default): 128

solomon,height — not listed as required here

Default value (default): 39

solomon,dclk-div — not listed as required here

Default value (default): 2

solomon,dclk-frq — not listed as required here

Default value (default): 12

Required in this object (required): "pwms"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "solomon,ssd1309-i2c", "solomon,ssd1309"

When the condition matches (then) #

Properties and child nodes (properties)

solomon,width — not listed as required here

Default value (default): 128

solomon,height — not listed as required here

Default value (default): 64

solomon,dclk-div — not listed as required here

Default value (default): 1

solomon,dclk-frq — not listed as required here

Default value (default): 10

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        ssd1307_i2c: oled@3c {
                compatible = "solomon,ssd1307";
                reg = <0x3c>;
                pwms = <&pwm 4 3000>;
                reset-gpios = <&gpio2 7>;
        };

        ssd1306_i2c: oled@3d {
                compatible = "solomon,ssd1306";
                reg = <0x3d>;
                pwms = <&pwm 4 3000>;
                reset-gpios = <&gpio2 7>;
                solomon,com-lrremap;
                solomon,com-invdir;
                solomon,com-offset = <32>;
                solomon,lookup-table = /bits/ 8 <0x3f 0x3f 0x3f 0x3f>;
        };
};
spi {
        #address-cells = <1>;
        #size-cells = <0>;

        ssd1307_spi: oled@0 {
                compatible = "solomon,ssd1307";
                reg = <0x0>;
                pwms = <&pwm 4 3000>;
                reset-gpios = <&gpio2 7>;
                dc-gpios = <&gpio2 8>;
                spi-max-frequency = <10000000>;
        };

        ssd1306_spi: oled@1 {
                compatible = "solomon,ssd1306";
                reg = <0x1>;
                pwms = <&pwm 4 3000>;
                reset-gpios = <&gpio2 7>;
                dc-gpios = <&gpio2 8>;
                spi-max-frequency = <10000000>;
                solomon,com-lrremap;
                solomon,com-invdir;
                solomon,com-offset = <32>;
                solomon,lookup-table = /bits/ 8 <0x3f 0x3f 0x3f 0x3f>;
        };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 16: Deprecated compatible strings

Edit this page