brintos

brintos / linux-shallow public Read only

0
0
Text · 1.3 KiB · c2ee89b Raw
73 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---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 controller8 9maintainers:10  - Heiko Stuebner <heiko@sntech.de>11 12allOf:13  - $ref: touchscreen.yaml#14 15properties:16  compatible:17    const: neonode,zforce18 19  reg:20    maxItems: 121 22  interrupts:23    maxItems: 124 25  reset-gpios:26    maxItems: 127 28  irq-gpios:29    maxItems: 130 31  x-size:32    deprecated: true33    $ref: /schemas/types.yaml#/definitions/uint3234 35  y-size:36    deprecated: true37    $ref: /schemas/types.yaml#/definitions/uint3238 39  vdd-supply: true40 41required:42  - compatible43  - reg44  - interrupts45  - reset-gpios46 47unevaluatedProperties: false48 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 = <&reg_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