Skip to contentSkip to conversation

ASoC: tas2781: Add tas2568/5806m/5806md/5830 support

PATCH Superseded Baojun Xu 3 participants 9 messages Nov 8, 2025 – Nov 11, 2025

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Baojun Xu

author maintainer
#0 lore raw

PATCH 1/2 ASoC: tas2781: Add tas2568/5806m/5806md/5830 support

TAS5806M, TAS5806MD, TAS5830 has on-chip DSP without current/voltage feedback, and in same family with TAS58XX.
TAS2568 is in family with TAS257X.

---
 include/sound/tas2781.h        |  4 ++++
 sound/soc/codecs/tas2781-i2c.c | 24 +++++++++++++++++++++---
 2 files changed, 25 insertions(+), 3 deletions(-)
include/sound/tas2781.h +4 -0
index c3b4c43dd2bf..879eb16cbc1f 100644
@@ -117,15 +117,19 @@ enum audio_device {
 	TAS2120,
 	TAS2320,
 	TAS2563,
+	TAS2568,
 	TAS2570,
 	TAS2572,
 	TAS2781,
 	TAS5802,
+	TAS5806M,
+	TAS5806MD,
 	TAS5815,
 	TAS5822,
 	TAS5825,
 	TAS5827,
 	TAS5828,
+	TAS5830,
 	TAS_OTHERS,
 };
 
sound/soc/codecs/tas2781-i2c.c +21 -3
index 7bd98ff5a250..e8d9db401086 100644
@@ -105,15 +105,19 @@ static const struct i2c_device_id tasdevice_id[] = {
 	{ "tas2120", TAS2120 },
 	{ "tas2320", TAS2320 },
 	{ "tas2563", TAS2563 },
+	{ "tas2568", TAS2568 },
 	{ "tas2570", TAS2570 },
 	{ "tas2572", TAS2572 },
 	{ "tas2781", TAS2781 },
 	{ "tas5802", TAS5802 },
+	{ "tas5806m", TAS5806M },
+	{ "tas5806md", TAS5806MD },
 	{ "tas5815", TAS5815 },
 	{ "tas5822", TAS5822 },
 	{ "tas5825", TAS5825 },
 	{ "tas5827", TAS5827 },
 	{ "tas5828", TAS5828 },
+	{ "tas5830", TAS5830 },
 	{}
 };
 MODULE_DEVICE_TABLE(i2c, tasdevice_id);
@@ -125,15 +129,19 @@ static const struct of_device_id tasdevice_of_match[] = {
 	{ .compatible = "ti,tas2120" },
 	{ .compatible = "ti,tas2320" },
 	{ .compatible = "ti,tas2563" },
+	{ .compatible = "ti,tas2568" },
 	{ .compatible = "ti,tas2570" },
 	{ .compatible = "ti,tas2572" },
 	{ .compatible = "ti,tas2781" },
 	{ .compatible = "ti,tas5802" },
+	{ .compatible = "ti,tas5806m" },
+	{ .compatible = "ti,tas5806md" },
 	{ .compatible = "ti,tas5815" },
 	{ .compatible = "ti,tas5822" },
 	{ .compatible = "ti,tas5825" },
 	{ .compatible = "ti,tas5827" },
 	{ .compatible = "ti,tas5828" },
+	{ .compatible = "ti,tas5830" },
 	{},
 };
 MODULE_DEVICE_TABLE(of, tasdevice_of_match);
@@ -1643,6 +1651,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
 	case TAS2118:
 	case TAS2120:
 	case TAS2320:
+	case TAS2568:
 	case TAS2570:
 	case TAS2572:
 		goto out;
@@ -1670,9 +1679,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
 	}
 	tas_priv->fw_state = TASDEVICE_DSP_FW_ALL_OK;
 
-	/* There is no calibration required for
-	 * TAS5802/TAS5815/TAS5822/TAS5825/TAS5827/TAS5828.
-	 */
+	/* There is no calibration required for TAS58XX. */
 	if (tas_priv->chip_id < TAS5802) {
 		ret = tasdevice_create_cali_ctrls(tas_priv);
 		if (ret) {
@@ -1728,11 +1735,14 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
 		case TAS2563:
 		case TAS2781:
 		case TAS5802:
+		case TAS5806M:
+		case TAS5806MD:
 		case TAS5815:
 		case TAS5822:
 		case TAS5825:
 		case TAS5827:
 		case TAS5828:
+		case TAS5830:
 			/* If DSP FW fail, DSP kcontrol won't be created. */
 			tasdevice_dsp_remove(tas_priv);
 		}
@@ -1883,6 +1893,7 @@ static int tasdevice_codec_probe(struct snd_soc_component *codec)
 	case TAS2118:
 	case TAS2120:
 	case TAS2320:
+	case TAS2568:
 	case TAS2570:
 	case TAS2572:
 		p = (struct snd_kcontrol_new *)tas2x20_snd_controls;
@@ -1894,11 +1905,14 @@ static int tasdevice_codec_probe(struct snd_soc_component *codec)
 		size = ARRAY_SIZE(tas2781_snd_controls);
 		break;
 	case TAS5802:
+	case TAS5806M:
+	case TAS5806MD:
 	case TAS5815:
 	case TAS5822:
 	case TAS5825:
 	case TAS5827:
 	case TAS5828:
+	case TAS5830:
 		p = (struct snd_kcontrol_new *)tas5825_snd_controls;
 		size = ARRAY_SIZE(tas5825_snd_controls);
 		break;
@@ -2072,15 +2086,19 @@ static const struct acpi_device_id tasdevice_acpi_match[] = {
 	{ "TXNW2120", TAS2120 },
 	{ "TXNW2320", TAS2320 },
 	{ "TXNW2563", TAS2563 },
+	{ "TXNW2568", TAS2568 },
 	{ "TXNW2570", TAS2570 },
 	{ "TXNW2572", TAS2572 },
 	{ "TXNW2781", TAS2781 },
 	{ "TXNW5802", TAS5802 },
+	{ "TXNW806M", TAS5806M },
+	{ "TXNW806D", TAS5806MD },
 	{ "TXNW5815", TAS5815 },
 	{ "TXNW5822", TAS5822 },
 	{ "TXNW5825", TAS5825 },
 	{ "TXNW5827", TAS5827 },
 	{ "TXNW5828", TAS5828 },
+	{ "TXNW5830", TAS5830 },
 	{},
 };
 
Signature · 1 line
2.25.1
author maintainer
#1 lore raw

PATCH 2/2 ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

TAS5806M, TAS5806MD and TAS5830 is in same family with TAS58XX. TAS2568 is in family with TAS257X.

---
 .../devicetree/bindings/sound/ti,tas2781.yaml | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
Documentation/devicetree/bindings/sound/ti,tas2781.yaml +25 -0
index f0bb5faf55c8..918f1ebdfb7e 100644
@@ -35,11 +35,14 @@ description: |
     https://www.ti.com/lit/gpn/tas2563
     https://www.ti.com/lit/gpn/tas2572
     https://www.ti.com/lit/gpn/tas2781
+    https://www.ti.com/lit/gpn/tas5806m
+    https://www.ti.com/lit/gpn/tas5806md
     https://www.ti.com/lit/gpn/tas5815
     https://www.ti.com/lit/gpn/tas5822m
     https://www.ti.com/lit/gpn/tas5825m
     https://www.ti.com/lit/gpn/tas5827
     https://www.ti.com/lit/gpn/tas5828m
+    https://www.ti.com/lit/gpn/tas5830
 
 properties:
   compatible:
@@ -58,6 +61,9 @@ properties:
       ti,tas2563: 6.1-W Boosted Class-D Audio Amplifier With Integrated
       DSP and IV Sense, 16/20/24/32bit stereo I2S or multichannel TDM.
 
+      ti,tas2568: 5.3-W Digital Input Smart Amp with I/V Sense and Integrated
+      10.75-V Class-H Boost
+
       ti,tas2570: 5.8-W Digital Input smart amp with I/V sense and integrated
       11-V Class-H Boost
 
@@ -72,6 +78,14 @@ properties:
       Audio Amplifier with 96-Khz Extended Processing and Low Idle Power
       Dissipation.
 
+      ti,tas5806m: 23-W, Inductor-Less, Digital Input, Stereo, Closed-Loop
+      Class-D Audio Amplifier with Enhanced Processing and Low Power
+      Dissipation.
+
+      ti,tas5806md: 23-W, Inductor-Less, Digital Input, Stereo, Closed-Loop
+      Class-D Audio Amplifier with Enhanced Processing and DirectPath(TM)
+      HP Driver
+
       ti,tas5815: 30-W, Digital Input, Stereo, Closed-loop Class-D Audio
       Amplifier with 96 kHz Enhanced Processing
 
@@ -86,6 +100,9 @@ properties:
 
       ti,tas5828: 50-W Stereo, Digital Input, High Efficiency Closed-Loop
       Class-D Amplifier with Hybrid-Pro Algorithm
+
+      ti,tas5830: 65-W Stereo, Digital Input, High Efficiency Closed-Loop
+      Class-D Amplifier with Class-H Algorithm
     oneOf:
       - items:
           - enum:
@@ -94,14 +111,18 @@ properties:
               - ti,tas2120
               - ti,tas2320
               - ti,tas2563
+              - ti,tas2568
               - ti,tas2570
               - ti,tas2572
               - ti,tas5802
+              - ti,tas5806m
+              - ti,tas5806md
               - ti,tas5815
               - ti,tas5822
               - ti,tas5825
               - ti,tas5827
               - ti,tas5828
+              - ti,tas5830
           - const: ti,tas2781
       - enum:
           - ti,tas2781
@@ -137,6 +158,7 @@ allOf:
               - ti,tas2118
               - ti,tas2120
               - ti,tas2320
+              - ti,tas2568
     then:
       properties:
         reg:
@@ -217,6 +239,8 @@ allOf:
         compatible:
           contains:
             enum:
+              - ti,tas5806m
+              - ti,tas5806md
               - ti,tas5822
     then:
       properties:
@@ -233,6 +257,7 @@ allOf:
             enum:
               - ti,tas5827
               - ti,tas5828
+              - ti,tas5830
     then:
       properties:
         reg:
Signature · 1 line
2.25.1
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 8 lines · Baojun Xu

TAS5806M, TAS5806MD and TAS5830 is in same family with TAS58XX. TAS2568 is in family with TAS257X.

---
 .../devicetree/bindings/sound/ti,tas2781.yaml | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

Please organize the patch documenting compatible (DT bindings) before their user.
See also: https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst#L46

Best regards,
Krzysztof

author maintainer
#3 lore raw

Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 12 lines

________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 10 November 2025 01:17
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Ji, Jesse; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 3 lines · Baojun Xu

TAS5806M, TAS5806MD and TAS5830 is in same family with TAS58XX. TAS2568 is in family with TAS257X.

Quoted 8 lines
Quoted 5 lines
---
 .../devicetree/bindings/sound/ti,tas2781.yaml | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

Please organize the patch documenting compatible (DT bindings) before their user.
See also: https://urldefense.com/v3/__https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst*L46__;Iw!!G3vK!SQ5aH9VZhZ2QzKdtYIs5BX7OarVmt1XzwB9XxqFgAGN0ONvsEoAjHsuoZWrrmetzH_xlxeSfWA$

Hi Krzysztof,

Thanks for your review.
Do you mean I need to add a text file,
for example "ti,tas2781.txt", include the required properties, and the example of the devicetree node?

Quoted 6 lines

Best regards,
Krzysztof

Best Regards
Jim

#4 lore raw

Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 12 lines · Baojun
Quoted 12 lines

________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 10 November 2025 01:17
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Ji, Jesse; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 3 lines · Baojun Xu

TAS5806M, TAS5806MD and TAS5830 is in same family with TAS58XX. TAS2568 is in family with TAS257X.

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
---
 .../devicetree/bindings/sound/ti,tas2781.yaml | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

Please organize the patch documenting compatible (DT bindings) before their user.
See also: https://urldefense.com/v3/__https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst*L46__;Iw!!G3vK!SQ5aH9VZhZ2QzKdtYIs5BX7OarVmt1XzwB9XxqFgAGN0ONvsEoAjHsuoZWrrmetzH_xlxeSfWA$

What's with this link?

Quoted 8 lines

Hi Krzysztof,

Thanks for your review.
Do you mean I need to add a text file,
for example "ti,tas2781.txt", include the required properties, and the example of the devicetree node?

Did you read the actual resources I pointed you? I don't know how to express it clearer.

Best regards,
Krzysztof

maintainer
#5 lore raw

Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 5 lines · Krzysztof Kozlowski
Quoted 1 line · Baojun
Quoted 1 line

See also: https://urldefense.com/v3/__https://elixir.bootlin.com/linux/v6.14-rc6/source/Documentation/devicetree/bindings/submitting-patches.rst*L46__;Iw!!G3vK!SQ5aH9VZhZ2QzKdtYIs5BX7OarVmt1XzwB9XxqFgAGN0ONvsEoAjHsuoZWrrmetzH_xlxeSfWA$

What's with this link?

Some e-mail systems rewrite incoming links to ensure that if anyone clicks on them they get pushed through some checks for them being malicious at the time they're being viewed, narrowing the window where something nasty could be provided.

author maintainer
#6 lore raw

Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

In reply to Krzysztof Kozlowski
Quoted 11 lines

________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 10 November 2025 15:11
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 3 lines

Hi Krzysztof,

Quoted 9 lines
Quoted 1 line

Thanks for your review.

Do you mean I need to add a text file,
for example "ti,tas2781.txt", include the required properties, and the example of the devicetree node?

Quoted 1 line

Did you read the actual resources I pointed you? I don't know how to express it clearer.

Hi Krzysztof,

Thanks for your review.
Do you mean I need to add an rst file in Documentation\sound\codecs?

Best Regards
Jim

Quoted 5 lines

Best regards,
Krzysztof

#7 lore raw

Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 17 lines · Baojun
Quoted 17 lines

________________________________________
From: Krzysztof Kozlowski <[email protected]>
Sent: 10 November 2025 15:11
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 4 lines

Hi Krzysztof,

Thanks for your review.

Do you mean I need to add a text file,
for example "ti,tas2781.txt", include the required properties, and the example of the devicetree node?

Quoted 1 line
Quoted 7 lines
Quoted 3 lines

Did you read the actual resources I pointed you? I don't know how to express it clearer.

Hi Krzysztof,

Thanks for your review.
Do you mean I need to add an rst file in Documentation\sound\codecs?

Where anything like that is explained in the docs I linked? Do you understand what patch I commented on and what documented I linked?

Best regards,
Krzysztof

author maintainer
#8 lore raw

Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

________________________________________

Quoted 6 lines

From: Krzysztof Kozlowski <[email protected]>
Sent: 11 November 2025 15:17
To: Xu, Baojun
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Ding, Shenghao; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Yi, Ken; Lo, Henry; Chen, Robin; Wang, Will; [email protected]; [email protected]; [email protected]
Subject: Re: [EXTERNAL] Re: [PATCH v1 2/2] ASoC: dt-bindings: ti,tas2781: Add TAS2568/5806M/5806MD/5830 support

Quoted 1 line
Quoted 8 lines
Quoted 4 lines

Hi Krzysztof,

Thanks for your review.
Do you mean I need to add an rst file in Documentation\sound\codecs?

Where anything like that is explained in the docs I linked? Do you understand what patch I commented on and what documented I linked?

Hi Krzysztof,

Thanks for your review.
From your link, it write:
5) The Documentation/ portion of the patch should come in the series before the code implementing the binding.

Do you mean I need move compatible to above, like below:

properties:
compatible:
- enum:
- ti,tas2020
- ti,tas2118
- ti,tas2120
... ...

Quoted 4 lines

Best regards,
Krzysztof

Best Regards
Jim