xref: /freebsd/sys/contrib/device-tree/Bindings/display/sitronix,st7735r.yaml (revision 18054d0220cfc8df9c9568c437bd6fbb59d53c3c)
1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/sitronix,st7735r.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sitronix ST7735R Display Panels Device Tree Bindings
8
9maintainers:
10  - David Lechner <david@lechnology.com>
11
12description:
13  This binding is for display panels using a Sitronix ST7715R or ST7735R
14  controller in SPI mode.
15
16allOf:
17  - $ref: panel/panel-common.yaml#
18
19properties:
20  compatible:
21    oneOf:
22      - description:
23          Adafruit 1.8" 160x128 Color TFT LCD (Product ID 358 or 618)
24        items:
25          - enum:
26              - jianda,jd-t18003-t01
27          - const: sitronix,st7735r
28      - description:
29          Okaya 1.44" 128x128 Color TFT LCD (E.g. Renesas YRSK-LCD-PMOD)
30        items:
31          - enum:
32              - okaya,rh128128t
33          - const: sitronix,st7715r
34
35  spi-max-frequency:
36    maximum: 32000000
37
38  dc-gpios:
39    maxItems: 1
40    description: Display data/command selection (D/CX)
41
42  backlight: true
43  reg: true
44  reset-gpios: true
45  rotation: true
46
47required:
48  - compatible
49  - reg
50  - dc-gpios
51  - reset-gpios
52
53additionalProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/gpio/gpio.h>
58
59    backlight: backlight {
60            compatible = "gpio-backlight";
61            gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
62    };
63
64    spi {
65            #address-cells = <1>;
66            #size-cells = <0>;
67
68            display@0{
69                    compatible = "jianda,jd-t18003-t01", "sitronix,st7735r";
70                    reg = <0>;
71                    spi-max-frequency = <32000000>;
72                    dc-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
73                    reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
74                    rotation = <270>;
75            };
76    };
77
78...
79