1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/display/pan 4 $id: http://devicetree.org/schemas/display/panel/ilitek,ili9341.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Ilitek-9341 Display Panel 7 title: Ilitek-9341 Display Panel 8 8 9 maintainers: 9 maintainers: 10 - Dillon Min <dillon.minfei@gmail.com> 10 - Dillon Min <dillon.minfei@gmail.com> 11 11 12 description: | 12 description: | 13 Ilitek ILI9341 TFT panel driver with SPI con 13 Ilitek ILI9341 TFT panel driver with SPI control bus 14 This is a driver for 320x240 TFT panels, acc 14 This is a driver for 320x240 TFT panels, accepting a rgb input 15 streams with 16 bits or 18 bits. 15 streams with 16 bits or 18 bits. 16 16 17 allOf: 17 allOf: 18 - $ref: panel-common.yaml# 18 - $ref: panel-common.yaml# 19 - $ref: /schemas/spi/spi-peripheral-props.ya 19 - $ref: /schemas/spi/spi-peripheral-props.yaml# 20 20 21 properties: 21 properties: 22 compatible: 22 compatible: 23 items: 23 items: 24 - enum: 24 - enum: 25 - adafruit,yx240qv29 25 - adafruit,yx240qv29 26 # ili9341 240*320 Color on stm32f429 26 # ili9341 240*320 Color on stm32f429-disco board 27 - st,sf-tc240t-9370-t 27 - st,sf-tc240t-9370-t 28 - canaan,kd233-tft 28 - canaan,kd233-tft 29 - const: ilitek,ili9341 29 - const: ilitek,ili9341 30 30 31 reg: 31 reg: 32 maxItems: 1 32 maxItems: 1 33 33 34 dc-gpios: 34 dc-gpios: 35 maxItems: 1 35 maxItems: 1 36 description: Display data/command selectio 36 description: Display data/command selection (D/CX) of this DBI panel 37 37 38 spi-3wire: true 38 spi-3wire: true 39 39 40 spi-max-frequency: 40 spi-max-frequency: 41 const: 10000000 41 const: 10000000 42 42 43 port: true 43 port: true 44 44 45 vci-supply: 45 vci-supply: 46 description: Analog voltage supply (2.5 .. 46 description: Analog voltage supply (2.5 .. 3.3V) 47 47 48 vddi-supply: 48 vddi-supply: 49 description: Voltage supply for interface 49 description: Voltage supply for interface logic (1.65 .. 3.3 V) 50 50 51 vddi-led-supply: 51 vddi-led-supply: 52 description: Voltage supply for the LED dr 52 description: Voltage supply for the LED driver (1.65 .. 3.3 V) 53 53 54 unevaluatedProperties: false 54 unevaluatedProperties: false 55 55 56 required: 56 required: 57 - compatible 57 - compatible 58 - reg 58 - reg 59 - dc-gpios 59 - dc-gpios 60 60 61 if: 61 if: 62 properties: 62 properties: 63 compatible: 63 compatible: 64 contains: 64 contains: 65 enum: 65 enum: 66 - st,sf-tc240t-9370-t 66 - st,sf-tc240t-9370-t 67 then: 67 then: 68 required: 68 required: 69 - port 69 - port 70 70 71 examples: 71 examples: 72 - |+ 72 - |+ 73 #include <dt-bindings/gpio/gpio.h> 73 #include <dt-bindings/gpio/gpio.h> 74 spi { 74 spi { 75 #address-cells = <1>; 75 #address-cells = <1>; 76 #size-cells = <0>; 76 #size-cells = <0>; 77 panel: display@0 { 77 panel: display@0 { 78 compatible = "st,sf-tc240t-9370-t" 78 compatible = "st,sf-tc240t-9370-t", 79 "ilitek,ili9341"; 79 "ilitek,ili9341"; 80 reg = <0>; 80 reg = <0>; 81 spi-3wire; 81 spi-3wire; 82 spi-max-frequency = <10000000>; 82 spi-max-frequency = <10000000>; 83 dc-gpios = <&gpiod 13 0>; 83 dc-gpios = <&gpiod 13 0>; 84 port { 84 port { 85 panel_in: endpoint { 85 panel_in: endpoint { 86 remote-endpoint = <&displa 86 remote-endpoint = <&display_out>; 87 }; 87 }; 88 }; 88 }; 89 }; 89 }; 90 display@1{ 90 display@1{ 91 compatible = "adafruit,yx240qv29", 91 compatible = "adafruit,yx240qv29", "ilitek,ili9341"; 92 reg = <1>; 92 reg = <1>; 93 spi-max-frequency = <10000000>; 93 spi-max-frequency = <10000000>; 94 dc-gpios = <&gpio0 9 GPIO_ACTIVE_H 94 dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; 95 reset-gpios = <&gpio0 8 GPIO_ACTIV 95 reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; 96 rotation = <270>; 96 rotation = <270>; 97 backlight = <&backlight>; 97 backlight = <&backlight>; 98 }; 98 }; 99 }; 99 }; 100 ... 100 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.