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
7title: Ilitek ILI9163 display panels
8
9maintainers:
10  - Daniel Mack <daniel@zonque.org>
11
12description:
13  This binding is for display panels using an Ilitek ILI9163 controller in SPI
14  mode.
15
16allOf:
17  - $ref: panel-common.yaml#
18  - $ref: /schemas/spi/spi-peripheral-props.yaml#
19
20properties:
21  compatible:
22    items:
23      - enum:
24          - newhaven,1.8-128160EF
25      - const: ilitek,ili9163
26
27  spi-max-frequency:
28    maximum: 32000000
29
30  dc-gpios:
31    maxItems: 1
32    description: Display data/command selection (D/CX)
33
34  backlight: true
35  reg: true
36  reset-gpios: true
37  rotation: true
38
39required:
40  - compatible
41  - reg
42  - dc-gpios
43  - reset-gpios
44
45unevaluatedProperties: false
46
47examples:
48  - |
49    #include <dt-bindings/gpio/gpio.h>
50
51    backlight: backlight {
52            compatible = "gpio-backlight";
53            gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
54    };
55    spi {
56            #address-cells = <1>;
57            #size-cells = <0>;
58
59            display@0 {
60                    compatible = "newhaven,1.8-128160EF", "ilitek,ili9163";
61                    reg = <0>;
62                    spi-max-frequency = <32000000>;
63                    dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
64                    reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
65                    rotation = <180>;
66                    backlight = <&backlight>;
67            };
68    };
69
70...
71