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