dt-bindings: display: convert olimex,lcd-olinuxino to DT Schema
[platform/kernel/linux-starfive.git] / Documentation / devicetree / bindings / display / panel / olimex,lcd-olinuxino.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/display/panel/olimex,lcd-olinuxino.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Binding for Olimex Ltd. LCD-OLinuXino bridge panel.
8
9 maintainers:
10   - Stefan Mavrodiev <stefan@olimex.com>
11
12 description: |
13   This device can be used as bridge between a host controller and LCD panels.
14   Currently supported LCDs are:
15     - LCD-OLinuXino-4.3TS
16     - LCD-OLinuXino-5
17     - LCD-OLinuXino-7
18     - LCD-OLinuXino-10
19
20   The panel itself contains:
21     - AT24C16C EEPROM holding panel identification and timing requirements
22     - AR1021 resistive touch screen controller (optional)
23     - FT5x6 capacitive touch screnn controller (optional)
24     - GT911/GT928 capacitive touch screen controller (optional)
25
26   The above chips share same I2C bus. The EEPROM is factory preprogrammed with
27   device information (id, serial, etc.) and timing requirements.
28
29   Touchscreen bingings can be found in these files:
30     - input/touchscreen/goodix.yaml
31     - input/touchscreen/edt-ft5x06.txt
32     - input/touchscreen/ar1021.txt
33
34 allOf:
35   - $ref: panel-common.yaml#
36
37 properties:
38   compatible:
39     const: olimex,lcd-olinuxino
40
41   backlight: true
42   enable-gpios: true
43   power-supply: true
44   reg: true
45
46 required:
47   - compatible
48   - reg
49   - power-supply
50
51 additionalProperties: false
52
53 examples:
54   - |
55     #include <dt-bindings/gpio/gpio.h>
56
57     i2c {
58         #address-cells = <1>;
59         #size-cells = <0>;
60
61         panel@50 {
62             compatible = "olimex,lcd-olinuxino";
63             reg = <0x50>;
64             power-supply = <&reg_vcc5v0>;
65             enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>;
66             backlight = <&backlight>;
67         };
68     };
69
70 ...