Skip to content

Commit 0ce25e4

Browse files
nergzd723dtor
authored andcommitted
dt-bindings: input/touchscreen: bindings for Imagis
This patch adds device-tree bindings for the Imagis IST3038C touch screen IC. Reviewed-by: Krzysztof Kozlowski <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Markuss Broks <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent e4ce4d3 commit 0ce25e4

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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/imagis,ist3038c.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Imagis IST30XXC family touchscreen controller bindings
8+
9+
maintainers:
10+
- Markuss Broks <[email protected]>
11+
12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
15+
properties:
16+
$nodename:
17+
pattern: "^touchscreen@[0-9a-f]+$"
18+
19+
compatible:
20+
enum:
21+
- imagis,ist3038c
22+
23+
reg:
24+
maxItems: 1
25+
26+
interrupts:
27+
maxItems: 1
28+
29+
vdd-supply:
30+
description: Power supply regulator for the chip
31+
32+
vddio-supply:
33+
description: Power supply regulator for the I2C bus
34+
35+
touchscreen-size-x: true
36+
touchscreen-size-y: true
37+
touchscreen-fuzz-x: true
38+
touchscreen-fuzz-y: true
39+
touchscreen-inverted-x: true
40+
touchscreen-inverted-y: true
41+
touchscreen-swapped-x-y: true
42+
43+
additionalProperties: false
44+
45+
required:
46+
- compatible
47+
- reg
48+
- interrupts
49+
- touchscreen-size-x
50+
- touchscreen-size-y
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/interrupt-controller/irq.h>
55+
i2c {
56+
#address-cells = <1>;
57+
#size-cells = <0>;
58+
touchscreen@50 {
59+
compatible = "imagis,ist3038c";
60+
reg = <0x50>;
61+
interrupt-parent = <&gpio>;
62+
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
63+
vdd-supply = <&ldo1_reg>;
64+
vddio-supply = <&ldo2_reg>;
65+
touchscreen-size-x = <720>;
66+
touchscreen-size-y = <1280>;
67+
touchscreen-fuzz-x = <10>;
68+
touchscreen-fuzz-y = <10>;
69+
touchscreen-inverted-x;
70+
touchscreen-inverted-y;
71+
};
72+
};
73+
74+
...

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ patternProperties:
545545
description: Ingenieurburo Fur Ic-Technologie (I/F/I)
546546
"^ilitek,.*":
547547
description: ILI Technology Corporation (ILITEK)
548+
"^imagis,.*":
549+
description: Imagis Technologies Co., Ltd.
548550
"^img,.*":
549551
description: Imagination Technologies Ltd.
550552
"^imi,.*":

0 commit comments

Comments
 (0)