Input: cap11xx - add support for various cap11xx devices
[deliverable/linux.git] / Documentation / devicetree / bindings / input / cap11xx.txt
CommitLineData
c77fd0a4 1Device tree bindings for Microchip CAP11xx based capacitive touch sensors
128bb95d 2
c77fd0a4 3The node for this device must be a child of a I2C controller node, as the
128bb95d
DM
4device communication via I2C only.
5
6Required properties:
7
c77fd0a4
MR
8 compatible: Must contain one of:
9 "microchip,cap1106"
7609a5e9
MR
10 "microchip,cap1126"
11 "microchip,cap1188"
128bb95d
DM
12
13 reg: The I2C slave address of the device.
128bb95d
DM
14
15 interrupts: Property describing the interrupt line the
16 device's ALERT#/CM_IRQ# pin is connected to.
17 The device only has one interrupt source.
18
19Optional properties:
20
21 autorepeat: Enables the Linux input system's autorepeat
22 feature on the input device.
23
24 microchip,sensor-gain: Defines the gain of the sensor circuitry. This
25 effectively controls the sensitivity, as a
26 smaller delta capacitance is required to
27 generate the same delta count values.
28 Valid values are 1, 2, 4, and 8.
29 By default, a gain of 1 is set.
30
31 linux,keycodes: Specifies an array of numeric keycode values to
32 be used for the channels. If this property is
33 omitted, KEY_A, KEY_B, etc are used as
34 defaults. The array must have exactly six
35 entries.
36
37Example:
38
39i2c_controller {
40 cap1106@28 {
41 compatible = "microchip,cap1106";
42 interrupt-parent = <&gpio1>;
43 interrupts = <0 0>;
44 reg = <0x28>;
45 autorepeat;
46 microchip,sensor-gain = <2>;
47
c77fd0a4
MR
48 linux,keycodes = <103>, /* KEY_UP */
49 <106>, /* KEY_RIGHT */
50 <108>, /* KEY_DOWN */
51 <105>, /* KEY_LEFT */
52 <109>, /* KEY_PAGEDOWN */
53 <104>; /* KEY_PAGEUP */
128bb95d
DM
54 };
55}
This page took 0.030222 seconds and 5 git commands to generate.