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