Skip to contentSkip to conversation

Add support for TI TAS6424 digital amplifier

PATCH Superseded Michael Stecklein 2 participants 4 messages Jul 17, 2017

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 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]>

Changes since v1:
- rebased on 4.13-rc1

Original v1 patches:
- https://patchwork.kernel.org/patch/9795235/
- https://patchwork.kernel.org/patch/9795237/

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 v2 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
maintainer
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: sound: add bindings for TAS6424

Quoted 17 lines · Michael Stecklein

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 +3 -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.

Documentation/devicetree/bindings/sound/ti,tas6424.txt line 13

Quoted 10 lines
Documentation/devicetree/bindings/sound/ti,tas6424.txt new file +10 -0
+
+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

There's no need for interrupts-extended here. Generally, we just document "interrupts" though interrupts-extended can be used instead as needed.

Documentation/devicetree/bindings/sound/ti,tas6424.txt line 20

Quoted 7 lines
Documentation/devicetree/bindings/sound/ti,tas6424.txt new file +7 -0
+
+Example:
+
+tas6424: tas6424@6a {
+	#sound-dai-cells = <0>;
+
+	status = "okay";

Don't show status for examples.

Documentation/devicetree/bindings/sound/ti,tas6424.txt line 22

Quoted 2 lines
Documentation/devicetree/bindings/sound/ti,tas6424.txt new file +2 -0
+
+	compatible = "ti,tas6424";

Generally, this comes first style-wise.

Quoted 12 lines
Documentation/devicetree/bindings/sound/ti,tas6424.txt new file +9 -0
+	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

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

PATCH v2 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 6c78b0b..d1fd4a3 100644
@@ -146,6 +146,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
@@ -865,6 +866,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 1755a54..cb03793 100644
@@ -153,6 +153,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
@@ -386,6 +387,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