1*0cd4430aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*0cd4430aSEmmanuel Vadot%YAML 1.2 3*0cd4430aSEmmanuel Vadot--- 4*0cd4430aSEmmanuel Vadot$id: http://devicetree.org/schemas/input/focaltech,ft8112.yaml# 5*0cd4430aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*0cd4430aSEmmanuel Vadot 7*0cd4430aSEmmanuel Vadottitle: FocalTech FT8112 touchscreen controller 8*0cd4430aSEmmanuel Vadot 9*0cd4430aSEmmanuel Vadotmaintainers: 10*0cd4430aSEmmanuel Vadot - Daniel Peng <Daniel_Peng@pegatron.corp-partner.google.com> 11*0cd4430aSEmmanuel Vadot 12*0cd4430aSEmmanuel Vadotdescription: 13*0cd4430aSEmmanuel Vadot Supports the FocalTech FT8112 touchscreen controller. 14*0cd4430aSEmmanuel Vadot This touchscreen controller uses the i2c-hid protocol with a reset GPIO. 15*0cd4430aSEmmanuel Vadot 16*0cd4430aSEmmanuel VadotallOf: 17*0cd4430aSEmmanuel Vadot - $ref: /schemas/input/touchscreen/touchscreen.yaml# 18*0cd4430aSEmmanuel Vadot 19*0cd4430aSEmmanuel Vadotproperties: 20*0cd4430aSEmmanuel Vadot compatible: 21*0cd4430aSEmmanuel Vadot enum: 22*0cd4430aSEmmanuel Vadot - focaltech,ft8112 23*0cd4430aSEmmanuel Vadot 24*0cd4430aSEmmanuel Vadot reg: 25*0cd4430aSEmmanuel Vadot maxItems: 1 26*0cd4430aSEmmanuel Vadot 27*0cd4430aSEmmanuel Vadot interrupts: 28*0cd4430aSEmmanuel Vadot maxItems: 1 29*0cd4430aSEmmanuel Vadot 30*0cd4430aSEmmanuel Vadot panel: true 31*0cd4430aSEmmanuel Vadot 32*0cd4430aSEmmanuel Vadot reset-gpios: 33*0cd4430aSEmmanuel Vadot maxItems: 1 34*0cd4430aSEmmanuel Vadot 35*0cd4430aSEmmanuel Vadot vcc33-supply: true 36*0cd4430aSEmmanuel Vadot 37*0cd4430aSEmmanuel Vadot vccio-supply: true 38*0cd4430aSEmmanuel Vadot 39*0cd4430aSEmmanuel Vadotrequired: 40*0cd4430aSEmmanuel Vadot - compatible 41*0cd4430aSEmmanuel Vadot - reg 42*0cd4430aSEmmanuel Vadot - interrupts 43*0cd4430aSEmmanuel Vadot - vcc33-supply 44*0cd4430aSEmmanuel Vadot 45*0cd4430aSEmmanuel VadotadditionalProperties: false 46*0cd4430aSEmmanuel Vadot 47*0cd4430aSEmmanuel Vadotexamples: 48*0cd4430aSEmmanuel Vadot - | 49*0cd4430aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 50*0cd4430aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 51*0cd4430aSEmmanuel Vadot 52*0cd4430aSEmmanuel Vadot i2c { 53*0cd4430aSEmmanuel Vadot #address-cells = <1>; 54*0cd4430aSEmmanuel Vadot #size-cells = <0>; 55*0cd4430aSEmmanuel Vadot 56*0cd4430aSEmmanuel Vadot touchscreen@38 { 57*0cd4430aSEmmanuel Vadot compatible = "focaltech,ft8112"; 58*0cd4430aSEmmanuel Vadot reg = <0x38>; 59*0cd4430aSEmmanuel Vadot 60*0cd4430aSEmmanuel Vadot interrupt-parent = <&pio>; 61*0cd4430aSEmmanuel Vadot interrupts = <15 IRQ_TYPE_LEVEL_LOW>; 62*0cd4430aSEmmanuel Vadot 63*0cd4430aSEmmanuel Vadot reset-gpios = <&pio 126 GPIO_ACTIVE_LOW>; 64*0cd4430aSEmmanuel Vadot vcc33-supply = <&pp3300_tchscr_x>; 65*0cd4430aSEmmanuel Vadot }; 66*0cd4430aSEmmanuel Vadot }; 67