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