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