Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / display / sitronix,st7735r.yaml
blob0cebaaefda032135ea585b97bc0cc1a841264d15
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#
7 title: Sitronix ST7735R Display Panels Device Tree Bindings
9 maintainers:
10   - David Lechner <david@lechnology.com>
12 description:
13   This binding is for display panels using a Sitronix ST7715R or ST7735R
14   controller in SPI mode.
16 allOf:
17   - $ref: panel/panel-common.yaml#
19 properties:
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
35   spi-max-frequency:
36     maximum: 32000000
38   dc-gpios:
39     maxItems: 1
40     description: Display data/command selection (D/CX)
42   backlight: true
43   reg: true
44   reset-gpios: true
45   rotation: true
47 required:
48   - compatible
49   - reg
50   - dc-gpios
51   - reset-gpios
53 additionalProperties: false
55 examples:
56   - |
57     #include <dt-bindings/gpio/gpio.h>
59     backlight: backlight {
60             compatible = "gpio-backlight";
61             gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
62     };
64     spi {
65             #address-cells = <1>;
66             #size-cells = <0>;
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     };
78 ...