12911ce35SVincent Knecht# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22911ce35SVincent Knecht%YAML 1.2 32911ce35SVincent Knecht--- 42911ce35SVincent Knecht$id: http://devicetree.org/schemas/input/touchscreen/mstar,msg2638.yaml# 52911ce35SVincent Knecht$schema: http://devicetree.org/meta-schemas/core.yaml# 62911ce35SVincent Knecht 7*84e85359SKrzysztof Kozlowskititle: MStar msg2638 touchscreen controller 82911ce35SVincent Knecht 92911ce35SVincent Knechtmaintainers: 102911ce35SVincent Knecht - Vincent Knecht <vincent.knecht@mailoo.org> 112911ce35SVincent Knecht 122911ce35SVincent KnechtallOf: 132911ce35SVincent Knecht - $ref: touchscreen.yaml# 142911ce35SVincent Knecht 152911ce35SVincent Knechtproperties: 162911ce35SVincent Knecht compatible: 1714ce9e4cSVincent Knecht enum: 1814ce9e4cSVincent Knecht - mstar,msg2138 1914ce9e4cSVincent Knecht - mstar,msg2638 202911ce35SVincent Knecht 212911ce35SVincent Knecht reg: 222911ce35SVincent Knecht const: 0x26 232911ce35SVincent Knecht 242911ce35SVincent Knecht interrupts: 252911ce35SVincent Knecht maxItems: 1 262911ce35SVincent Knecht 272911ce35SVincent Knecht reset-gpios: 282911ce35SVincent Knecht maxItems: 1 292911ce35SVincent Knecht 302911ce35SVincent Knecht vdd-supply: 312911ce35SVincent Knecht description: Power supply regulator for the chip 322911ce35SVincent Knecht 332911ce35SVincent Knecht vddio-supply: 342911ce35SVincent Knecht description: Power supply regulator for the I2C bus 352911ce35SVincent Knecht 362911ce35SVincent Knecht touchscreen-size-x: true 372911ce35SVincent Knecht touchscreen-size-y: true 382911ce35SVincent Knecht 398f076b98SVincent Knecht linux,keycodes: 408f076b98SVincent Knecht minItems: 1 418f076b98SVincent Knecht maxItems: 4 428f076b98SVincent Knecht 432911ce35SVincent KnechtadditionalProperties: false 442911ce35SVincent Knecht 452911ce35SVincent Knechtrequired: 462911ce35SVincent Knecht - compatible 472911ce35SVincent Knecht - reg 482911ce35SVincent Knecht - interrupts 492911ce35SVincent Knecht - reset-gpios 502911ce35SVincent Knecht - touchscreen-size-x 512911ce35SVincent Knecht - touchscreen-size-y 522911ce35SVincent Knecht 532911ce35SVincent Knechtexamples: 542911ce35SVincent Knecht - | 552911ce35SVincent Knecht #include <dt-bindings/gpio/gpio.h> 562911ce35SVincent Knecht #include <dt-bindings/interrupt-controller/irq.h> 572911ce35SVincent Knecht i2c { 582911ce35SVincent Knecht #address-cells = <1>; 592911ce35SVincent Knecht #size-cells = <0>; 602911ce35SVincent Knecht touchscreen@26 { 612911ce35SVincent Knecht compatible = "mstar,msg2638"; 622911ce35SVincent Knecht reg = <0x26>; 632911ce35SVincent Knecht interrupt-parent = <&msmgpio>; 642911ce35SVincent Knecht interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 652911ce35SVincent Knecht reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>; 662911ce35SVincent Knecht pinctrl-names = "default"; 672911ce35SVincent Knecht pinctrl-0 = <&ts_int_reset_default>; 682911ce35SVincent Knecht vdd-supply = <&pm8916_l17>; 692911ce35SVincent Knecht vddio-supply = <&pm8916_l5>; 702911ce35SVincent Knecht touchscreen-size-x = <2048>; 712911ce35SVincent Knecht touchscreen-size-y = <2048>; 722911ce35SVincent Knecht }; 732911ce35SVincent Knecht }; 742911ce35SVincent Knecht 752911ce35SVincent Knecht... 76