xref: /linux/Documentation/devicetree/bindings/input/touchscreen/fsl,imx25-tcq.yaml (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
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/fsl,imx25-tcq.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale mx25 TS conversion queue module
8
9maintainers:
10  - Frank Li <Frank.Li@nxp.com>
11
12description:
13  mx25 touchscreen conversion queue module which controls the ADC unit of the
14  mx25 for attached touchscreens.
15
16properties:
17  compatible:
18    const: fsl,imx25-tcq
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  fsl,wires:
27    description: touch wires number.
28    $ref: /schemas/types.yaml#/definitions/uint32
29    enum: [4, 5]
30
31  fsl,pen-debounce-ns:
32    description:
33      Pen debounce time in nanoseconds.
34
35  fsl,pen-threshold:
36    $ref: /schemas/types.yaml#/definitions/uint32
37    description:
38      Pen-down threshold for the touchscreen. This is a value
39      between 1 and 4096. It is the ratio between the internal reference voltage
40      and the measured voltage after the plate was precharged. Resistance between
41      plates and therefore the voltage decreases with pressure so that a smaller
42      value is equivalent to a higher pressure.
43
44  fsl,settling-time-ns:
45    description:
46      Settling time in nanoseconds. The settling time is before
47      the actual touch detection to wait for an even charge distribution in the
48      plate.
49
50allOf:
51  - $ref: touchscreen.yaml
52
53required:
54  - compatible
55  - reg
56  - interrupts
57  - fsl,wires
58
59unevaluatedProperties: false
60
61examples:
62  - |
63    touchscreen@50030400 {
64        compatible = "fsl,imx25-tcq";
65        reg = <0x50030400 0x60>;
66        interrupt-parent = <&tscadc>;
67        interrupts = <0>;
68        fsl,wires = <4>;
69    };
70