Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1552479 > unrolled thread
| Started by | David Lechner <david@lechnology.com> |
|---|---|
| First post | 2017-01-06 03:50 +0100 |
| Last post | 2017-01-06 03:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/3] dt-bindings: Input: Add enable-gpios to pwm-beeper David Lechner <david@lechnology.com> - 2017-01-06 03:50 +0100
| From | David Lechner <david@lechnology.com> |
|---|---|
| Date | 2017-01-06 03:50 +0100 |
| Subject | [PATCH 2/3] dt-bindings: Input: Add enable-gpios to pwm-beeper |
| Message-ID | <sWsLn-3qX-1@gated-at.bofh.it> |
This adds an optional enable-gpios property to pwm-beeper. This gpio is
used to enable the beeper. For example, the beeper may have an amplifier
that needs to be switched on.
Signed-off-by: David Lechner <david@lechnology.com>
---
Documentation/devicetree/bindings/input/pwm-beeper.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/pwm-beeper.txt b/Documentation/devicetree/bindings/input/pwm-beeper.txt
index be332ae..1c6bcf8 100644
--- a/Documentation/devicetree/bindings/input/pwm-beeper.txt
+++ b/Documentation/devicetree/bindings/input/pwm-beeper.txt
@@ -5,3 +5,14 @@ Registers a PWM device as beeper.
Required properties:
- compatible: should be "pwm-beeper"
- pwms: phandle to the physical PWM device
+
+Optional properties:
+- enable-gpios: phandle to gpio to enable the beeper
+
+Example:
+
+beeper {
+ compatible = "pwm-beeper";
+ pwms = <&pwm0>;
+ enable-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+};
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web