1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/microchip,cap11xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip CAP11xx based capacitive touch sensors
10 The Microchip CAP1xxx Family of RightTouchTM multiple-channel capacitive
11 touch controllers and LED drivers. The device communication via I2C only.
14 - Rob Herring <robh@kernel.org>
39 Property describing the interrupt line the
40 device's ALERT#/CM_IRQ# pin is connected to.
41 The device only has one interrupt source.
45 Enables the Linux input system's autorepeat feature on the input device.
51 Specifies an array of numeric keycode values to
52 be used for the channels. If this property is
53 omitted, KEY_A, KEY_B, etc are used as defaults.
54 The number of entries must correspond to the number of channels.
56 microchip,sensor-gain:
57 $ref: /schemas/types.yaml#/definitions/uint32
61 Defines the gain of the sensor circuitry. This
62 effectively controls the sensitivity, as a
63 smaller delta capacitance is required to
64 generate the same delta count values.
66 microchip,irq-active-high:
69 By default the interrupt pin is active low
70 open drain. This property allows using the active
71 high push-pull output.
73 microchip,sensitivity-delta-sense:
74 $ref: /schemas/types.yaml#/definitions/uint32
76 enum: [1, 2, 4, 8, 16, 32, 64, 128]
78 Controls the sensitivity multiplier of a touch detection.
79 Higher value means more sensitive settings.
80 At the more sensitive settings, touches are detected for a smaller delta
81 capacitance corresponding to a "lighter" touch.
83 microchip,signal-guard:
84 $ref: /schemas/types.yaml#/definitions/uint32-array
92 The signal guard isolates the signal from virtual grounds.
93 If enabled then the behavior of the channel is changed to signal guard.
94 The number of entries must correspond to the number of channels.
96 microchip,input-threshold:
97 $ref: /schemas/types.yaml#/definitions/uint32-array
104 Specifies the delta threshold that is used to determine if a touch has
105 been detected. A higher value means a larger difference in capacitance
106 is required for a touch to be registered, making the touch sensor less
108 The number of entries must correspond to the number of channels.
110 microchip,calib-sensitivity:
111 $ref: /schemas/types.yaml#/definitions/uint32-array
117 Specifies an array of numeric values that controls the gain
118 used by the calibration routine to enable sensor inputs
119 to be more sensitive for proximity detection.
120 Gain is based on touch pad capacitance range
124 The number of entries must correspond to the number of channels.
129 description: CAP11xx LEDs
130 $ref: /schemas/leds/common.yaml#
134 enum: [0, 1, 2, 3, 4, 5, 6, 7]
138 linux,default-trigger: true
145 additionalProperties: false
175 microchip,signal-guard: false
176 microchip,calib-sensitivity: false
182 additionalProperties: false
187 #address-cells = <1>;
191 compatible = "microchip,cap1188";
192 interrupt-parent = <&gpio1>;
196 microchip,sensor-gain = <2>;
197 microchip,sensitivity-delta-sense = <16>;
198 microchip,input-threshold = <21>, <18>, <46>, <46>, <46>, <21>;
200 linux,keycodes = <103>, /* KEY_UP */
201 <106>, /* KEY_RIGHT */
202 <108>, /* KEY_DOWN */
203 <105>, /* KEY_LEFT */
204 <109>, /* KEY_PAGEDOWN */
205 <104>; /* KEY_PAGEUP */
207 #address-cells = <1>;
211 label = "cap11xx:green:usr0";
216 label = "cap11xx:green:usr1";
221 label = "cap11xx:green:alive";
223 linux,default-trigger = "heartbeat";