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