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