Skip to content

Commit fd1bf70

Browse files
adalessandrodtor
authored andcommitted
dt-bindings: input: Convert MELFAS MIP4 Touchscreen to DT schema
Convert the existing text-based DT bindings for MELFAS MIP4 Touchscreen controller to a DT schema. Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patch.msgid.link/20251001183809.83472-1-ariel.dalessandro@collabora.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 6678b3e commit fd1bf70

2 files changed

Lines changed: 56 additions & 20 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/touchscreen/melfas,mip4_ts.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MELFAS MIP4 Touchscreen
8+
9+
maintainers:
10+
- Ariel D'Alessandro <ariel.dalessandro@collabora.com>
11+
12+
properties:
13+
compatible:
14+
const: melfas,mip4_ts
15+
16+
reg:
17+
description: I2C address of the chip (0x48 or 0x34)
18+
maxItems: 1
19+
20+
interrupts:
21+
maxItems: 1
22+
23+
ce-gpios:
24+
description:
25+
GPIO connected to the CE (chip enable) pin of the chip (active high)
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts
32+
33+
additionalProperties: false
34+
35+
examples:
36+
- |
37+
#include <dt-bindings/gpio/gpio.h>
38+
#include <dt-bindings/interrupt-controller/irq.h>
39+
40+
i2c {
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
44+
touchscreen@34 {
45+
compatible = "melfas,mip4_ts";
46+
reg = <0x34>;
47+
48+
interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
49+
ce-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
50+
51+
pinctrl-0 = <&touchscreen_default>;
52+
pinctrl-names = "default";
53+
};
54+
};
55+
56+
...

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

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

0 commit comments

Comments
 (0)