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: Device tree bindings for 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>
36 Property describing the interrupt line the
37 device's ALERT#/CM_IRQ# pin is connected to.
38 The device only has one interrupt source.
42 Enables the Linux input system's autorepeat feature on the input device.
48 Specifies an array of numeric keycode values to
49 be used for the channels. If this property is
50 omitted, KEY_A, KEY_B, etc are used as defaults.
51 The array must have exactly six entries.
53 microchip,sensor-gain:
54 $ref: /schemas/types.yaml#/definitions/uint32
58 Defines the gain of the sensor circuitry. This
59 effectively controls the sensitivity, as a
60 smaller delta capacitance is required to
61 generate the same delta count values.
63 microchip,irq-active-high:
66 By default the interrupt pin is active low
67 open drain. This property allows using the active
68 high push-pull output.
73 description: CAP11xx LEDs
74 $ref: /schemas/leds/common.yaml#
78 enum: [0, 1, 2, 3, 4, 5, 6, 7]
82 linux,default-trigger: true
89 additionalProperties: false
107 additionalProperties: false
112 #address-cells = <1>;
116 compatible = "microchip,cap1188";
117 interrupt-parent = <&gpio1>;
121 microchip,sensor-gain = <2>;
123 linux,keycodes = <103>, /* KEY_UP */
124 <106>, /* KEY_RIGHT */
125 <108>, /* KEY_DOWN */
126 <105>, /* KEY_LEFT */
127 <109>, /* KEY_PAGEDOWN */
128 <104>; /* KEY_PAGEUP */
130 #address-cells = <1>;
134 label = "cap11xx:green:usr0";
139 label = "cap11xx:green:usr1";
144 label = "cap11xx:green:alive";
146 linux,default-trigger = "heartbeat";