GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / display / panel / ilitek,ili9163.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/display/panel/ilitek,ili9163.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Ilitek ILI9163 display panels device tree bindings
8
9 maintainers:
10   - Daniel Mack <daniel@zonque.org>
11
12 description:
13   This binding is for display panels using an Ilitek ILI9163 controller in SPI
14   mode.
15
16 allOf:
17   - $ref: panel-common.yaml#
18
19 properties:
20   compatible:
21     items:
22       - enum:
23           - newhaven,1.8-128160EF
24       - const: ilitek,ili9163
25
26   spi-max-frequency:
27     maximum: 32000000
28
29   dc-gpios:
30     maxItems: 1
31     description: Display data/command selection (D/CX)
32
33   backlight: true
34   reg: true
35   reset-gpios: true
36   rotation: true
37
38 required:
39   - compatible
40   - reg
41   - dc-gpios
42   - reset-gpios
43
44 additionalProperties: false
45
46 examples:
47   - |
48     #include <dt-bindings/gpio/gpio.h>
49
50     backlight: backlight {
51             compatible = "gpio-backlight";
52             gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
53     };
54     spi {
55             #address-cells = <1>;
56             #size-cells = <0>;
57
58             display@0 {
59                     compatible = "newhaven,1.8-128160EF", "ilitek,ili9163";
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 ...