1*e8a3d847SMaxime Ripard# SPDX-License-Identifier: GPL-2.0 2*e8a3d847SMaxime Ripard%YAML 1.2 3*e8a3d847SMaxime Ripard--- 4*e8a3d847SMaxime Ripard$id: http://devicetree.org/schemas/input/touchscreen/silead,gsl1680.yaml# 5*e8a3d847SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 6*e8a3d847SMaxime Ripard 7*e8a3d847SMaxime Ripardtitle: Silead GSL1680 Touchscreen Controller Device Tree Bindings 8*e8a3d847SMaxime Ripard 9*e8a3d847SMaxime Ripardmaintainers: 10*e8a3d847SMaxime Ripard - Dmitry Torokhov <dmitry.torokhov@gmail.com> 11*e8a3d847SMaxime Ripard 12*e8a3d847SMaxime RipardallOf: 13*e8a3d847SMaxime Ripard - $ref: touchscreen.yaml# 14*e8a3d847SMaxime Ripard 15*e8a3d847SMaxime Ripardproperties: 16*e8a3d847SMaxime Ripard compatible: 17*e8a3d847SMaxime Ripard enum: 18*e8a3d847SMaxime Ripard - silead,gsl1680 19*e8a3d847SMaxime Ripard - silead,gsl1688 20*e8a3d847SMaxime Ripard - silead,gsl3670 21*e8a3d847SMaxime Ripard - silead,gsl3675 22*e8a3d847SMaxime Ripard - silead,gsl3692 23*e8a3d847SMaxime Ripard 24*e8a3d847SMaxime Ripard reg: 25*e8a3d847SMaxime Ripard maxItems: 1 26*e8a3d847SMaxime Ripard 27*e8a3d847SMaxime Ripard interrupts: 28*e8a3d847SMaxime Ripard maxItems: 1 29*e8a3d847SMaxime Ripard 30*e8a3d847SMaxime Ripard power-gpios: 31*e8a3d847SMaxime Ripard maxItems: 1 32*e8a3d847SMaxime Ripard 33*e8a3d847SMaxime Ripard firmware-name: 34*e8a3d847SMaxime Ripard $ref: /schemas/types.yaml#/definitions/string 35*e8a3d847SMaxime Ripard description: > 36*e8a3d847SMaxime Ripard File basename for board specific firmware 37*e8a3d847SMaxime Ripard 38*e8a3d847SMaxime Ripard silead,max-fingers: 39*e8a3d847SMaxime Ripard $ref: /schemas/types.yaml#/definitions/uint32 40*e8a3d847SMaxime Ripard maximum: 5 41*e8a3d847SMaxime Ripard description: > 42*e8a3d847SMaxime Ripard Maximum number of fingers the touchscreen can detect 43*e8a3d847SMaxime Ripard 44*e8a3d847SMaxime Ripard silead,home-button: 45*e8a3d847SMaxime Ripard type: boolean 46*e8a3d847SMaxime Ripard description: > 47*e8a3d847SMaxime Ripard Does the device have a capacitive home-button build into the 48*e8a3d847SMaxime Ripard touchscreen? 49*e8a3d847SMaxime Ripard 50*e8a3d847SMaxime Ripard avdd-supply: 51*e8a3d847SMaxime Ripard description: > 52*e8a3d847SMaxime Ripard Regulator phandle for controller AVDD 53*e8a3d847SMaxime Ripard 54*e8a3d847SMaxime Ripard vddio-supply: 55*e8a3d847SMaxime Ripard description: > 56*e8a3d847SMaxime Ripard Regulator phandle for controller VDDIO 57*e8a3d847SMaxime Ripard 58*e8a3d847SMaxime RipardunevaluatedProperties: false 59*e8a3d847SMaxime Ripard 60*e8a3d847SMaxime Ripardrequired: 61*e8a3d847SMaxime Ripard - compatible 62*e8a3d847SMaxime Ripard - reg 63*e8a3d847SMaxime Ripard - interrupts 64*e8a3d847SMaxime Ripard - power-gpios 65*e8a3d847SMaxime Ripard - touchscreen-size-x 66*e8a3d847SMaxime Ripard - touchscreen-size-y 67*e8a3d847SMaxime Ripard 68*e8a3d847SMaxime Ripardexamples: 69*e8a3d847SMaxime Ripard - | 70*e8a3d847SMaxime Ripard #include <dt-bindings/gpio/gpio.h> 71*e8a3d847SMaxime Ripard #include <dt-bindings/interrupt-controller/arm-gic.h> 72*e8a3d847SMaxime Ripard 73*e8a3d847SMaxime Ripard i2c { 74*e8a3d847SMaxime Ripard #address-cells = <1>; 75*e8a3d847SMaxime Ripard #size-cells = <0>; 76*e8a3d847SMaxime Ripard 77*e8a3d847SMaxime Ripard touchscreen@40 { 78*e8a3d847SMaxime Ripard compatible = "silead,gsl1680"; 79*e8a3d847SMaxime Ripard reg = <0x40>; 80*e8a3d847SMaxime Ripard interrupt-parent = <&pio>; 81*e8a3d847SMaxime Ripard interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; 82*e8a3d847SMaxime Ripard power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; 83*e8a3d847SMaxime Ripard touchscreen-size-x = <480>; 84*e8a3d847SMaxime Ripard touchscreen-size-y = <800>; 85*e8a3d847SMaxime Ripard touchscreen-inverted-x; 86*e8a3d847SMaxime Ripard touchscreen-swapped-x-y; 87*e8a3d847SMaxime Ripard silead,max-fingers = <5>; 88*e8a3d847SMaxime Ripard }; 89*e8a3d847SMaxime Ripard }; 90*e8a3d847SMaxime Ripard 91*e8a3d847SMaxime Ripard... 92