0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/ilitek,ili9341.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Ilitek-9341 Display Panel
0008
0009 maintainers:
0010 - Dillon Min <dillon.minfei@gmail.com>
0011
0012 description: |
0013 Ilitek ILI9341 TFT panel driver with SPI control bus
0014 This is a driver for 320x240 TFT panels, accepting a rgb input
0015 streams with 16 bits or 18 bits.
0016
0017 allOf:
0018 - $ref: panel-common.yaml#
0019
0020 properties:
0021 compatible:
0022 items:
0023 - enum:
0024 - adafruit,yx240qv29
0025 # ili9341 240*320 Color on stm32f429-disco board
0026 - st,sf-tc240t-9370-t
0027 - canaan,kd233-tft
0028 - const: ilitek,ili9341
0029
0030 reg: true
0031
0032 dc-gpios:
0033 maxItems: 1
0034 description: Display data/command selection (D/CX) of this DBI panel
0035
0036 spi-3wire: true
0037
0038 spi-max-frequency:
0039 const: 10000000
0040
0041 port: true
0042
0043 vci-supply:
0044 description: Analog voltage supply (2.5 .. 3.3V)
0045
0046 vddi-supply:
0047 description: Voltage supply for interface logic (1.65 .. 3.3 V)
0048
0049 vddi-led-supply:
0050 description: Voltage supply for the LED driver (1.65 .. 3.3 V)
0051
0052 unevaluatedProperties: false
0053
0054 required:
0055 - compatible
0056 - reg
0057 - dc-gpios
0058
0059 if:
0060 properties:
0061 compatible:
0062 contains:
0063 enum:
0064 - st,sf-tc240t-9370-t
0065 then:
0066 required:
0067 - port
0068
0069 examples:
0070 - |+
0071 #include <dt-bindings/gpio/gpio.h>
0072 spi {
0073 #address-cells = <1>;
0074 #size-cells = <0>;
0075 panel: display@0 {
0076 compatible = "st,sf-tc240t-9370-t",
0077 "ilitek,ili9341";
0078 reg = <0>;
0079 spi-3wire;
0080 spi-max-frequency = <10000000>;
0081 dc-gpios = <&gpiod 13 0>;
0082 port {
0083 panel_in: endpoint {
0084 remote-endpoint = <&display_out>;
0085 };
0086 };
0087 };
0088 display@1{
0089 compatible = "adafruit,yx240qv29", "ilitek,ili9341";
0090 reg = <1>;
0091 spi-max-frequency = <10000000>;
0092 dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
0093 reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
0094 rotation = <270>;
0095 backlight = <&backlight>;
0096 };
0097 };
0098 ...