Skip to content

Commit 45601c6

Browse files
nxpfranklidtor
authored andcommitted
dt-bindings: input: touchscreen: convert tsc2007.txt to yaml format
Convert tsc2007.txt to yaml format. Additional changes: - add pendown-gpio property to match existed dts. Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250529193241.793678-1-Frank.Li@nxp.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 54e626d commit 45601c6

2 files changed

Lines changed: 75 additions & 39 deletions

File tree

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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+
7+
title: Texas Instruments tsc2007 touchscreen controller
8+
9+
maintainers:
10+
- Frank Li <Frank.Li@nxp.com>
11+
12+
properties:
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+
54+
required:
55+
- compatible
56+
- reg
57+
- ti,x-plate-ohms
58+
59+
additionalProperties: false
60+
61+
examples:
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+
};

Documentation/devicetree/bindings/input/touchscreen/tsc2007.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)