brintos

brintos / linux-shallow public Read only

0
0
Text · 1.8 KiB · dd79399 Raw
90 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---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 Controllers8 9maintainers:10  - Javier Martinez Canillas <javierm@redhat.com>11 12properties:13  compatible:14    enum:15      - solomon,ssd132216      - solomon,ssd132517      - solomon,ssd132718 19required:20  - compatible21  - reg22 23allOf:24  - $ref: solomon,ssd-common.yaml#25 26  - if:27      properties:28        compatible:29          contains:30            const: solomon,ssd132231    then:32      properties:33        solomon,width:34          default: 48035        solomon,height:36          default: 12837 38  - if:39      properties:40        compatible:41          contains:42            const: solomon,ssd132543    then:44      properties:45        solomon,width:46          default: 12847        solomon,height:48          default: 8049 50  - if:51      properties:52        compatible:53          contains:54            const: solomon,ssd132755    then:56      properties:57        solomon,width:58          default: 12859        solomon,height:60          default: 12861 62unevaluatedProperties: false63 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