xref: /linux/Documentation/devicetree/bindings/display/ilitek,ili9486.yaml (revision e7d759f31ca295d589f7420719c311870bb3166f)
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    spi {
54            #address-cells = <1>;
55            #size-cells = <0>;
56
57
58            display@0{
59                    compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486";
60                    reg = <0>;
61                    spi-max-frequency = <32000000>;
62                    dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
63                    reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
64                    rotation = <180>;
65                    backlight = <&backlight>;
66            };
67    };
68
69...
70