xref: /freebsd/sys/contrib/device-tree/Bindings/input/e3x0-button.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotNational Instruments Ettus Research USRP E3x0 button driver
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis module is part of the NI Ettus Research USRP E3x0 SDR.
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotThis module provides a simple power button event via two interrupts.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot- compatible: should be one of the following
9*c66ec88fSEmmanuel Vadot  - "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0
10*c66ec88fSEmmanuel Vadot- interrupts: should be one of the following
11*c66ec88fSEmmanuel Vadot  - <0 30 1>, <0 31 1>: For devices such as the NI Ettus Research USRP E3x0
12*c66ec88fSEmmanuel Vadot- interrupt-names: should be one of the following
13*c66ec88fSEmmanuel Vadot  - "press", "release": For devices such as the NI Ettus Research USRP E3x0
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotNote: Interrupt numbers might vary depending on the FPGA configuration.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotExample:
18*c66ec88fSEmmanuel Vadot	button {
19*c66ec88fSEmmanuel Vadot		compatible = "ettus,e3x0-button";
20*c66ec88fSEmmanuel Vadot		interrupt-parent = <&intc>;
21*c66ec88fSEmmanuel Vadot		interrupts = <0 30 1>, <0 31 1>;
22*c66ec88fSEmmanuel Vadot		interrupt-names = "press", "release";
23*c66ec88fSEmmanuel Vadot	}
24