blob: dd7939989cf4f1c2469fc30f1e74aa26b32f3a32 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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:
Tom Rini6bb92fc2024-05-20 09:54:58 -060033 solomon,width:
Tom Rini53633a82024-02-29 12:33:36 -050034 default: 480
Tom Rini6bb92fc2024-05-20 09:54:58 -060035 solomon,height:
Tom Rini53633a82024-02-29 12:33:36 -050036 default: 128
37
38 - if:
39 properties:
40 compatible:
41 contains:
42 const: solomon,ssd1325
43 then:
44 properties:
Tom Rini6bb92fc2024-05-20 09:54:58 -060045 solomon,width:
Tom Rini53633a82024-02-29 12:33:36 -050046 default: 128
Tom Rini6bb92fc2024-05-20 09:54:58 -060047 solomon,height:
Tom Rini53633a82024-02-29 12:33:36 -050048 default: 80
49
50 - if:
51 properties:
52 compatible:
53 contains:
54 const: solomon,ssd1327
55 then:
56 properties:
Tom Rini6bb92fc2024-05-20 09:54:58 -060057 solomon,width:
Tom Rini53633a82024-02-29 12:33:36 -050058 default: 128
Tom Rini6bb92fc2024-05-20 09:54:58 -060059 solomon,height:
Tom Rini53633a82024-02-29 12:33:36 -050060 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 };