Skip to content

Commit ad7ced1

Browse files
akemnadedtor
authored andcommitted
dt-bindings: touchscreen: convert neonode,zforce to json-schema
Convert Neonode infrared touchscreen controller binding to DT schema. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231223221213.774868-2-andreas@kemnade.info Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent aefebd1 commit ad7ced1

2 files changed

Lines changed: 67 additions & 34 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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/neonode,zforce.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Neonode infrared touchscreen controller
8+
9+
maintainers:
10+
- Heiko Stuebner <heiko@sntech.de>
11+
12+
properties:
13+
compatible:
14+
const: neonode,zforce
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
reset-gpios:
23+
maxItems: 1
24+
25+
irq-gpios:
26+
maxItems: 1
27+
28+
x-size:
29+
$ref: /schemas/types.yaml#/definitions/uint32
30+
31+
y-size:
32+
$ref: /schemas/types.yaml#/definitions/uint32
33+
34+
vdd-supply: true
35+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
- reset-gpios
41+
- x-size
42+
- y-size
43+
44+
unevaluatedProperties: false
45+
46+
examples:
47+
- |
48+
#include <dt-bindings/interrupt-controller/irq.h>
49+
50+
i2c {
51+
#address-cells = <1>;
52+
#size-cells = <0>;
53+
54+
touchscreen@50 {
55+
compatible = "neonode,zforce";
56+
reg = <0x50>;
57+
interrupts = <2 0>;
58+
vdd-supply = <&reg_zforce_vdd>;
59+
60+
reset-gpios = <&gpio5 9 0>; /* RST */
61+
irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
62+
63+
x-size = <800>;
64+
y-size = <600>;
65+
};
66+
};
67+
...

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

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

0 commit comments

Comments
 (0)