1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/panel/ilitek,ili9341.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Ilitek-9341 Display Panel
8
9maintainers:
10  - Dillon Min <dillon.minfei@gmail.com>
11
12description: |
13  Ilitek ILI9341 TFT panel driver with SPI control bus
14  This is a driver for 320x240 TFT panels, accepting a rgb input
15  streams with 16 bits or 18 bits.
16
17allOf:
18  - $ref: panel-common.yaml#
19
20properties:
21  compatible:
22    items:
23      - enum:
24          - adafruit,yx240qv29
25          # ili9341 240*320 Color on stm32f429-disco board
26          - st,sf-tc240t-9370-t
27          - canaan,kd233-tft
28      - const: ilitek,ili9341
29
30  reg: true
31
32  dc-gpios:
33    maxItems: 1
34    description: Display data/command selection (D/CX) of this DBI panel
35
36  spi-3wire: true
37
38  spi-max-frequency:
39    const: 10000000
40
41  port: true
42
43  vci-supply:
44    description: Analog voltage supply (2.5 .. 3.3V)
45
46  vddi-supply:
47    description: Voltage supply for interface logic (1.65 .. 3.3 V)
48
49  vddi-led-supply:
50    description: Voltage supply for the LED driver (1.65 .. 3.3 V)
51
52unevaluatedProperties: false
53
54required:
55  - compatible
56  - reg
57  - dc-gpios
58
59if:
60  properties:
61    compatible:
62      contains:
63        enum:
64          - st,sf-tc240t-9370-t
65then:
66  required:
67    - port
68
69examples:
70  - |+
71    #include <dt-bindings/gpio/gpio.h>
72    spi {
73        #address-cells = <1>;
74        #size-cells = <0>;
75        panel: display@0 {
76            compatible = "st,sf-tc240t-9370-t",
77                         "ilitek,ili9341";
78            reg = <0>;
79            spi-3wire;
80            spi-max-frequency = <10000000>;
81            dc-gpios = <&gpiod 13 0>;
82            port {
83                panel_in: endpoint {
84                    remote-endpoint = <&display_out>;
85                };
86            };
87        };
88        display@1{
89            compatible = "adafruit,yx240qv29", "ilitek,ili9341";
90            reg = <1>;
91            spi-max-frequency = <10000000>;
92            dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
93            reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
94            rotation = <270>;
95            backlight = <&backlight>;
96        };
97    };
98...
99