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