xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/ilitek,ili9341.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/ilitek,ili9341.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Ilitek-9341 Display Panel
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10354d7675SEmmanuel Vadot  - Dillon Min <dillon.minfei@gmail.com>
11354d7675SEmmanuel Vadot
12354d7675SEmmanuel Vadotdescription: |
13354d7675SEmmanuel Vadot  Ilitek ILI9341 TFT panel driver with SPI control bus
14354d7675SEmmanuel Vadot  This is a driver for 320x240 TFT panels, accepting a rgb input
15354d7675SEmmanuel Vadot  streams with 16 bits or 18 bits.
16354d7675SEmmanuel Vadot
17354d7675SEmmanuel VadotallOf:
18354d7675SEmmanuel Vadot  - $ref: panel-common.yaml#
19*8bab661aSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
20354d7675SEmmanuel Vadot
21354d7675SEmmanuel Vadotproperties:
22354d7675SEmmanuel Vadot  compatible:
23354d7675SEmmanuel Vadot    items:
24354d7675SEmmanuel Vadot      - enum:
25b97ee269SEmmanuel Vadot          - adafruit,yx240qv29
26354d7675SEmmanuel Vadot          # ili9341 240*320 Color on stm32f429-disco board
27354d7675SEmmanuel Vadot          - st,sf-tc240t-9370-t
28b97ee269SEmmanuel Vadot          - canaan,kd233-tft
29354d7675SEmmanuel Vadot      - const: ilitek,ili9341
30354d7675SEmmanuel Vadot
31354d7675SEmmanuel Vadot  reg: true
32354d7675SEmmanuel Vadot
33354d7675SEmmanuel Vadot  dc-gpios:
34354d7675SEmmanuel Vadot    maxItems: 1
35354d7675SEmmanuel Vadot    description: Display data/command selection (D/CX) of this DBI panel
36354d7675SEmmanuel Vadot
37354d7675SEmmanuel Vadot  spi-3wire: true
38354d7675SEmmanuel Vadot
39354d7675SEmmanuel Vadot  spi-max-frequency:
40354d7675SEmmanuel Vadot    const: 10000000
41354d7675SEmmanuel Vadot
42354d7675SEmmanuel Vadot  port: true
43354d7675SEmmanuel Vadot
44354d7675SEmmanuel Vadot  vci-supply:
45354d7675SEmmanuel Vadot    description: Analog voltage supply (2.5 .. 3.3V)
46354d7675SEmmanuel Vadot
47354d7675SEmmanuel Vadot  vddi-supply:
48354d7675SEmmanuel Vadot    description: Voltage supply for interface logic (1.65 .. 3.3 V)
49354d7675SEmmanuel Vadot
50354d7675SEmmanuel Vadot  vddi-led-supply:
51354d7675SEmmanuel Vadot    description: Voltage supply for the LED driver (1.65 .. 3.3 V)
52354d7675SEmmanuel Vadot
53b97ee269SEmmanuel VadotunevaluatedProperties: false
54354d7675SEmmanuel Vadot
55354d7675SEmmanuel Vadotrequired:
56354d7675SEmmanuel Vadot  - compatible
57354d7675SEmmanuel Vadot  - reg
58354d7675SEmmanuel Vadot  - dc-gpios
59b97ee269SEmmanuel Vadot
60b97ee269SEmmanuel Vadotif:
61b97ee269SEmmanuel Vadot  properties:
62b97ee269SEmmanuel Vadot    compatible:
63b97ee269SEmmanuel Vadot      contains:
64b97ee269SEmmanuel Vadot        enum:
65b97ee269SEmmanuel Vadot          - st,sf-tc240t-9370-t
66b97ee269SEmmanuel Vadotthen:
67b97ee269SEmmanuel Vadot  required:
68354d7675SEmmanuel Vadot    - port
69354d7675SEmmanuel Vadot
70354d7675SEmmanuel Vadotexamples:
71354d7675SEmmanuel Vadot  - |+
72b97ee269SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
73354d7675SEmmanuel Vadot    spi {
74354d7675SEmmanuel Vadot        #address-cells = <1>;
75354d7675SEmmanuel Vadot        #size-cells = <0>;
76354d7675SEmmanuel Vadot        panel: display@0 {
77354d7675SEmmanuel Vadot            compatible = "st,sf-tc240t-9370-t",
78354d7675SEmmanuel Vadot                         "ilitek,ili9341";
79354d7675SEmmanuel Vadot            reg = <0>;
80354d7675SEmmanuel Vadot            spi-3wire;
81354d7675SEmmanuel Vadot            spi-max-frequency = <10000000>;
82354d7675SEmmanuel Vadot            dc-gpios = <&gpiod 13 0>;
83354d7675SEmmanuel Vadot            port {
84354d7675SEmmanuel Vadot                panel_in: endpoint {
85354d7675SEmmanuel Vadot                    remote-endpoint = <&display_out>;
86354d7675SEmmanuel Vadot                };
87354d7675SEmmanuel Vadot            };
88354d7675SEmmanuel Vadot        };
89b97ee269SEmmanuel Vadot        display@1{
90b97ee269SEmmanuel Vadot            compatible = "adafruit,yx240qv29", "ilitek,ili9341";
91b97ee269SEmmanuel Vadot            reg = <1>;
92b97ee269SEmmanuel Vadot            spi-max-frequency = <10000000>;
93b97ee269SEmmanuel Vadot            dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
94b97ee269SEmmanuel Vadot            reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
95b97ee269SEmmanuel Vadot            rotation = <270>;
96b97ee269SEmmanuel Vadot            backlight = <&backlight>;
97b97ee269SEmmanuel Vadot        };
98354d7675SEmmanuel Vadot    };
99354d7675SEmmanuel Vadot...
100