xref: /linux/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml (revision dba0bfded433d412506eb674d6af77cdca82e259)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/touchscreen/st,stmfts.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ST-Microelectronics FingerTip touchscreen controller
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12description:
13  The ST-Microelectronics FingerTip device provides a basic touchscreen
14  functionality. Along with it the user can enable the touchkey which can work
15  as a basic HOME and BACK key for phones.
16
17allOf:
18  - $ref: touchscreen.yaml#
19
20properties:
21  compatible:
22    const: st,stmfts
23
24  reg:
25    maxItems: 1
26
27  avdd-supply:
28    description: Analogic power supply
29
30  interrupts:
31    maxItems: 1
32
33  ledvdd-supply:
34    description: Power supply to the touch key leds
35
36  touch-key-connected:
37    type: boolean
38    description: The touchkey feature is connected
39
40  vdd-supply:
41    description: Power supply
42
43  reset-gpios:
44    description: Reset GPIO (active-low)
45    maxItems: 1
46
47required:
48  - compatible
49  - reg
50  - avdd-supply
51  - interrupts
52  - vdd-supply
53
54unevaluatedProperties: false
55
56examples:
57  - |
58    #include <dt-bindings/interrupt-controller/irq.h>
59
60    i2c {
61        #address-cells = <1>;
62        #size-cells = <0>;
63
64        touchscreen@49 {
65            compatible = "st,stmfts";
66            reg = <0x49>;
67            interrupt-parent = <&gpa1>;
68            interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
69            touchscreen-size-x = <1599>;
70            touchscreen-size-y = <2559>;
71            touch-key-connected;
72            avdd-supply = <&ldo30_reg>;
73            vdd-supply = <&ldo31_reg>;
74            ledvdd-supply = <&ldo33_reg>;
75        };
76    };
77