brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · 3255c2c Raw
75 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/input/touchscreen/elan,elants_i2c.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Elantech I2C Touchscreen8 9maintainers:10  - David Heidelberg <david@ixit.cz>11 12allOf:13  - $ref: touchscreen.yaml#14 15properties:16  compatible:17    oneOf:18      - enum:19          - elan,ektf362420          - elan,ekth350021      - items:22          - const: elan,ekth391523          - const: elan,ekth350024 25  reg:26    maxItems: 127 28  interrupts:29    maxItems: 130 31  wakeup-source:32    type: boolean33    description: touchscreen can be used as a wakeup source.34 35  reset-gpios:36    maxItems: 137    description: reset gpio the chip is connected to.38 39  vcc33-supply:40    description: a phandle for the regulator supplying 3.3V power.41 42  vccio-supply:43    description: a phandle for the regulator supplying IO power.44 45  touchscreen-inverted-x: true46  touchscreen-inverted-y: true47  touchscreen-size-x: true48  touchscreen-size-y: true49  touchscreen-swapped-x-y: true50 51additionalProperties: false52 53required:54  - compatible55  - reg56  - interrupts57 58examples:59  - |60    #include <dt-bindings/interrupt-controller/irq.h>61 62    i2c {63        #address-cells = <1>;64        #size-cells = <0>;65 66        touchscreen@10 {67            compatible = "elan,ekth3500";68            reg = <0x10>;69 70            interrupt-parent = <&gpio4>;71            interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;72            wakeup-source;73        };74    };75