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 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 52required: 53 - compatible 54 - reg 55 - dc-gpios 56 57if: 58 properties: 59 compatible: 60 contains: 61 enum: 62 - st,sf-tc240t-9370-t 63then: 64 required: 65 - port 66 67unevaluatedProperties: false 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