[alsa-devel] [PATCH 2/2] ASoC: simple-amplifier: add dt-bindings

Nicolò Veronese nicveronese at gmail.com
Mon Jun 25 13:06:17 CEST 2018


Signed-off-by: Nicolò Veronese <nicveronese at 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>;
+	...
+};
+
+amp: amplifier {
+	compatible = "simple-audio-amplifier";
+	VCC-supply = <&regulator>
+	shutdown-gpios = <&r_pio 2 GPIO_ACTIVE_LOW>;
+};
-- 
2.7.4



More information about the Alsa-devel mailing list