Skip to content

Commit 7ee0f79

Browse files
passgatdtor
authored andcommitted
dt-bindings: touchscreen: convert zet6223 bindings to json schema
Convert Zeitec ZET6223 touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250918153630.2535208-4-dario.binacchi@amarulasolutions.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 7e52794 commit 7ee0f79

2 files changed

Lines changed: 62 additions & 30 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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/zeitec,zet6223.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Zeitec ZET6223 touchscreen controller
8+
9+
description:
10+
Zeitec ZET6223 I2C driven touchscreen controller.
11+
12+
maintainers:
13+
- Dario Binacchi <dario.binacchi@amarulasolutions.com>
14+
15+
allOf:
16+
- $ref: touchscreen.yaml#
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- zeitec,zet6223
22+
23+
reg:
24+
maxItems: 1
25+
26+
interrupts:
27+
maxItems: 1
28+
29+
vio-supply:
30+
description: 1.8V or 3.3V VIO supply.
31+
32+
vcc-supply:
33+
description: 3.3V VCC supply.
34+
35+
touchscreen-inverted-x: true
36+
touchscreen-inverted-y: true
37+
touchscreen-size-x: true
38+
touchscreen-size-y: true
39+
touchscreen-swapped-x-y: true
40+
41+
additionalProperties: false
42+
43+
required:
44+
- compatible
45+
- reg
46+
- interrupts
47+
48+
examples:
49+
- |
50+
#include <dt-bindings/gpio/gpio.h>
51+
#include <dt-bindings/interrupt-controller/irq.h>
52+
i2c {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
touchscreen@76 {
57+
compatible = "zeitec,zet6223";
58+
reg = <0x76>;
59+
interrupt-parent = <&pio>;
60+
interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
61+
};
62+
};

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

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

0 commit comments

Comments
 (0)