diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-11-26 04:17:09 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-11-27 00:54:49 +0100 |
commit | 976358e2343566207fed2101ce62ff6fbad7f830 (patch) | |
tree | 03da08f16573c93c660e415b535f45f77294bb6b /Documentation/devicetree/bindings/input | |
parent | Input: wacom - add support for three new Intuos devices (diff) | |
download | linux-976358e2343566207fed2101ce62ff6fbad7f830.tar.xz linux-976358e2343566207fed2101ce62ff6fbad7f830.zip |
Input: add a new driver for GPIO beeper
This patch adds a new driver for the beeper controlled via GPIO pin.
The driver does not depend on the architecture and is positioned as
a replacement for the specific drivers that are used for this function.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
-rw-r--r-- | Documentation/devicetree/bindings/input/gpio-beeper.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/gpio-beeper.txt b/Documentation/devicetree/bindings/input/gpio-beeper.txt new file mode 100644 index 000000000000..a5086e37fce6 --- /dev/null +++ b/Documentation/devicetree/bindings/input/gpio-beeper.txt @@ -0,0 +1,13 @@ +* GPIO beeper device tree bindings + +Register a beeper connected to GPIO pin. + +Required properties: +- compatible: Should be "gpio-beeper". +- gpios: From common gpio binding; gpio connection to beeper enable pin. + +Example: + beeper: beeper { + compatible = "gpio-beeper"; + gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; + }; |