1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/ilitek,ili9486.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Ilitek ILI9486 display panels
8
9maintainers:
10  - Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
11
12description:
13  This binding is for display panels using an Ilitek ILI9486 controller in SPI
14  mode.
15
16allOf:
17  - $ref: panel/panel-common.yaml#
18
19properties:
20  compatible:
21    items:
22      - enum:
23          # Waveshare 3.5" 320x480 Color TFT LCD
24          - waveshare,rpi-lcd-35
25          # Ozzmaker 3.5" 320x480 Color TFT LCD
26          - ozzmaker,piscreen
27      - const: ilitek,ili9486
28
29  spi-max-frequency:
30    maximum: 32000000
31
32  dc-gpios:
33    maxItems: 1
34    description: Display data/command selection (D/CX)
35
36  backlight: true
37  reg: true
38  reset-gpios: true
39  rotation: true
40
41required:
42  - compatible
43  - reg
44  - dc-gpios
45  - reset-gpios
46
47additionalProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/gpio/gpio.h>
52
53    backlight: backlight {
54            compatible = "gpio-backlight";
55            gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
56    };
57    spi {
58            #address-cells = <1>;
59            #size-cells = <0>;
60
61
62            display@0{
63                    compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486";
64                    reg = <0>;
65                    spi-max-frequency = <32000000>;
66                    dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
67                    reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
68                    rotation = <180>;
69                    backlight = <&backlight>;
70            };
71    };
72
73...
74