From: "Nicolò Veronese" <nicveronese@gmail.com>
To: broonie@kernel.org, alsa-devel@alsa-project.org
Cc: "Nicolò Veronese" <nicveronese@gmail.com>
Subject: [PATCH 2/2] ASoC: simple-amplifier: add dt-bindings
Date: Mon, 25 Jun 2018 13:06:17 +0200 [thread overview]
Message-ID: <1529924777-21136-2-git-send-email-nicveronese@gmail.com> (raw)
In-Reply-To: <1529924777-21136-1-git-send-email-nicveronese@gmail.com>
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
---
.../devicetree/bindings/sound/simple-amplifier.txt | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/simple-amplifier.txt
diff --git a/Documentation/devicetree/bindings/sound/simple-amplifier.txt b/Documentation/devicetree/bindings/sound/simple-amplifier.txt
new file mode 100644
index 0000000..1c2b57c
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/simple-amplifier.txt
@@ -0,0 +1,36 @@
+Simple-Amplifier:
+
+Simple-Amplifier specifies a simple aux device for your codec.
+Most aplifiers are managed by a single GPIO. The main function
+of this driver is to toggle the MUTE/SHUTDOWN GPIO.
+
+Required properties:
+
+- compatible : "simple-audio-amplifier"
+
+- VCC-supply : power supply for the device, as covered
+in Documentation/devicetree/bindings/regulator/regulator.txt
+
+Optional properties:
+
+- shutdown-gpios : The gpio to be toggled on and off
+to shutdown the amplifier when not in use. as covered
+in Documentation/gpio/board.txt
+
+Example:
+
+sound {
+ compatible = "simple-audio-card";
+ ...
+ simple-audio-card,routing =
+ "LEFT AMP IN", "LINE_OUT_LEFT",
+ "RIGHT AMP IN", "LINE_OUT_RIGHT";
+ simple-audio-card,aux-devs = <&>;
+ ...
+};
+
+amp: amplifier {
+ compatible = "simple-audio-amplifier";
+ VCC-supply = <®ulator>
+ shutdown-gpios = <&r_pio 2 GPIO_ACTIVE_LOW>;
+};
--
2.7.4
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2018-06-25 11:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 11:06 [PATCH 1/2] ASoC: add generic simple-amplifier support Nicolò Veronese
2018-06-25 11:06 ` Nicolò Veronese [this message]
2018-06-25 11:21 ` Mark Brown
2018-06-25 11:31 ` Jerome Brunet
2018-06-25 11:44 ` Mark Brown
2018-06-25 11:50 ` Jerome Brunet
2018-06-25 12:07 ` Nicolò Veronese
2018-06-25 12:12 ` Jerome Brunet
2018-06-25 12:28 ` Chen-Yu Tsai
2018-06-25 12:39 ` Mark Brown
2018-06-26 3:20 ` Chen-Yu Tsai
2018-06-26 11:28 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1529924777-21136-2-git-send-email-nicveronese@gmail.com \
--to=nicveronese@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).