[PATCH v4 0/2] ASoC: codecs: add Texas Instruments TAS2557 smart amplifier driver
From: Gianluca Boiano
Date: Thu Nov 19 2026 - 19:44:44 EST
The TAS2557 is a mono Class-D smart amplifier with an on-chip DSP for
speaker protection, controlled over I2C, with audio over I2S/TDM. The
DSP needs a firmware image tuned for the speaker; without it the chip
passes no audio.
Patch 1 adds the binding, patch 2 the driver. One node describes one
chip or a stereo pair on one bus, using the reg-array convention of
ti,tas2781.yaml: reg index 0 is DEV_A, index 1 is DEV_B.
v4 uses tas2781-comlib for register access, adds the firmware rate
constraint asked for in the v2 review, and addresses the v3 review
from Mark Brown, Krzysztof Kozlowski and Markus Elfring. The
ti,imon-slot-nos/ti,vmon-slot-nos properties are gone: the register
they were written to only holds the I-sense scale. I/V sense now stays
on while the amplifier plays, as in TI's driver. Details are in the
per-patch changelogs.
Testing: built against broonie/sound for-next with W=1, checkpatch
--strict and dt_binding_check clean. The v4 driver was run in mono on
a Xiaomi Redmi Note 6 Pro (SDM636, ASI2) on a 7.2-based kernel:
firmware load, playback, stream restarts without a program reload and
unbind/bind. Stereo pairs, TDM, DSP_A, ASI1 and suspend were not
tested with v4.
Link to v3: https://lore.kernel.org/linux-sound/20260717233402.414326-1-morf3089@xxxxxxxxx/
Link to v2: https://lore.kernel.org/linux-sound/20260711145722.188556-1-morf3089@xxxxxxxxx/
Link to v1: https://lore.kernel.org/linux-sound/20260709221331.989109-1-morf3089@xxxxxxxxx/
Gianluca Boiano (2):
ASoC: dt-bindings: add Texas Instruments TAS2557
ASoC: codecs: add TAS2557 mono smart amplifier driver
.../devicetree/bindings/sound/ti,tas2557.yaml | 158 +
MAINTAINERS | 1 +
sound/soc/codecs/Kconfig | 13 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/tas2557.c | 2973 +++++++++++++++++
sound/soc/codecs/tas2557.h | 207 ++
6 files changed, 3354 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/ti,tas2557.yaml
create mode 100644 sound/soc/codecs/tas2557.c
create mode 100644 sound/soc/codecs/tas2557.h
base-commit: cee03387d20bb267663085d9ac2622ff9263d302
--
2.56.1