xref: /linux/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
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  - $ref: /schemas/spi/spi-peripheral-props.yaml#
20
21properties:
22  compatible:
23    items:
24      - enum:
25          - adafruit,yx240qv29
26          # ili9341 240*320 Color on stm32f429-disco board
27          - st,sf-tc240t-9370-t
28          - canaan,kd233-tft
29      - const: ilitek,ili9341
30
31  reg:
32    maxItems: 1
33
34  dc-gpios:
35    maxItems: 1
36    description: Display data/command selection (D/CX) of this DBI panel
37
38  spi-3wire: true
39
40  spi-max-frequency:
41    const: 10000000
42
43  port: true
44
45  vci-supply:
46    description: Analog voltage supply (2.5 .. 3.3V)
47
48  vddi-supply:
49    description: Voltage supply for interface logic (1.65 .. 3.3 V)
50
51  vddi-led-supply:
52    description: Voltage supply for the LED driver (1.65 .. 3.3 V)
53
54unevaluatedProperties: false
55
56required:
57  - compatible
58  - reg
59  - dc-gpios
60
61if:
62  properties:
63    compatible:
64      contains:
65        enum:
66          - st,sf-tc240t-9370-t
67then:
68  required:
69    - port
70
71examples:
72  - |+
73    #include <dt-bindings/gpio/gpio.h>
74    spi {
75        #address-cells = <1>;
76        #size-cells = <0>;
77        panel: display@0 {
78            compatible = "st,sf-tc240t-9370-t",
79                         "ilitek,ili9341";
80            reg = <0>;
81            spi-3wire;
82            spi-max-frequency = <10000000>;
83            dc-gpios = <&gpiod 13 0>;
84            port {
85                panel_in: endpoint {
86                    remote-endpoint = <&display_out>;
87                };
88            };
89        };
90        display@1{
91            compatible = "adafruit,yx240qv29", "ilitek,ili9341";
92            reg = <1>;
93            spi-max-frequency = <10000000>;
94            dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
95            reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
96            rotation = <270>;
97            backlight = <&backlight>;
98        };
99    };
100...
101