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