xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/tps65218-pwrbutton.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunTexas Instruments TPS65217 and TPS65218 power button
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis module is part of the TPS65217/TPS65218. For more details about the whole
4*4882a593SmuzhiyunTPS65217 chip see Documentation/devicetree/bindings/regulator/tps65217.txt.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis driver provides a simple power button event via an Interrupt.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunRequired properties:
9*4882a593Smuzhiyun- compatible: should be "ti,tps65217-pwrbutton" or "ti,tps65218-pwrbutton"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunRequired properties:
12*4882a593Smuzhiyun- interrupts: should be one of the following
13*4882a593Smuzhiyun   - <2>: For controllers compatible with tps65217
14*4882a593Smuzhiyun   - <3 IRQ_TYPE_EDGE_BOTH>: For controllers compatible with tps65218
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunExamples:
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun&tps {
19*4882a593Smuzhiyun	tps65217-pwrbutton {
20*4882a593Smuzhiyun		compatible = "ti,tps65217-pwrbutton";
21*4882a593Smuzhiyun		interrupts = <2>;
22*4882a593Smuzhiyun	};
23*4882a593Smuzhiyun};
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun&tps {
26*4882a593Smuzhiyun	power-button {
27*4882a593Smuzhiyun		compatible = "ti,tps65218-pwrbutton";
28*4882a593Smuzhiyun		interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
29*4882a593Smuzhiyun	};
30*4882a593Smuzhiyun};
31