xref: /linux/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
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 <krzysztof.kozlowski@linaro.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
43required:
44  - compatible
45  - reg
46  - avdd-supply
47  - interrupts
48  - vdd-supply
49
50unevaluatedProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/interrupt-controller/irq.h>
55
56    i2c {
57        #address-cells = <1>;
58        #size-cells = <0>;
59
60        touchscreen@49 {
61            compatible = "st,stmfts";
62            reg = <0x49>;
63            interrupt-parent = <&gpa1>;
64            interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
65            touchscreen-size-x = <1599>;
66            touchscreen-size-y = <2559>;
67            touch-key-connected;
68            avdd-supply = <&ldo30_reg>;
69            vdd-supply = <&ldo31_reg>;
70            ledvdd-supply = <&ldo33_reg>;
71        };
72    };
73