xref: /freebsd/sys/contrib/device-tree/Bindings/display/solomon,ssd132x.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/solomon,ssd132x.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Solomon SSD132x OLED Display Controllers
8
9maintainers:
10  - Javier Martinez Canillas <javierm@redhat.com>
11
12properties:
13  compatible:
14    enum:
15      - solomon,ssd1322
16      - solomon,ssd1325
17      - solomon,ssd1327
18
19required:
20  - compatible
21  - reg
22
23allOf:
24  - $ref: solomon,ssd-common.yaml#
25
26  - if:
27      properties:
28        compatible:
29          contains:
30            const: solomon,ssd1322
31    then:
32      properties:
33        width:
34          default: 480
35        height:
36          default: 128
37
38  - if:
39      properties:
40        compatible:
41          contains:
42            const: solomon,ssd1325
43    then:
44      properties:
45        width:
46          default: 128
47        height:
48          default: 80
49
50  - if:
51      properties:
52        compatible:
53          contains:
54            const: solomon,ssd1327
55    then:
56      properties:
57        width:
58          default: 128
59        height:
60          default: 128
61
62unevaluatedProperties: false
63
64examples:
65  - |
66    i2c {
67            #address-cells = <1>;
68            #size-cells = <0>;
69
70            oled@3c {
71                    compatible = "solomon,ssd1327";
72                    reg = <0x3c>;
73                    reset-gpios = <&gpio2 7>;
74            };
75
76    };
77  - |
78    spi {
79            #address-cells = <1>;
80            #size-cells = <0>;
81
82            oled@0 {
83                    compatible = "solomon,ssd1327";
84                    reg = <0x0>;
85                    reset-gpios = <&gpio2 7>;
86                    dc-gpios = <&gpio2 8>;
87                    spi-max-frequency = <10000000>;
88            };
89    };
90