17c06272fSJoe Hung# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 27c06272fSJoe Hung%YAML 1.2 37c06272fSJoe Hung--- 47c06272fSJoe Hung$id: http://devicetree.org/schemas/input/touchscreen/ilitek_ts_i2c.yaml# 57c06272fSJoe Hung$schema: http://devicetree.org/meta-schemas/core.yaml# 67c06272fSJoe Hung 77c06272fSJoe Hungtitle: Ilitek I2C Touchscreen Controller 87c06272fSJoe Hung 97c06272fSJoe Hungmaintainers: 107c06272fSJoe Hung - Dmitry Torokhov <dmitry.torokhov@gmail.com> 117c06272fSJoe Hung 127c06272fSJoe HungallOf: 137c06272fSJoe Hung - $ref: touchscreen.yaml# 147c06272fSJoe Hung 157c06272fSJoe Hungproperties: 167c06272fSJoe Hung compatible: 177c06272fSJoe Hung enum: 18*644291ebSGeert Uytterhoeven - ilitek,ili210x 19*644291ebSGeert Uytterhoeven - ilitek,ili2117 20*644291ebSGeert Uytterhoeven - ilitek,ili2120 217c06272fSJoe Hung - ilitek,ili2130 227c06272fSJoe Hung - ilitek,ili2131 237c06272fSJoe Hung - ilitek,ili2132 247c06272fSJoe Hung - ilitek,ili2316 257c06272fSJoe Hung - ilitek,ili2322 267c06272fSJoe Hung - ilitek,ili2323 277c06272fSJoe Hung - ilitek,ili2326 28*644291ebSGeert Uytterhoeven - ilitek,ili251x 297c06272fSJoe Hung - ilitek,ili2520 307c06272fSJoe Hung - ilitek,ili2521 317c06272fSJoe Hung 327c06272fSJoe Hung reg: 33*644291ebSGeert Uytterhoeven maxItems: 1 347c06272fSJoe Hung 357c06272fSJoe Hung interrupts: 367c06272fSJoe Hung maxItems: 1 377c06272fSJoe Hung 387c06272fSJoe Hung reset-gpios: 397c06272fSJoe Hung maxItems: 1 407c06272fSJoe Hung 417c06272fSJoe Hung wakeup-source: 427c06272fSJoe Hung type: boolean 437c06272fSJoe Hung description: touchscreen can be used as a wakeup source. 447c06272fSJoe Hung 457c06272fSJoe Hung touchscreen-size-x: true 467c06272fSJoe Hung touchscreen-size-y: true 477c06272fSJoe Hung touchscreen-inverted-x: true 487c06272fSJoe Hung touchscreen-inverted-y: true 497c06272fSJoe Hung touchscreen-swapped-x-y: true 507c06272fSJoe Hung 517c06272fSJoe HungadditionalProperties: false 527c06272fSJoe Hung 537c06272fSJoe Hungrequired: 547c06272fSJoe Hung - compatible 557c06272fSJoe Hung - reg 567c06272fSJoe Hung - interrupts 577c06272fSJoe Hung 587c06272fSJoe Hungexamples: 597c06272fSJoe Hung - | 607c06272fSJoe Hung #include <dt-bindings/interrupt-controller/irq.h> 617c06272fSJoe Hung #include <dt-bindings/gpio/gpio.h> 627c06272fSJoe Hung i2c { 637c06272fSJoe Hung #address-cells = <1>; 647c06272fSJoe Hung #size-cells = <0>; 657c06272fSJoe Hung 667c06272fSJoe Hung touchscreen@41 { 677c06272fSJoe Hung compatible = "ilitek,ili2520"; 687c06272fSJoe Hung reg = <0x41>; 697c06272fSJoe Hung 707c06272fSJoe Hung interrupt-parent = <&gpio1>; 717c06272fSJoe Hung interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 727c06272fSJoe Hung reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 737c06272fSJoe Hung touchscreen-inverted-y; 747c06272fSJoe Hung wakeup-source; 757c06272fSJoe Hung }; 767c06272fSJoe Hung }; 77