Re: [PATCH v3 2/2] ASoC: tas2781: Update ti,tas2781.yaml for adding tas5815 and tas5828

From: Rob Herring

Date: Mon Oct 06 2025 - 17:23:52 EST


On Sun, Sep 28, 2025 at 05:15:14PM +0800, Baojun Xu wrote:
> Update ti,tas2781.yaml for adding TAS5815/TAS5828.

That is clear from the diff. Say something about how these chips compare
to the existing ones.

>
> Signed-off-by: Baojun Xu <baojun.xu@xxxxxx>
>
> ---
> v3:
> - Rewrite the patch title

'git log --oneline' on the file or subsystem is a hint of what the
subject should look like. In this case, something like:

ASoC: dt-bindings: ti,tas2781: Add TAS5815 and TAS5828

> - Add TAS5815 support in yaml file
> v2:
> - Update description for TAS5828
> - Change commit tree to .../tiwai/sound.git
> ---
> .../devicetree/bindings/sound/ti,tas2781.yaml | 27 ++++++++++++++++++-
> 1 file changed, 26 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml
> index bd00afa47..192d8c560 100644
> --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml
> +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml
> @@ -24,7 +24,7 @@ description: |
> Instruments Smart Amp speaker protection algorithm. The
> integrated speaker voltage and current sense provides for real time
> monitoring of loudspeaker behavior.
> - The TAS5825/TAS5827 is a stereo, digital input Class-D audio
> + The TAS5825/TAS5827/TAS5828 is a stereo, digital input Class-D audio
> amplifier optimized for efficiently driving high peak power into
> small loudspeakers. An integrated on-chip DSP supports Texas
> Instruments Smart Amp speaker protection algorithm.
> @@ -35,8 +35,10 @@ 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/tas5815
> https://www.ti.com/lit/gpn/tas5825m
> https://www.ti.com/lit/gpn/tas5827
> + https://www.ti.com/lit/gpn/tas5828m
>
> properties:
> compatible:
> @@ -65,11 +67,17 @@ properties:
> Protection and Audio Processing, 16/20/24/32bit stereo I2S or
> multichannel TDM.
>
> + ti,tas5815: 30-W, Digital Input, Stereo, Closed-loop Class-D Audio
> + Amplifier with 96 kHz Enhanced Processing
> +
> ti,tas5825: 38-W Stereo, Inductor-Less, Digital Input, Closed-Loop 4.5V
> to 26.4V Class-D Audio Amplifier with 192-kHz Extended Audio Processing.
>
> ti,tas5827: 47-W Stereo, Digital Input, High Efficiency Closed-Loop Class-D
> Amplifier with Class-H Algorithm
> +
> + ti,tas5828: 50-W Stereo, Digital Input, High Efficiency Closed-Loop Class-D
> + Amplifier with Hybrid-Pro Algorithm
> oneOf:
> - items:
> - enum:
> @@ -80,8 +88,10 @@ properties:
> - ti,tas2563
> - ti,tas2570
> - ti,tas2572
> + - ti,tas5815
> - ti,tas5825
> - ti,tas5827
> + - ti,tas5828
> - const: ti,tas2781
> - enum:
> - ti,tas2781
> @@ -177,12 +187,27 @@ allOf:
> minimum: 0x38
> maximum: 0x3f
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - ti,tas5815
> + then:
> + properties:
> + reg:
> + maxItems: 4
> + items:
> + minimum: 0x54
> + maximum: 0x57
> +
> - if:
> properties:
> compatible:
> contains:
> enum:
> - ti,tas5827
> + - ti,tas5828
> then:
> properties:
> reg:
> --
> 2.25.1
>