Skip to contentSkip to conversation

Add support for TI TAS6424 digital amplifier

PATCH Superseded Michael Stecklein 1 participant 3 messages Jun 16, 2017

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Add support for TI TAS6424 digital amplifier

Hello all,

This two-patch series adds the dt bindings, driver, and other related changes for the TAS6424 digital amplifier. I am upstreaming this driver on behalf of Andreas.

Regards,
Michael Stecklein <[email protected]>

Andreas Dannenberg (1):
ASoC: add support for TAS6424 digital amplifier

Michael Stecklein (1):
dt-bindings: sound: add bindings for TAS6424

 .../devicetree/bindings/sound/ti,tas6424.txt       |  31 +
 sound/soc/codecs/Kconfig                           |   8 +
 sound/soc/codecs/Makefile                          |   2 +
 sound/soc/codecs/tas6424.c                         | 755 +++++++++++++++++++++
 sound/soc/codecs/tas6424.h                         | 127 ++++
 5 files changed, 923 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tas6424.txt
 create mode 100644 sound/soc/codecs/tas6424.c
 create mode 100644 sound/soc/codecs/tas6424.h
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 dt-bindings: sound: add bindings for TAS6424

Add the bindings for the TAS6424 digital amplifier.

---
 .../devicetree/bindings/sound/ti,tas6424.txt       | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tas6424.txt
Documentation/devicetree/bindings/sound/ti,tas6424.txt new file +31 -0
new file mode 100644
index 0000000..27227b1
@@ -0,0 +1,31 @@
+Texas Instruments TAS6424 Quad-Channel Audio amplifier
+
+The TAS6424 serial control bus communicates through I2C protocols.
+
+Required properties:
+	- compatible - One of: "ti,tas6424" - TAS6424
+	- reg - I2C slave address
+	- sound-dai-cells: must be equal to 0
+
+Optional properties:
+	- pinctrl-names, pinctrl-0 - Please refer to pinctrl-bindings.txt
+	- interrupts-extended - describe the interrupt line used to inform the
+	  host. Please refer to interrupt-controller/interrupts.txt
+
+Example:
+
+tas6424: tas6424@6a {
+	#sound-dai-cells = <0>;
+
+	status = "okay";
+
+	compatible = "ti,tas6424";
+	reg = <0x6a>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&tas6424_int_pin>;
+	interrupts-extended = <&gpio1 28 IRQ_TYPE_EDGE_FALLING>;
+};
+
+For more product information please see the link below:
+http://www.ti.com/product/TAS6424-Q1
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 ASoC: add support for TAS6424 digital amplifier

In reply to Michael Stecklein

From: Andreas Dannenberg <[email protected]>

The Texas Instruments TAS6424 device is a high-efficiency quad-channel Class-D audio power amplifier. Its digital time division multiplexed (TDM) interface enables up to 2 devices to share the same bus, supporting a total of eight channels from one audio serial port.

This is an initial version of the driver that does not yet support all device capabilities.

---
 sound/soc/codecs/Kconfig   |   8 +
 sound/soc/codecs/Makefile  |   2 +
 sound/soc/codecs/tas6424.c | 755 +++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/codecs/tas6424.h | 127 ++++++++
 4 files changed, 892 insertions(+)
 create mode 100644 sound/soc/codecs/tas6424.c
 create mode 100644 sound/soc/codecs/tas6424.h
sound/soc/codecs/Kconfig +8 -0
index 883ed4c..8dd47f3 100644
@@ -145,6 +145,7 @@ config SND_SOC_ALL_CODECS
 	select SND_SOC_TAS5086 if I2C
 	select SND_SOC_TAS571X if I2C
 	select SND_SOC_TAS5720 if I2C
+	select SND_SOC_TAS6424 if I2C
 	select SND_SOC_TFA9879 if I2C
 	select SND_SOC_TLV320AIC23_I2C if I2C
 	select SND_SOC_TLV320AIC23_SPI if SPI_MASTER
@@ -860,6 +861,13 @@ config SND_SOC_TAS5720
 	  Enable support for Texas Instruments TAS5720L/M high-efficiency mono
 	  Class-D audio power amplifiers.
 
+config SND_SOC_TAS6424
+	tristate "Texas Instruments TAS6424 Quad-Channel Audio amplifier"
+	depends on I2C
+	help
+	  Enable support for Texas Instruments TAS6424 high-efficiency
+	  digital input quad-channel Class-D audio power amplifiers.
+
 config SND_SOC_TFA9879
 	tristate "NXP Semiconductors TFA9879 amplifier"
 	depends on I2C
sound/soc/codecs/Makefile +2 -0
index 28a63fd..c477dd2 100644
@@ -152,6 +152,7 @@ snd-soc-sti-sas-objs := sti-sas.o
 snd-soc-tas5086-objs := tas5086.o
 snd-soc-tas571x-objs := tas571x.o
 snd-soc-tas5720-objs := tas5720.o
+snd-soc-tas6424-objs := tas6424.o
 snd-soc-tfa9879-objs := tfa9879.o
 snd-soc-tlv320aic23-objs := tlv320aic23.o
 snd-soc-tlv320aic23-i2c-objs := tlv320aic23-i2c.o
@@ -383,6 +384,7 @@ obj-$(CONFIG_SND_SOC_TAS2552)	+= snd-soc-tas2552.o
 obj-$(CONFIG_SND_SOC_TAS5086)	+= snd-soc-tas5086.o
 obj-$(CONFIG_SND_SOC_TAS571X)	+= snd-soc-tas571x.o
 obj-$(CONFIG_SND_SOC_TAS5720)	+= snd-soc-tas5720.o
+obj-$(CONFIG_SND_SOC_TAS6424)	+= snd-soc-tas6424.o
 obj-$(CONFIG_SND_SOC_TFA9879)	+= snd-soc-tfa9879.o
 obj-$(CONFIG_SND_SOC_TLV320AIC23)	+= snd-soc-tlv320aic23.o
 obj-$(CONFIG_SND_SOC_TLV320AIC23_I2C)	+= snd-soc-tlv320aic23-i2c.o
sound/soc/codecs/tas6424.c new file +755 -0

755 lines not on this page · raw message

sound/soc/codecs/tas6424.h new file +127 -0

127 lines not on this page · raw message

Signature · 1 line
2.7.4