1893e46a9SDaniel Mack# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2893e46a9SDaniel Mack%YAML 1.2
3893e46a9SDaniel Mack---
4893e46a9SDaniel Mack$id: http://devicetree.org/schemas/display/panel/ilitek,ili9163.yaml#
5893e46a9SDaniel Mack$schema: http://devicetree.org/meta-schemas/core.yaml#
6893e46a9SDaniel Mack
7*a612130cSKrzysztof Kozlowskititle: Ilitek ILI9163 display panels
8893e46a9SDaniel Mack
9893e46a9SDaniel Mackmaintainers:
10893e46a9SDaniel Mack  - Daniel Mack <daniel@zonque.org>
11893e46a9SDaniel Mack
12893e46a9SDaniel Mackdescription:
13893e46a9SDaniel Mack  This binding is for display panels using an Ilitek ILI9163 controller in SPI
14893e46a9SDaniel Mack  mode.
15893e46a9SDaniel Mack
16893e46a9SDaniel MackallOf:
17893e46a9SDaniel Mack  - $ref: panel-common.yaml#
185b4248bfSKrzysztof Kozlowski  - $ref: /schemas/spi/spi-peripheral-props.yaml#
19893e46a9SDaniel Mack
20893e46a9SDaniel Mackproperties:
21893e46a9SDaniel Mack  compatible:
22893e46a9SDaniel Mack    items:
23893e46a9SDaniel Mack      - enum:
24893e46a9SDaniel Mack          - newhaven,1.8-128160EF
25893e46a9SDaniel Mack      - const: ilitek,ili9163
26893e46a9SDaniel Mack
27893e46a9SDaniel Mack  spi-max-frequency:
28893e46a9SDaniel Mack    maximum: 32000000
29893e46a9SDaniel Mack
30893e46a9SDaniel Mack  dc-gpios:
31893e46a9SDaniel Mack    maxItems: 1
32893e46a9SDaniel Mack    description: Display data/command selection (D/CX)
33893e46a9SDaniel Mack
34893e46a9SDaniel Mack  backlight: true
35893e46a9SDaniel Mack  reg: true
36893e46a9SDaniel Mack  reset-gpios: true
37893e46a9SDaniel Mack  rotation: true
38893e46a9SDaniel Mack
39893e46a9SDaniel Mackrequired:
40893e46a9SDaniel Mack  - compatible
41893e46a9SDaniel Mack  - reg
42893e46a9SDaniel Mack  - dc-gpios
43893e46a9SDaniel Mack  - reset-gpios
44893e46a9SDaniel Mack
455b4248bfSKrzysztof KozlowskiunevaluatedProperties: false
46893e46a9SDaniel Mack
47893e46a9SDaniel Mackexamples:
48893e46a9SDaniel Mack  - |
49893e46a9SDaniel Mack    #include <dt-bindings/gpio/gpio.h>
50893e46a9SDaniel Mack
51893e46a9SDaniel Mack    backlight: backlight {
52893e46a9SDaniel Mack            compatible = "gpio-backlight";
53893e46a9SDaniel Mack            gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
54893e46a9SDaniel Mack    };
55893e46a9SDaniel Mack    spi {
56893e46a9SDaniel Mack            #address-cells = <1>;
57893e46a9SDaniel Mack            #size-cells = <0>;
58893e46a9SDaniel Mack
59893e46a9SDaniel Mack            display@0 {
60893e46a9SDaniel Mack                    compatible = "newhaven,1.8-128160EF", "ilitek,ili9163";
61893e46a9SDaniel Mack                    reg = <0>;
62893e46a9SDaniel Mack                    spi-max-frequency = <32000000>;
63893e46a9SDaniel Mack                    dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
64893e46a9SDaniel Mack                    reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
65893e46a9SDaniel Mack                    rotation = <180>;
66893e46a9SDaniel Mack                    backlight = <&backlight>;
67893e46a9SDaniel Mack            };
68893e46a9SDaniel Mack    };
69893e46a9SDaniel Mack
70893e46a9SDaniel Mack...
71