xref: /freebsd/sys/contrib/device-tree/Bindings/display/panel/ilitek,ili9341.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
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#
198bab661aSEmmanuel 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
31*7d0873ebSEmmanuel Vadot  reg:
32*7d0873ebSEmmanuel Vadot    maxItems: 1
33354d7675SEmmanuel Vadot
34354d7675SEmmanuel Vadot  dc-gpios:
35354d7675SEmmanuel Vadot    maxItems: 1
36354d7675SEmmanuel Vadot    description: Display data/command selection (D/CX) of this DBI panel
37354d7675SEmmanuel Vadot
38354d7675SEmmanuel Vadot  spi-3wire: true
39354d7675SEmmanuel Vadot
40354d7675SEmmanuel Vadot  spi-max-frequency:
41354d7675SEmmanuel Vadot    const: 10000000
42354d7675SEmmanuel Vadot
43354d7675SEmmanuel Vadot  port: true
44354d7675SEmmanuel Vadot
45354d7675SEmmanuel Vadot  vci-supply:
46354d7675SEmmanuel Vadot    description: Analog voltage supply (2.5 .. 3.3V)
47354d7675SEmmanuel Vadot
48354d7675SEmmanuel Vadot  vddi-supply:
49354d7675SEmmanuel Vadot    description: Voltage supply for interface logic (1.65 .. 3.3 V)
50354d7675SEmmanuel Vadot
51354d7675SEmmanuel Vadot  vddi-led-supply:
52354d7675SEmmanuel Vadot    description: Voltage supply for the LED driver (1.65 .. 3.3 V)
53354d7675SEmmanuel Vadot
54b97ee269SEmmanuel VadotunevaluatedProperties: false
55354d7675SEmmanuel Vadot
56354d7675SEmmanuel Vadotrequired:
57354d7675SEmmanuel Vadot  - compatible
58354d7675SEmmanuel Vadot  - reg
59354d7675SEmmanuel Vadot  - dc-gpios
60b97ee269SEmmanuel Vadot
61b97ee269SEmmanuel Vadotif:
62b97ee269SEmmanuel Vadot  properties:
63b97ee269SEmmanuel Vadot    compatible:
64b97ee269SEmmanuel Vadot      contains:
65b97ee269SEmmanuel Vadot        enum:
66b97ee269SEmmanuel Vadot          - st,sf-tc240t-9370-t
67b97ee269SEmmanuel Vadotthen:
68b97ee269SEmmanuel Vadot  required:
69354d7675SEmmanuel Vadot    - port
70354d7675SEmmanuel Vadot
71354d7675SEmmanuel Vadotexamples:
72354d7675SEmmanuel Vadot  - |+
73b97ee269SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
74354d7675SEmmanuel Vadot    spi {
75354d7675SEmmanuel Vadot        #address-cells = <1>;
76354d7675SEmmanuel Vadot        #size-cells = <0>;
77354d7675SEmmanuel Vadot        panel: display@0 {
78354d7675SEmmanuel Vadot            compatible = "st,sf-tc240t-9370-t",
79354d7675SEmmanuel Vadot                         "ilitek,ili9341";
80354d7675SEmmanuel Vadot            reg = <0>;
81354d7675SEmmanuel Vadot            spi-3wire;
82354d7675SEmmanuel Vadot            spi-max-frequency = <10000000>;
83354d7675SEmmanuel Vadot            dc-gpios = <&gpiod 13 0>;
84354d7675SEmmanuel Vadot            port {
85354d7675SEmmanuel Vadot                panel_in: endpoint {
86354d7675SEmmanuel Vadot                    remote-endpoint = <&display_out>;
87354d7675SEmmanuel Vadot                };
88354d7675SEmmanuel Vadot            };
89354d7675SEmmanuel Vadot        };
90b97ee269SEmmanuel Vadot        display@1{
91b97ee269SEmmanuel Vadot            compatible = "adafruit,yx240qv29", "ilitek,ili9341";
92b97ee269SEmmanuel Vadot            reg = <1>;
93b97ee269SEmmanuel Vadot            spi-max-frequency = <10000000>;
94b97ee269SEmmanuel Vadot            dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
95b97ee269SEmmanuel Vadot            reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
96b97ee269SEmmanuel Vadot            rotation = <270>;
97b97ee269SEmmanuel Vadot            backlight = <&backlight>;
98b97ee269SEmmanuel Vadot        };
99354d7675SEmmanuel Vadot    };
100354d7675SEmmanuel Vadot...
101