2014-11-01 11:00:13 +08:00
|
|
|
Device tree bindings for Microchip CAP11xx based capacitive touch sensors
|
2014-07-16 00:47:52 +08:00
|
|
|
|
2014-11-01 11:00:13 +08:00
|
|
|
The node for this device must be a child of a I2C controller node, as the
|
2014-07-16 00:47:52 +08:00
|
|
|
device communication via I2C only.
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
2014-11-01 11:00:13 +08:00
|
|
|
compatible: Must contain one of:
|
|
|
|
"microchip,cap1106"
|
2014-11-01 11:01:37 +08:00
|
|
|
"microchip,cap1126"
|
|
|
|
"microchip,cap1188"
|
2014-07-16 00:47:52 +08:00
|
|
|
|
|
|
|
reg: The I2C slave address of the device.
|
|
|
|
|
|
|
|
interrupts: Property describing the interrupt line the
|
|
|
|
device's ALERT#/CM_IRQ# pin is connected to.
|
|
|
|
The device only has one interrupt source.
|
|
|
|
|
|
|
|
Optional properties:
|
|
|
|
|
|
|
|
autorepeat: Enables the Linux input system's autorepeat
|
|
|
|
feature on the input device.
|
|
|
|
|
|
|
|
microchip,sensor-gain: Defines the gain of the sensor circuitry. This
|
|
|
|
effectively controls the sensitivity, as a
|
|
|
|
smaller delta capacitance is required to
|
|
|
|
generate the same delta count values.
|
|
|
|
Valid values are 1, 2, 4, and 8.
|
|
|
|
By default, a gain of 1 is set.
|
|
|
|
|
2014-11-01 11:02:08 +08:00
|
|
|
microchip,irq-active-high: By default the interrupt pin is active low
|
|
|
|
open drain. This property allows using the active
|
|
|
|
high push-pull output.
|
|
|
|
|
2014-07-16 00:47:52 +08:00
|
|
|
linux,keycodes: Specifies an array of numeric keycode values to
|
|
|
|
be used for the channels. If this property is
|
|
|
|
omitted, KEY_A, KEY_B, etc are used as
|
|
|
|
defaults. The array must have exactly six
|
|
|
|
entries.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
i2c_controller {
|
|
|
|
cap1106@28 {
|
|
|
|
compatible = "microchip,cap1106";
|
|
|
|
interrupt-parent = <&gpio1>;
|
|
|
|
interrupts = <0 0>;
|
|
|
|
reg = <0x28>;
|
|
|
|
autorepeat;
|
|
|
|
microchip,sensor-gain = <2>;
|
|
|
|
|
2014-11-01 11:00:13 +08:00
|
|
|
linux,keycodes = <103>, /* KEY_UP */
|
|
|
|
<106>, /* KEY_RIGHT */
|
|
|
|
<108>, /* KEY_DOWN */
|
|
|
|
<105>, /* KEY_LEFT */
|
|
|
|
<109>, /* KEY_PAGEDOWN */
|
|
|
|
<104>; /* KEY_PAGEUP */
|
2015-08-17 14:04:53 +08:00
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
usr@0 {
|
|
|
|
label = "cap11xx:green:usr0";
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usr@1 {
|
|
|
|
label = "cap11xx:green:usr1";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
alive@2 {
|
|
|
|
label = "cap11xx:green:alive";
|
|
|
|
reg = <2>;
|
|
|
|
linux,default_trigger = "heartbeat";
|
|
|
|
};
|
2014-07-16 00:47:52 +08:00
|
|
|
};
|
|
|
|
}
|