summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/snvs-pwrkey.txt
blob: 8f0826f5817f06f540e506fdcda2c0ed0f24145c (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
* Freescale i.MX SNVS powerkey device tree bindings

The snvs-pwrkey is designed to enable POWER key function which controlled
by SNVS ONOFF, the driver can report the status of POWER key and wakeup
system if pressed after system suspend.

Required SoC Specific Properties:
- compatible: Should be "fsl,imx6sx-snvs-pwrkey".

- reg: Physical base address of the SNVS and length of memory mapped
  region.

- interrupts: The SNVS interrupt number to the CPU(s).

- fsl,keycode: Keycode to emit, KEY_POWER by default.

- fsl,wakeup: Button can wake-up the system

Example:
snvs-pwrkey@0x020cc000 {
	compatible = "fsl,imx6sx-snvs-pwrkey";
	reg = <0x020cc000 0x4000>;
	interrupts = <0 4 0x4>;
	fsl,keycode = <116>; /* KEY_POWER */
	fsl,wakeup;
};