Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/panel/ilitek,ili9163.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Ilitek ILI9163 display panels device tree bindings
0008 
0009 maintainers:
0010   - Daniel Mack <daniel@zonque.org>
0011 
0012 description:
0013   This binding is for display panels using an Ilitek ILI9163 controller in SPI
0014   mode.
0015 
0016 allOf:
0017   - $ref: panel-common.yaml#
0018 
0019 properties:
0020   compatible:
0021     items:
0022       - enum:
0023           - newhaven,1.8-128160EF
0024       - const: ilitek,ili9163
0025 
0026   spi-max-frequency:
0027     maximum: 32000000
0028 
0029   dc-gpios:
0030     maxItems: 1
0031     description: Display data/command selection (D/CX)
0032 
0033   backlight: true
0034   reg: true
0035   reset-gpios: true
0036   rotation: true
0037 
0038 required:
0039   - compatible
0040   - reg
0041   - dc-gpios
0042   - reset-gpios
0043 
0044 additionalProperties: false
0045 
0046 examples:
0047   - |
0048     #include <dt-bindings/gpio/gpio.h>
0049 
0050     backlight: backlight {
0051             compatible = "gpio-backlight";
0052             gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
0053     };
0054     spi {
0055             #address-cells = <1>;
0056             #size-cells = <0>;
0057 
0058             display@0 {
0059                     compatible = "newhaven,1.8-128160EF", "ilitek,ili9163";
0060                     reg = <0>;
0061                     spi-max-frequency = <32000000>;
0062                     dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
0063                     reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
0064                     rotation = <180>;
0065                     backlight = <&backlight>;
0066             };
0067     };
0068 
0069 ...