Skip to content

Commit d949624

Browse files
krzkdtor
authored andcommitted
dt-bindings: input: touchscreen: st,stmfts: convert to dtschema
Convert the ST-Microelectronics FingerTip touchscreen controller bindings to DT schema. Signed-off-by: Krzysztof Kozlowski <[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 0424931 commit d949624

File tree

2 files changed

+72
-41
lines changed

2 files changed

+72
-41
lines changed

Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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/st,stmfts.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ST-Microelectronics FingerTip touchscreen controller
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
description:
13+
The ST-Microelectronics FingerTip device provides a basic touchscreen
14+
functionality. Along with it the user can enable the touchkey which can work
15+
as a basic HOME and BACK key for phones.
16+
17+
allOf:
18+
- $ref: touchscreen.yaml#
19+
20+
properties:
21+
compatible:
22+
const: st,stmfts
23+
24+
reg:
25+
maxItems: 1
26+
27+
avdd-supply:
28+
description: Analogic power supply
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
ledvdd-supply:
34+
description: Power supply to the touch key leds
35+
36+
touch-key-connected:
37+
type: boolean
38+
description: The touchkey feature is connected
39+
40+
vdd-supply:
41+
description: Power supply
42+
43+
required:
44+
- compatible
45+
- reg
46+
- avdd-supply
47+
- interrupts
48+
- vdd-supply
49+
50+
unevaluatedProperties: false
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/interrupt-controller/irq.h>
55+
56+
i2c {
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
60+
touchscreen@49 {
61+
compatible = "st,stmfts";
62+
reg = <0x49>;
63+
interrupt-parent = <&gpa1>;
64+
interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
65+
touchscreen-size-x = <1599>;
66+
touchscreen-size-y = <2559>;
67+
touch-key-connected;
68+
avdd-supply = <&ldo30_reg>;
69+
vdd-supply = <&ldo31_reg>;
70+
ledvdd-supply = <&ldo33_reg>;
71+
};
72+
};

0 commit comments

Comments
 (0)