WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / display / ilitek,ili9486.yaml
blobaecff34f505d706328562fac15555268ab4262d2
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#
7 title: Ilitek ILI9486 display panels device tree bindings
9 maintainers:
10   - Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
12 description:
13   This binding is for display panels using an Ilitek ILI9486 controller in SPI
14   mode.
16 allOf:
17   - $ref: panel/panel-common.yaml#
19 properties:
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
29   spi-max-frequency:
30     maximum: 32000000
32   dc-gpios:
33     maxItems: 1
34     description: Display data/command selection (D/CX)
36   backlight: true
37   reg: true
38   reset-gpios: true
39   rotation: true
41 required:
42   - compatible
43   - reg
44   - dc-gpios
45   - reset-gpios
47 additionalProperties: false
49 examples:
50   - |
51     #include <dt-bindings/gpio/gpio.h>
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>;
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     };
73 ...