xref: /linux/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml (revision da1d9caf95def6f0320819cf941c9fd1069ba9e1)
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  dc-gpios:
36    maxItems: 1
37    description: Display data/command selection (D/CX)
38
39  backlight: true
40  reg: true
41  spi-max-frequency: true
42  reset-gpios: true
43  rotation: true
44
45required:
46  - compatible
47  - reg
48  - dc-gpios
49
50additionalProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/gpio/gpio.h>
55
56    backlight: backlight {
57            compatible = "gpio-backlight";
58            gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
59    };
60
61    spi {
62            #address-cells = <1>;
63            #size-cells = <0>;
64
65            display@0{
66                    compatible = "jianda,jd-t18003-t01", "sitronix,st7735r";
67                    reg = <0>;
68                    spi-max-frequency = <32000000>;
69                    dc-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
70                    reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
71                    rotation = <270>;
72                    backlight = <&backlight>;
73            };
74    };
75
76...
77