Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: Solomon SSD132x OLED Display Controllers |
| 8 | |
| 9 | maintainers: |
| 10 | - Javier Martinez Canillas <javierm@redhat.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - solomon,ssd1322 |
| 16 | - solomon,ssd1325 |
| 17 | - solomon,ssd1327 |
| 18 | |
| 19 | required: |
| 20 | - compatible |
| 21 | - reg |
| 22 | |
| 23 | allOf: |
| 24 | - $ref: solomon,ssd-common.yaml# |
| 25 | |
| 26 | - if: |
| 27 | properties: |
| 28 | compatible: |
| 29 | contains: |
| 30 | const: solomon,ssd1322 |
| 31 | then: |
| 32 | properties: |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 33 | solomon,width: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 34 | default: 480 |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 35 | solomon,height: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 36 | default: 128 |
| 37 | |
| 38 | - if: |
| 39 | properties: |
| 40 | compatible: |
| 41 | contains: |
| 42 | const: solomon,ssd1325 |
| 43 | then: |
| 44 | properties: |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 45 | solomon,width: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 46 | default: 128 |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 47 | solomon,height: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 48 | default: 80 |
| 49 | |
| 50 | - if: |
| 51 | properties: |
| 52 | compatible: |
| 53 | contains: |
| 54 | const: solomon,ssd1327 |
| 55 | then: |
| 56 | properties: |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 57 | solomon,width: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 58 | default: 128 |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 59 | solomon,height: |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 60 | default: 128 |
| 61 | |
| 62 | unevaluatedProperties: false |
| 63 | |
| 64 | examples: |
| 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 | }; |