Merge tag 'nfs-for-4.8-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / input / atmel,captouch.txt
1 Device tree bindings for Atmel capacitive touch device, typically
2 an Atmel touch sensor connected to AtmegaXX MCU running firmware
3 based on Qtouch library.
4
5 The node for this device must be a child of a I2C controller node, as the
6 device communicates via I2C.
7
8 Required properties:
9
10         compatible:     Must be "atmel,captouch".
11         reg:            The I2C slave address of the device.
12         interrupts:     Property describing the interrupt line the device
13                         is connected to. The device only has one interrupt
14                         source.
15         linux,keycodes: Specifies an array of numeric keycode values to
16                         be used for reporting button presses. The array can
17                         contain up to 8 entries.
18
19 Optional properties:
20
21         autorepeat:     Enables the Linux input system's autorepeat
22                         feature on the input device.
23
24 Example:
25
26         atmel-captouch@51 {
27                 compatible = "atmel,captouch";
28                 reg = <0x51>;
29                 interrupt-parent = <&tlmm>;
30                 interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
31                 linux,keycodes = <BTN_0>, <BTN_1>,
32                         <BTN_2>, <BTN_3>,
33                         <BTN_4>, <BTN_5>,
34                         <BTN_6>, <BTN_7>;
35                 autorepeat;
36         };