summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/mpr121-touchkey.txt
blob: b7c61ee5841bcf9cd5aa0fd44087f9212e3145d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
* Freescale MPR121 Controllor

Required Properties:
- compatible:		Should be "fsl,mpr121-touchkey"
- reg:			The I2C slave address of the device.
- interrupts:		The interrupt number to the cpu.
- vdd-supply:		Phandle to the Vdd power supply.
- linux,keycodes:	Specifies an array of numeric keycode values to
			be used for reporting button presses. The array can
			contain up to 12 entries.

Optional Properties:
- wakeup-source:	Use any event on keypad as wakeup event.
- autorepeat:		Enable autorepeat feature.

Example:

#include "dt-bindings/input/input.h"

	touchkey: mpr121@5a {
		compatible = "fsl,mpr121-touchkey";
		reg = <0x5a>;
		interrupt-parent = <&gpio1>;
		interrupts = <28 2>;
		autorepeat;
		vdd-supply = <&ldo4_reg>;
		linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
				<KEY_4> <KEY_5>, <KEY_6>, <KEY_7>,
				<KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
	};