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 array must have exactly six entries.
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.
76 description: CAP11xx LEDs
77 $ref: /schemas/leds/common.yaml#
81 enum: [0, 1, 2, 3, 4, 5, 6, 7]
85 linux,default-trigger: true
92 additionalProperties: false
110 additionalProperties: false
115 #address-cells = <1>;
119 compatible = "microchip,cap1188";
120 interrupt-parent = <&gpio1>;
124 microchip,sensor-gain = <2>;
126 linux,keycodes = <103>, /* KEY_UP */
127 <106>, /* KEY_RIGHT */
128 <108>, /* KEY_DOWN */
129 <105>, /* KEY_LEFT */
130 <109>, /* KEY_PAGEDOWN */
131 <104>; /* KEY_PAGEUP */
133 #address-cells = <1>;
137 label = "cap11xx:green:usr0";
142 label = "cap11xx:green:usr1";
147 label = "cap11xx:green:alive";
149 linux,default-trigger = "heartbeat";