xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/atmel,captouch.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDevice tree bindings for Atmel capacitive touch device, typically
2*4882a593Smuzhiyunan Atmel touch sensor connected to AtmegaXX MCU running firmware
3*4882a593Smuzhiyunbased on Qtouch library.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunThe node for this device must be a child of a I2C controller node, as the
6*4882a593Smuzhiyundevice communicates via I2C.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunRequired properties:
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun	compatible:	Must be "atmel,captouch".
11*4882a593Smuzhiyun	reg:		The I2C slave address of the device.
12*4882a593Smuzhiyun	interrupts:	Property describing the interrupt line the device
13*4882a593Smuzhiyun			is connected to. The device only has one interrupt
14*4882a593Smuzhiyun			source.
15*4882a593Smuzhiyun	linux,keycodes:	Specifies an array of numeric keycode values to
16*4882a593Smuzhiyun			be used for reporting button presses. The array can
17*4882a593Smuzhiyun			contain up to 8 entries.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunOptional properties:
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun	autorepeat:	Enables the Linux input system's autorepeat
22*4882a593Smuzhiyun			feature on the input device.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunExample:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun	atmel-captouch@51 {
27*4882a593Smuzhiyun		compatible = "atmel,captouch";
28*4882a593Smuzhiyun		reg = <0x51>;
29*4882a593Smuzhiyun		interrupt-parent = <&tlmm>;
30*4882a593Smuzhiyun		interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
31*4882a593Smuzhiyun		linux,keycodes = <BTN_0>, <BTN_1>,
32*4882a593Smuzhiyun			<BTN_2>, <BTN_3>,
33*4882a593Smuzhiyun			<BTN_4>, <BTN_5>,
34*4882a593Smuzhiyun			<BTN_6>, <BTN_7>;
35*4882a593Smuzhiyun		autorepeat;
36*4882a593Smuzhiyun	};
37