Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1* Freescale MPR121 Controllor
2
3Required Properties:
4- compatible: Should be "fsl,mpr121-touchkey"
5- reg: The I2C slave address of the device.
6- interrupts: The interrupt number to the cpu.
7- vdd-supply: Phandle to the Vdd power supply.
8- linux,keycodes: Specifies an array of numeric keycode values to
9 be used for reporting button presses. The array can
10 contain up to 12 entries.
11
12Optional Properties:
13- wakeup-source: Use any event on keypad as wakeup event.
14- autorepeat: Enable autorepeat feature.
15
16Example:
17
18#include "dt-bindings/input/input.h"
19
20 touchkey: mpr121@5a {
21 compatible = "fsl,mpr121-touchkey";
22 reg = <0x5a>;
23 interrupt-parent = <&gpio1>;
24 interrupts = <28 2>;
25 autorepeat;
26 vdd-supply = <&ldo4_reg>;
27 linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
28 <KEY_4> <KEY_5>, <KEY_6>, <KEY_7>,
29 <KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
30 };