12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/input/touchscreen/mstar,msg2638.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: MStar msg2638 touchscreen controller 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Vincent Knecht <vincent.knecht@mailoo.org> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel VadotallOf: 132eb4d8dcSEmmanuel Vadot - $ref: touchscreen.yaml# 142eb4d8dcSEmmanuel Vadot 152eb4d8dcSEmmanuel Vadotproperties: 162eb4d8dcSEmmanuel Vadot compatible: 17*8bab661aSEmmanuel Vadot enum: 18*8bab661aSEmmanuel Vadot - mstar,msg2138 19*8bab661aSEmmanuel Vadot - mstar,msg2638 202eb4d8dcSEmmanuel Vadot 212eb4d8dcSEmmanuel Vadot reg: 222eb4d8dcSEmmanuel Vadot const: 0x26 232eb4d8dcSEmmanuel Vadot 242eb4d8dcSEmmanuel Vadot interrupts: 252eb4d8dcSEmmanuel Vadot maxItems: 1 262eb4d8dcSEmmanuel Vadot 272eb4d8dcSEmmanuel Vadot reset-gpios: 282eb4d8dcSEmmanuel Vadot maxItems: 1 292eb4d8dcSEmmanuel Vadot 302eb4d8dcSEmmanuel Vadot vdd-supply: 312eb4d8dcSEmmanuel Vadot description: Power supply regulator for the chip 322eb4d8dcSEmmanuel Vadot 332eb4d8dcSEmmanuel Vadot vddio-supply: 342eb4d8dcSEmmanuel Vadot description: Power supply regulator for the I2C bus 352eb4d8dcSEmmanuel Vadot 362eb4d8dcSEmmanuel Vadot touchscreen-size-x: true 372eb4d8dcSEmmanuel Vadot touchscreen-size-y: true 382eb4d8dcSEmmanuel Vadot 39*8bab661aSEmmanuel Vadot linux,keycodes: 40*8bab661aSEmmanuel Vadot minItems: 1 41*8bab661aSEmmanuel Vadot maxItems: 4 42*8bab661aSEmmanuel Vadot 432eb4d8dcSEmmanuel VadotadditionalProperties: false 442eb4d8dcSEmmanuel Vadot 452eb4d8dcSEmmanuel Vadotrequired: 462eb4d8dcSEmmanuel Vadot - compatible 472eb4d8dcSEmmanuel Vadot - reg 482eb4d8dcSEmmanuel Vadot - interrupts 492eb4d8dcSEmmanuel Vadot - reset-gpios 502eb4d8dcSEmmanuel Vadot - touchscreen-size-x 512eb4d8dcSEmmanuel Vadot - touchscreen-size-y 522eb4d8dcSEmmanuel Vadot 532eb4d8dcSEmmanuel Vadotexamples: 542eb4d8dcSEmmanuel Vadot - | 552eb4d8dcSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 562eb4d8dcSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 572eb4d8dcSEmmanuel Vadot i2c { 582eb4d8dcSEmmanuel Vadot #address-cells = <1>; 592eb4d8dcSEmmanuel Vadot #size-cells = <0>; 602eb4d8dcSEmmanuel Vadot touchscreen@26 { 612eb4d8dcSEmmanuel Vadot compatible = "mstar,msg2638"; 622eb4d8dcSEmmanuel Vadot reg = <0x26>; 632eb4d8dcSEmmanuel Vadot interrupt-parent = <&msmgpio>; 642eb4d8dcSEmmanuel Vadot interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 652eb4d8dcSEmmanuel Vadot reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>; 662eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 672eb4d8dcSEmmanuel Vadot pinctrl-0 = <&ts_int_reset_default>; 682eb4d8dcSEmmanuel Vadot vdd-supply = <&pm8916_l17>; 692eb4d8dcSEmmanuel Vadot vddio-supply = <&pm8916_l5>; 702eb4d8dcSEmmanuel Vadot touchscreen-size-x = <2048>; 712eb4d8dcSEmmanuel Vadot touchscreen-size-y = <2048>; 722eb4d8dcSEmmanuel Vadot }; 732eb4d8dcSEmmanuel Vadot }; 742eb4d8dcSEmmanuel Vadot 752eb4d8dcSEmmanuel Vadot... 76