1*86a7d13cSChris Morgan# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*86a7d13cSChris Morgan%YAML 1.2 3*86a7d13cSChris Morgan--- 4*86a7d13cSChris Morgan$id: http://devicetree.org/schemas/input/touchscreen/hynitron,cstxxx.yaml# 5*86a7d13cSChris Morgan$schema: http://devicetree.org/meta-schemas/core.yaml# 6*86a7d13cSChris Morgan 7*86a7d13cSChris Morgantitle: Hynitron cstxxx series touchscreen controller 8*86a7d13cSChris Morgan 9*86a7d13cSChris Morgandescription: | 10*86a7d13cSChris Morgan Bindings for Hynitron cstxxx series multi-touch touchscreen 11*86a7d13cSChris Morgan controllers. 12*86a7d13cSChris Morgan 13*86a7d13cSChris Morganmaintainers: 14*86a7d13cSChris Morgan - Chris Morgan <macromorgan@hotmail.com> 15*86a7d13cSChris Morgan 16*86a7d13cSChris MorganallOf: 17*86a7d13cSChris Morgan - $ref: touchscreen.yaml# 18*86a7d13cSChris Morgan 19*86a7d13cSChris Morganproperties: 20*86a7d13cSChris Morgan compatible: 21*86a7d13cSChris Morgan enum: 22*86a7d13cSChris Morgan - hynitron,cst340 23*86a7d13cSChris Morgan 24*86a7d13cSChris Morgan reg: 25*86a7d13cSChris Morgan maxItems: 1 26*86a7d13cSChris Morgan 27*86a7d13cSChris Morgan interrupts: 28*86a7d13cSChris Morgan maxItems: 1 29*86a7d13cSChris Morgan 30*86a7d13cSChris Morgan reset-gpios: 31*86a7d13cSChris Morgan maxItems: 1 32*86a7d13cSChris Morgan 33*86a7d13cSChris Morgan touchscreen-size-x: true 34*86a7d13cSChris Morgan touchscreen-size-y: true 35*86a7d13cSChris Morgan touchscreen-inverted-x: true 36*86a7d13cSChris Morgan touchscreen-inverted-y: true 37*86a7d13cSChris Morgan touchscreen-swapped-x-y: true 38*86a7d13cSChris Morgan 39*86a7d13cSChris MorganadditionalProperties: false 40*86a7d13cSChris Morgan 41*86a7d13cSChris Morganrequired: 42*86a7d13cSChris Morgan - compatible 43*86a7d13cSChris Morgan - reg 44*86a7d13cSChris Morgan - interrupts 45*86a7d13cSChris Morgan - reset-gpios 46*86a7d13cSChris Morgan 47*86a7d13cSChris Morganexamples: 48*86a7d13cSChris Morgan - | 49*86a7d13cSChris Morgan #include <dt-bindings/gpio/gpio.h> 50*86a7d13cSChris Morgan #include <dt-bindings/interrupt-controller/arm-gic.h> 51*86a7d13cSChris Morgan i2c { 52*86a7d13cSChris Morgan #address-cells = <1>; 53*86a7d13cSChris Morgan #size-cells = <0>; 54*86a7d13cSChris Morgan touchscreen@1a { 55*86a7d13cSChris Morgan compatible = "hynitron,cst340"; 56*86a7d13cSChris Morgan reg = <0x1a>; 57*86a7d13cSChris Morgan interrupt-parent = <&gpio4>; 58*86a7d13cSChris Morgan interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 59*86a7d13cSChris Morgan reset-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; 60*86a7d13cSChris Morgan touchscreen-size-x = <640>; 61*86a7d13cSChris Morgan touchscreen-size-y = <480>; 62*86a7d13cSChris Morgan }; 63*86a7d13cSChris Morgan }; 64*86a7d13cSChris Morgan 65*86a7d13cSChris Morgan... 66