Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ariel D'Alessandro and committed by
Dmitry Torokhov
fd1bf704 6678b3e6

+56 -20
+56
Documentation/devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml
··· 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 + ...
-20
Documentation/devicetree/bindings/input/touchscreen/melfas_mip4.txt
··· 1 - * MELFAS MIP4 Touchscreen 2 - 3 - Required properties: 4 - - compatible: must be "melfas,mip4_ts" 5 - - reg: I2C slave address of the chip (0x48 or 0x34) 6 - - interrupts: interrupt to which the chip is connected 7 - 8 - Optional properties: 9 - - ce-gpios: GPIO connected to the CE (chip enable) pin of the chip 10 - 11 - Example: 12 - i2c@00000000 { 13 - touchscreen: melfas_mip4@48 { 14 - compatible = "melfas,mip4_ts"; 15 - reg = <0x48>; 16 - interrupt-parent = <&gpio>; 17 - interrupts = <0 IRQ_TYPE_EDGE_FALLING>; 18 - ce-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 19 - }; 20 - };