About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / input / mpr121-touchkey.txt


Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.

1	* Freescale MPR121 Controllor
2	
3	Required 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	
12	Optional Properties:
13	- wakeup-source:	Use any event on keypad as wakeup event.
14	- autorepeat:		Enable autorepeat feature.
15	
16	Example:
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		};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog