aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/input/e3x0-button.txt
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-01-10 14:04:14 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-01-10 14:17:10 -0800
commit846a7fc8f4bc8f0d04be8d953ecba28152b14de4 (patch)
tree49466b37e79ded79a5012f53ccf057376e3d7267 /Documentation/devicetree/bindings/input/e3x0-button.txt
parentInput: axp20x-pek - switch over to using attribute group (diff)
downloadlinux-dev-846a7fc8f4bc8f0d04be8d953ecba28152b14de4.tar.xz
linux-dev-846a7fc8f4bc8f0d04be8d953ecba28152b14de4.zip
Input: add support for NI Ettus Research USRP E3x0 button
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/e3x0-button.txt')
-rw-r--r--Documentation/devicetree/bindings/input/e3x0-button.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/e3x0-button.txt b/Documentation/devicetree/bindings/input/e3x0-button.txt
new file mode 100644
index 000000000000..751665e8e47a
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/e3x0-button.txt
@@ -0,0 +1,25 @@
+National Instruments Ettus Research USRP E3x0 button driver
+
+This module is part of the NI Ettus Research USRP E3x0 SDR.
+
+This module provides a simple power button event via two interrupts.
+
+Required properties:
+- compatible: should be one of the following
+ - "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0
+- interrupt-parent:
+ - a phandle to the interrupt controller that it is attached to.
+- interrupts: should be one of the following
+ - <0 30 1>, <0 31 1>: For devices such as the NI Ettus Research USRP E3x0
+- interrupt-names: should be one of the following
+ - "press", "release": For devices such as the NI Ettus Research USRP E3x0
+
+Note: Interrupt numbers might vary depending on the FPGA configuration.
+
+Example:
+ button {
+ compatible = "ettus,e3x0-button";
+ interrupt-parent = <&intc>;
+ interrupts = <0 30 1>, <0 31 1>;
+ interrupt-names = "press", "release";
+ }