Hi,
This patch series adds a driver for the ST TDA7802 amplifier.
Thank you Mark Brown, Charles Keepax, Cezary Rojewski and Kirill
Marinushkin for your time and useful feedback (on IRC too). Sorry for
taking so long in getting back to you, there were quite a lot of
changes!
Please let me know if there's anything else which needs changing.
Many thanks,
Thomas
Thomas Preston (3):
dt-bindings: ASoC: Add TDA7802 amplifier
ASoC: Add codec driver for ST TDA7802
ASoC: TDA7802: Add turn-on diagnostic routine
.../devicetree/bindings/sound/tda7802.txt | 26 +
sound/soc/codecs/Kconfig | 6 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/tda7802.c | 693 ++++++++++++++++++
4 files changed, 727 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/tda7802.txt
create mode 100644 sound/soc/codecs/tda7802.c
--
2.21.0
Signed-off-by: Thomas Preston <[email protected]>
Cc: Patrick Glaser <[email protected]>
Cc: Rob Duncan <[email protected]>
Cc: Nate Case <[email protected]>
---
.../devicetree/bindings/sound/tda7802.txt | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/tda7802.txt
diff --git a/Documentation/devicetree/bindings/sound/tda7802.txt b/Documentation/devicetree/bindings/sound/tda7802.txt
new file mode 100644
index 000000000000..f80aaf4f1ba0
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/tda7802.txt
@@ -0,0 +1,26 @@
+ST TDA7802 audio processor
+
+This device supports I2C only.
+
+Required properties:
+
+- compatible : "st,tda7802"
+- reg : the I2C address of the device
+- enable-supply : a regulator spec for the PLLen pin
+
+Optional properties:
+
+- st,gain-ch13 : gain for channels 1 and 3 (range: 1-4)
+- st,gain-ch24 : gain for channels 2 and 3 (range: 1-4)
+- st,diagnostic-mode-ch13 : diagnotic mode for channels 1 and 3
+ values: "Speaker" (default), "Booster"
+- st,diagnostic-mode-ch24 : diagnotic mode for channels 2 and 4
+ values: "Speaker" (default), "Booster"
+
+Example:
+
+amp: tda7802@6c {
+ compatible = "st,tda7802";
+ reg = <0x6c>;
+ enable-supply = <&_enable_reg>;
+};
--
2.21.0