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 7title: MELFAS MIP4 Touchscreen 8 9maintainers: 10 - Ariel D'Alessandro <ariel.dalessandro@collabora.com> 11 12properties: 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 28required: 29 - compatible 30 - reg 31 - interrupts 32 33additionalProperties: false 34 35examples: 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... 57