Skip to content

Commit 1053653

Browse files
sredtor
authored andcommitted
dt-bindings: touchscreen: Convert EETI EXC3000 touchscreen to json-schema
Convert the EETI EXC3000 binding to DT schema format using json-schema Signed-off-by: Sebastian Reichel <[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 ea38f06 commit 1053653

File tree

2 files changed

+53
-26
lines changed

2 files changed

+53
-26
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/touchscreen/eeti,exc3000.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: EETI EXC3000 series touchscreen controller
8+
9+
maintainers:
10+
- Dmitry Torokhov <[email protected]>
11+
12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
15+
properties:
16+
compatible:
17+
const: eeti,exc3000
18+
reg:
19+
const: 0x2a
20+
interrupts:
21+
maxItems: 1
22+
touchscreen-size-x: true
23+
touchscreen-size-y: true
24+
touchscreen-inverted-x: true
25+
touchscreen-inverted-y: true
26+
touchscreen-swapped-x-y: true
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts
32+
- touchscreen-size-x
33+
- touchscreen-size-y
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
#include "dt-bindings/interrupt-controller/irq.h"
40+
i2c {
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
touchscreen@2a {
44+
compatible = "eeti,exc3000";
45+
reg = <0x2a>;
46+
interrupt-parent = <&gpio1>;
47+
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
48+
touchscreen-size-x = <4096>;
49+
touchscreen-size-y = <4096>;
50+
touchscreen-inverted-x;
51+
touchscreen-swapped-x-y;
52+
};
53+
};

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

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

0 commit comments

Comments
 (0)