Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ASoC: Add the NXP TFA9865 amplifier
@ 2026-11-19  8:31 Venkat Yadlapati via B4 Relay
  2026-11-19  8:31 ` [PATCH v3 1/2] ASoC: dt-bindings: Add " Venkat Yadlapati via B4 Relay
  2026-11-19  8:31 ` [PATCH v3 2/2] ASoC: codecs: Add NXP TFA9865 amplifier driver Venkat Yadlapati via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Venkat Yadlapati via B4 Relay @ 2026-11-19  8:31 UTC (permalink / raw)
  To: Venkat Yadlapati, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai
  Cc: linux-sound, phone-devel, devicetree, linux-kernel

The Motorola Signature has two NXP (now Goodix) TFA9865 mono class-D
speaker amplifiers. This series adds the devicetree binding and a driver.

The chip has no DSP and a different register map than the TFA989x parts
of tfa989x.c. The driver applies the initialization sequence for the
device revision, selects the I2S slot feeding the amplifier and powers
the amplifier and its boost converter up and down. The register settings
come from the NXP tfa98xx driver. Only the B0 revision and the 32-bit I2S
slots configured at reset are supported for now.

Tested on a Motorola Signature: with the matching sound card the speaker
and the earpiece play audio. The register cache, rebinding both amplifiers
and switching an amplifier on and off during playback were tested too.

I used an LLM (Claude) to help write these patches and their commit
messages. I reviewed all of them and tested the result on the device.

---
Changes in v3:
- Driver: cache the registers (REGCACHE_MAPLE) as suggested by Mark Brown,
  thanks for the review.
  Only the registers the chip changes by itself (SYS_CTRL0 with the
  self-clearing I2CR, the status and interrupt flags, the unlock keys)
  stay volatile. The cache is dropped after the I2CR reset in the
  initialization, so a rebind does not use stale values.
- Link to v2: https://patch.msgid.link/20261116-vantage-tfa9865-v2-0-a93f976c9479@yahoo.com

Changes in v2:
- Binding: drop the redundant sound-name-prefix entry (comes from
  dai-common.yaml).
- Driver: no longer mute/unmute from the trigger callback, the register
  access sleeps. The amplifier is now enabled from mute_stream and a DAPM
  event on the AMPE widget, only while the path is powered and the stream
  is unmuted, so toggling "Amp Switch" during playback keeps it in sync.
- Driver: reset the registers (I2CR) at the start of the initialization,
  so a rebind without a reset GPIO does not find MANSCONF still set.
- Link to v1: https://patch.msgid.link/20261116-vantage-tfa9865-v1-0-e88f0dccc427@yahoo.com

---
Venkat Yadlapati (2):
      ASoC: dt-bindings: Add NXP TFA9865 amplifier
      ASoC: codecs: Add NXP TFA9865 amplifier driver

 .../devicetree/bindings/sound/nxp,tfa9865.yaml     |  63 ++++
 MAINTAINERS                                        |   7 +
 sound/soc/codecs/Kconfig                           |  14 +
 sound/soc/codecs/Makefile                          |   2 +
 sound/soc/codecs/tfa9865.c                         | 400 +++++++++++++++++++++
 5 files changed, 486 insertions(+)
---
base-commit: 4e019254b80b70f6fb90d17a50f211de1daf7ffe
change-id: 20261116-vantage-tfa9865-8885091e9443

Best regards,
--  
Venkat Yadlapati <venkat.yadlapati@yahoo.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-19  8:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19  8:31 [PATCH v3 0/2] ASoC: Add the NXP TFA9865 amplifier Venkat Yadlapati via B4 Relay
2026-11-19  8:31 ` [PATCH v3 1/2] ASoC: dt-bindings: Add " Venkat Yadlapati via B4 Relay
2026-11-19  8:31 ` [PATCH v3 2/2] ASoC: codecs: Add NXP TFA9865 amplifier driver Venkat Yadlapati via B4 Relay
2026-11-19  8:41   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox