Path: blob/master/Documentation/devicetree/bindings/input/atmel,captouch.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/atmel,captouch.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Atmel capacitive touch device78maintainers:9- Dharma balasubiramani <dharma.b@microchip.com>1011description:12Atmel capacitive touch device, typically an Atmel touch sensor connected to13AtmegaXX MCU running firmware based on Qtouch library.1415allOf:16- $ref: input.yaml#1718properties:19compatible:20const: atmel,captouch2122reg:23maxItems: 12425interrupts:26maxItems: 12728linux,keycodes:29minItems: 130maxItems: 83132required:33- compatible34- reg35- interrupts36- linux,keycodes3738unevaluatedProperties: false3940examples:41- |42#include <dt-bindings/interrupt-controller/irq.h>43#include <dt-bindings/input/linux-event-codes.h>44i2c {45#address-cells = <1>;46#size-cells = <0>;47touch@51 {48compatible = "atmel,captouch";49reg = <0x51>;50interrupt-parent = <&tlmm>;51interrupts = <67 IRQ_TYPE_EDGE_FALLING>;52linux,keycodes = <BTN_0>, <BTN_1>,53<BTN_2>, <BTN_3>,54<BTN_4>, <BTN_5>,55<BTN_6>, <BTN_7>;56autorepeat;57};58};596061