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