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