Linux Sound subsystem development
 help / color / mirror / Atom feed
From: "Wang, Sen" <sen@ti.com>
To: Gianluca Boiano <morf3089@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Rob Herring <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"Jaroslav Kysela" <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: Shenghao Ding <shenghao-ding@ti.com>, Kevin Lu <kevin-lu@ti.com>,
	"Baojun Xu" <baojun.xu@ti.com>, <linux-sound@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 1/2] dt-bindings: sound: add Texas Instruments TAS2557
Date: Thu, 9 Jul 2026 23:10:25 -0500	[thread overview]
Message-ID: <f814faf1-bfbe-42e4-ae0e-e34c7b2aad7d@ti.com> (raw)
In-Reply-To: <20260709221331.989109-2-morf3089@gmail.com>

On 7/9/2026 5:13 PM, Gianluca Boiano wrote:
> Document the TAS2557 mono Class-D smart amplifier with an integrated
> DSP for speaker protection. The device is controlled over I2C and
> receives audio over I2S/TDM (ASI). It can drive a single mono speaker
> or, as two devices, a stereo pair; in that case the ti,channel
> property selects the audio slot each device reproduces and the
> per-device tuning it applies.
> 
> The on-chip DSP boots from a firmware image generated per speaker
> design with the TI PurePath Console tuning tools; the optional
> firmware-name property selects a board-specific image.
> 
> Signed-off-by: Gianluca Boiano <morf3089@gmail.com>

Hi Gianluca, thanks for the patch.

> ---
>   .../devicetree/bindings/sound/ti,tas2557.yaml | 123 ++++++++++++++++++
>   MAINTAINERS                                   |   1 +
>   2 files changed, 124 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/sound/ti,tas2557.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/ti,tas2557.yaml b/Documentation/devicetree/bindings/sound/ti,tas2557.yaml
> new file mode 100644
> index 000000000000..b1d1183c4a79
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/ti,tas2557.yaml
> @@ -0,0 +1,123 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright (C) 2026 Gianluca Boiano <morf3089@gmail.com>
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/ti,tas2557.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments TAS2557 Mono Smart Amplifier
> +
> +maintainers:
> +  - Gianluca Boiano <morf3089@gmail.com>
> +
> +description: |
> +  The TAS2557 is a mono, digital-input Class-D amplifier with an
> +  integrated DSP for speaker protection. Audio is carried over I2S/TDM
> +  (ASI). The on-chip DSP boots from a firmware image that is generated
> +  for a specific speaker design using the TI PurePath Console tuning
> +  tools.
> +
> +  Stereo playback is built from two devices, each reproducing one audio
> +  slot selected through the ti,channel property and applying the
> +  matching per-device tuning contained in a stereo-tuned firmware
> +  image.
> +
> +  Datasheet: https://www.ti.com/lit/gpn/tas2557
> +
> +allOf:
> +  - $ref: dai-common.yaml#
> +
> +properties:
> +  compatible:
> +    const: ti,tas2557
> +
> +  reg:
> +    maxItems: 1
> +
> +  '#sound-dai-cells':
> +    const: 0
> +
> +  reset-gpios:
> +    maxItems: 1
> +    description: GPIO connected to the active-low RESET pin.
> +
> +  interrupts:
> +    maxItems: 1
> +    description: Fault interrupt output (INT).
> +
> +  vbat-supply:
> +    description: Battery/boost input supply (VBAT), 2.9 V to 5.5 V.
> +
> +  iovdd-supply:
> +    description: Digital I/O supply, 1.62 V to 3.6 V.
> +
> +  avdd-supply:
> +    description: Analog supply, 1.65 V to 1.95 V.
> +
> +  dvdd-supply:
> +    description: Digital core supply, 1.65 V to 1.95 V.
> +
> +  ti,imon-slot-no:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: TDM TX time slot for current-sense data.
> +    default: 0
> +    minimum: 0
> +    maximum: 7
> +
> +  ti,vmon-slot-no:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: TDM TX time slot for voltage-sense data.
> +    default: 2
> +    minimum: 0
> +    maximum: 7
> +
> +  ti,channel:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    description: |
> +      Audio slot of the stereo stream reproduced by this device (0 =
> +      left, 1 = right). With stereo firmware this also selects which
> +      per-device tuning set is applied.
> +    enum: [0, 1]
> +    default: 0
> +
> +  firmware-name:
> +    $ref: /schemas/types.yaml#/definitions/string
> +    description: |
> +      Name of the DSP firmware image to load. Defaults to a name
> +      derived from the silicon revision. Stereo systems typically use
> +      a stereo-tuned image shared by both devices.
> +
> +required:
> +  - compatible
> +  - reg
> +  - '#sound-dai-cells'

+	ret = devm_regulator_bulk_get_enable(dev, 	ARRAY_SIZE(tas2557_supplies),
+					     tas2557_supplies);
+	if (ret)
+		return dev_err_probe(dev, ret,
+				     "failed to get/enable supplies\n");

Looks like all supplies listed above is mandatory in the driver, please 
make sure you list them here in the required as well.

Best,
Sen Wang


  reply	other threads:[~2026-07-10  4:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09 22:13 [PATCH v1 0/2] ASoC: codecs: add Texas Instruments TAS2557 smart amplifier driver Gianluca Boiano
2026-07-09 22:13 ` [PATCH v1 1/2] dt-bindings: sound: add Texas Instruments TAS2557 Gianluca Boiano
2026-07-10  4:10   ` Wang, Sen [this message]
2026-07-11 11:39     ` Gianluca Boiano
2026-07-10 12:49   ` Mark Brown
2026-07-11 11:39     ` Gianluca Boiano
2026-07-09 22:13 ` [PATCH v1 2/2] ASoC: codecs: add TAS2557 mono smart amplifier driver Gianluca Boiano
2026-07-10  4:40   ` Wang, Sen
2026-07-10 12:45     ` Mark Brown
2026-07-11 11:39     ` Gianluca Boiano
2026-07-10 13:55   ` Mark Brown
2026-07-11 11:40     ` Gianluca Boiano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f814faf1-bfbe-42e4-ae0e-e34c7b2aad7d@ti.com \
    --to=sen@ti.com \
    --cc=baojun.xu@ti.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kevin-lu@ti.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=morf3089@gmail.com \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=shenghao-ding@ti.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox