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