1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/input/touchscreen/neonode,zforce.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Neonode infrared touchscreen controller 8 9maintainers: 10 - Heiko Stuebner <heiko@sntech.de> 11 12allOf: 13 - $ref: touchscreen.yaml# 14 15properties: 16 compatible: 17 const: neonode,zforce 18 19 reg: 20 maxItems: 1 21 22 interrupts: 23 maxItems: 1 24 25 reset-gpios: 26 maxItems: 1 27 28 irq-gpios: 29 maxItems: 1 30 31 x-size: 32 deprecated: true 33 $ref: /schemas/types.yaml#/definitions/uint32 34 35 y-size: 36 deprecated: true 37 $ref: /schemas/types.yaml#/definitions/uint32 38 39 vdd-supply: true 40 41required: 42 - compatible 43 - reg 44 - interrupts 45 - reset-gpios 46 47unevaluatedProperties: false 48 49examples: 50 - | 51 #include <dt-bindings/interrupt-controller/irq.h> 52 53 i2c { 54 #address-cells = <1>; 55 #size-cells = <0>; 56 57 touchscreen@50 { 58 compatible = "neonode,zforce"; 59 reg = <0x50>; 60 interrupts = <2 0>; 61 vdd-supply = <®_zforce_vdd>; 62 63 reset-gpios = <&gpio5 9 0>; /* RST */ 64 irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ 65 66 touchscreen-min-x = <0>; 67 touchscreen-size-x = <800>; 68 touchscreen-min-y = <0>; 69 touchscreen-size-y = <600>; 70 }; 71 }; 72... 73