xref: /linux/Documentation/devicetree/bindings/input/touchscreen/ti.tsc2007.yaml (revision 0074281bb6316108e0cff094bd4db78ab3eee236)
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/ti.tsc2007.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments tsc2007 touchscreen controller
8
9maintainers:
10  - Frank Li <Frank.Li@nxp.com>
11
12properties:
13  compatible:
14    const: ti,tsc2007
15
16  reg:
17    maxItems: 1
18
19  interrupts:
20    maxItems: 1
21
22  ti,x-plate-ohms:
23    description: X-plate resistance in ohms.
24
25  gpios: true
26
27  pendown-gpio: true
28
29  ti,max-rt:
30    $ref: /schemas/types.yaml#/definitions/uint32
31    description: maximum pressure.
32
33  ti,fuzzx:
34    $ref: /schemas/types.yaml#/definitions/uint32
35    description:
36      specifies the absolute input fuzz x value.
37      If set, it will permit noise in the data up to +- the value given to the fuzz
38      parameter, that is used to filter noise from the event stream.
39
40  ti,fuzzy:
41    $ref: /schemas/types.yaml#/definitions/uint32
42    description: specifies the absolute input fuzz y value.
43
44  ti,fuzzz:
45    $ref: /schemas/types.yaml#/definitions/uint32
46    description: specifies the absolute input fuzz z value.
47
48  ti,poll-period:
49    $ref: /schemas/types.yaml#/definitions/uint32
50    description:
51      how much time to wait (in milliseconds) before reading again the
52      values from the tsc2007.
53
54required:
55  - compatible
56  - reg
57  - ti,x-plate-ohms
58
59additionalProperties: false
60
61examples:
62  - |
63    i2c {
64        #address-cells = <1>;
65        #size-cells = <0>;
66
67        touch@49 {
68           compatible = "ti,tsc2007";
69           reg = <0x49>;
70           interrupt-parent = <&gpio4>;
71           interrupts = <0x0 0x8>;
72           gpios = <&gpio4 0 0>;
73           ti,x-plate-ohms = <180>;
74        };
75    };
76