xref: /freebsd/sys/contrib/device-tree/Bindings/input/atmel,captouch.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/input/atmel,captouch.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: Atmel capacitive touch device
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel Vadotmaintainers:
10*01950c46SEmmanuel Vadot  - Dharma balasubiramani <dharma.b@microchip.com>
11*01950c46SEmmanuel Vadot
12*01950c46SEmmanuel Vadotdescription:
13*01950c46SEmmanuel Vadot  Atmel capacitive touch device, typically an Atmel touch sensor connected to
14*01950c46SEmmanuel Vadot  AtmegaXX MCU running firmware based on Qtouch library.
15*01950c46SEmmanuel Vadot
16*01950c46SEmmanuel VadotallOf:
17*01950c46SEmmanuel Vadot  - $ref: input.yaml#
18*01950c46SEmmanuel Vadot
19*01950c46SEmmanuel Vadotproperties:
20*01950c46SEmmanuel Vadot  compatible:
21*01950c46SEmmanuel Vadot    const: atmel,captouch
22*01950c46SEmmanuel Vadot
23*01950c46SEmmanuel Vadot  reg:
24*01950c46SEmmanuel Vadot    maxItems: 1
25*01950c46SEmmanuel Vadot
26*01950c46SEmmanuel Vadot  interrupts:
27*01950c46SEmmanuel Vadot    maxItems: 1
28*01950c46SEmmanuel Vadot
29*01950c46SEmmanuel Vadot  linux,keycodes:
30*01950c46SEmmanuel Vadot    minItems: 1
31*01950c46SEmmanuel Vadot    maxItems: 8
32*01950c46SEmmanuel Vadot
33*01950c46SEmmanuel Vadotrequired:
34*01950c46SEmmanuel Vadot  - compatible
35*01950c46SEmmanuel Vadot  - reg
36*01950c46SEmmanuel Vadot  - interrupts
37*01950c46SEmmanuel Vadot  - linux,keycodes
38*01950c46SEmmanuel Vadot
39*01950c46SEmmanuel VadotunevaluatedProperties: false
40*01950c46SEmmanuel Vadot
41*01950c46SEmmanuel Vadotexamples:
42*01950c46SEmmanuel Vadot  - |
43*01950c46SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
44*01950c46SEmmanuel Vadot    #include <dt-bindings/input/linux-event-codes.h>
45*01950c46SEmmanuel Vadot    i2c {
46*01950c46SEmmanuel Vadot      #address-cells = <1>;
47*01950c46SEmmanuel Vadot      #size-cells = <0>;
48*01950c46SEmmanuel Vadot      touch@51 {
49*01950c46SEmmanuel Vadot        compatible = "atmel,captouch";
50*01950c46SEmmanuel Vadot        reg = <0x51>;
51*01950c46SEmmanuel Vadot        interrupt-parent = <&tlmm>;
52*01950c46SEmmanuel Vadot        interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
53*01950c46SEmmanuel Vadot        linux,keycodes = <BTN_0>, <BTN_1>,
54*01950c46SEmmanuel Vadot                         <BTN_2>, <BTN_3>,
55*01950c46SEmmanuel Vadot                         <BTN_4>, <BTN_5>,
56*01950c46SEmmanuel Vadot                         <BTN_6>, <BTN_7>;
57*01950c46SEmmanuel Vadot        autorepeat;
58*01950c46SEmmanuel Vadot      };
59*01950c46SEmmanuel Vadot    };
60