0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/sitronix,st7735r.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Sitronix ST7735R Display Panels Device Tree Bindings
0008
0009 maintainers:
0010 - David Lechner <david@lechnology.com>
0011
0012 description:
0013 This binding is for display panels using a Sitronix ST7715R or ST7735R
0014 controller in SPI mode.
0015
0016 allOf:
0017 - $ref: panel/panel-common.yaml#
0018 - $ref: /schemas/spi/spi-peripheral-props.yaml#
0019
0020 properties:
0021 compatible:
0022 oneOf:
0023 - description:
0024 Adafruit 1.8" 160x128 Color TFT LCD (Product ID 358 or 618)
0025 items:
0026 - enum:
0027 - jianda,jd-t18003-t01
0028 - const: sitronix,st7735r
0029 - description:
0030 Okaya 1.44" 128x128 Color TFT LCD (E.g. Renesas YRSK-LCD-PMOD)
0031 items:
0032 - enum:
0033 - okaya,rh128128t
0034 - const: sitronix,st7715r
0035
0036 dc-gpios:
0037 maxItems: 1
0038 description: Display data/command selection (D/CX)
0039
0040 backlight: true
0041 reg: true
0042 spi-max-frequency: true
0043 reset-gpios: true
0044 rotation: true
0045
0046 required:
0047 - compatible
0048 - reg
0049 - dc-gpios
0050
0051 additionalProperties: false
0052
0053 examples:
0054 - |
0055 #include <dt-bindings/gpio/gpio.h>
0056
0057 backlight: backlight {
0058 compatible = "gpio-backlight";
0059 gpios = <&gpio 44 GPIO_ACTIVE_HIGH>;
0060 };
0061
0062 spi {
0063 #address-cells = <1>;
0064 #size-cells = <0>;
0065
0066 display@0{
0067 compatible = "jianda,jd-t18003-t01", "sitronix,st7735r";
0068 reg = <0>;
0069 spi-max-frequency = <32000000>;
0070 dc-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
0071 reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
0072 rotation = <270>;
0073 backlight = <&backlight>;
0074 };
0075 };
0076
0077 ...