Skip to content

Commit c9c4570

Browse files
okiasdtor
authored andcommitted
dt-bindings: input: touchscreen: elants_i2c: convert to YAML
Convert elants_i2c.txt DT binding to YAML and put into correct directory. Reviewed-by: Dmitry Osipenko <[email protected]> Signed-off-by: David Heidelberg <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 0fdc50d commit c9c4570

File tree

2 files changed

+69
-34
lines changed

2 files changed

+69
-34
lines changed

Documentation/devicetree/bindings/input/elants_i2c.txt

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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/elan,elants_i2c.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Elantech I2C Touchscreen
8+
9+
maintainers:
10+
- David Heidelberg <[email protected]>
11+
12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- elan,ektf3624
19+
- elan,ekth3500
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
wakeup-source:
28+
type: boolean
29+
description: touchscreen can be used as a wakeup source.
30+
31+
reset-gpios:
32+
description: reset gpio the chip is connected to.
33+
34+
vcc33-supply:
35+
description: a phandle for the regulator supplying 3.3V power.
36+
37+
vccio-supply:
38+
description: a phandle for the regulator supplying IO power.
39+
40+
touchscreen-inverted-x: true
41+
touchscreen-inverted-y: true
42+
touchscreen-size-x: true
43+
touchscreen-size-y: true
44+
touchscreen-swapped-x-y: true
45+
46+
additionalProperties: false
47+
48+
required:
49+
- compatible
50+
- reg
51+
- interrupts
52+
53+
examples:
54+
- |
55+
#include <dt-bindings/interrupt-controller/irq.h>
56+
57+
i2c {
58+
#address-cells = <1>;
59+
#size-cells = <0>;
60+
61+
touchscreen@10 {
62+
compatible = "elan,ekth3500";
63+
reg = <0x10>;
64+
65+
interrupt-parent = <&gpio4>;
66+
interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
67+
wakeup-source;
68+
};
69+
};

0 commit comments

Comments
 (0)