public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/8] ASoC: support TI's TAC5x1x audio codec family
@ 2026-03-12 18:48 Niranjan H Y
  2026-03-12 18:48 ` [PATCH v1 1/8] dt-bindings: mfd: Add bindings for TI TAC5x1x MFD core Niranjan H Y
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Niranjan H Y @ 2026-03-12 18:48 UTC (permalink / raw)
  To: linux-kernel, linux-gpio, linux-sound, devicetree
  Cc: lee, linusw, lgirdwood, broonie, perex, tiwai, robh, krzk+dt,
	conor+dt, niranjan.hy, nb, navada, v-hampiholi, sandeepk,
	baojun.xu, shenghao-ding

This patch series adds support for the Texas Instruments TAC5x1x family of
audio codecs. These devices are low-power, high-performance mono/stereo
audio codecs with integrated GPIO functionality.

The TAC5x1x family includes various configurations:
- ADC-only devices (TAA5212, TAA5412)
- DAC-only devices (TAD5112, TAD5212)
- Codec solutions (TAC5111, TAC5112, TAC5211,
                   TAC5212 TAC5301, TAC5311, TAC5312,
                   TAC5411, TAC5412)

The implementation follows the Multi-Function Device (MFD) approach with
three main components:
1. MFD core driver: Handles device initialization, power management, and
   common resources
2. Pinctrl driver: Manages up to 5 configurable pins that can function as
   GPIO, PDM clock/data, or interrupt outputs
3. ASoC codec driver: Provides audio capture and playback functionality
   with support for various formats and sample rates

The series also removes duplicate support for these devices from the
pcm6240 driver, as they are now properly supported by dedicated drivers.

Link to previous standalone implementation attempt:
* https://lore.kernel.org/all/20250626181334.1200-2-niranjan.hy@ti.com/

Changes since previous submissions:
- Restructured the driver to follow the MFD (Multi-Function Device) approach,
  separating core functionality from pinctrl and codec components
- Reorganized device tree bindings into separate files for MFD core,
  pinctrl, and codec to align with the driver architecture
- Reordered patches to define DT bindings before driver implementation
- Improved documentation for device tree bindings.

Niranjan H Y (8):
  dt-bindings: mfd: Add bindings for TI TAC5x1x MFD core
  dt-bindings: pinctrl: Add bindings for TI TAC5x1x pinctrl
  dt-bindings: sound: Add bindings for TI TAC5x1x codec
  dt-bindings: sound: Update ti,pcm6240.yaml to remove TAC5x1x family
  mfd: tac5x1x: Add TI TAC5x1x MFD core driver
  pinctrl: pinctrl-tac5x1x: Add TI TAC5x1x pinctrl driver
  ASoC: tac5x1x: Add TI TAC5x1x codec driver
  ASoC: pcm6240: remove support for taac5x1x family

 .../devicetree/bindings/mfd/ti,tac5x1x.yaml   |  247 ++
 .../bindings/pinctrl/ti,tac5x1x-pinctrl.yaml  |  163 ++
 .../devicetree/bindings/sound/ti,pcm6240.yaml |   15 +-
 .../devicetree/bindings/sound/ti,tac5x1x.yaml |   49 +
 drivers/mfd/Kconfig                           |    8 +
 drivers/mfd/Makefile                          |    4 +
 drivers/mfd/tac5x1x-core.c                    |  684 ++++++
 drivers/pinctrl/Kconfig                       |   11 +
 drivers/pinctrl/Makefile                      |    1 +
 drivers/pinctrl/pinctrl-tac5x1x.c             |  889 +++++++
 include/dt-bindings/pinctrl/tac5x1x.h         |   44 +
 include/linux/mfd/tac5x1x/core.h              |   69 +
 include/linux/mfd/tac5x1x/registers.h         |  291 +++
 sound/soc/codecs/Kconfig                      |   11 +
 sound/soc/codecs/Makefile                     |    2 +
 sound/soc/codecs/pcm6240.c                    |  126 +-
 sound/soc/codecs/pcm6240.h                    |    4 -
 sound/soc/codecs/tac5x1x.c                    | 2082 +++++++++++++++++
 sound/soc/codecs/tac5x1x.h                    |   35 +
 19 files changed, 4598 insertions(+), 137 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mfd/ti,tac5x1x.yaml
 create mode 100644 Documentation/devicetree/bindings/pinctrl/ti,tac5x1x-pinctrl.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tac5x1x.yaml
 create mode 100644 drivers/mfd/tac5x1x-core.c
 create mode 100644 drivers/pinctrl/pinctrl-tac5x1x.c
 create mode 100644 include/dt-bindings/pinctrl/tac5x1x.h
 create mode 100644 include/linux/mfd/tac5x1x/core.h
 create mode 100644 include/linux/mfd/tac5x1x/registers.h
 create mode 100644 sound/soc/codecs/tac5x1x.c
 create mode 100644 sound/soc/codecs/tac5x1x.h

-- 
2.34.1


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

end of thread, other threads:[~2026-03-14 10:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12 18:48 [PATCH v1 0/8] ASoC: support TI's TAC5x1x audio codec family Niranjan H Y
2026-03-12 18:48 ` [PATCH v1 1/8] dt-bindings: mfd: Add bindings for TI TAC5x1x MFD core Niranjan H Y
2026-03-13 20:43   ` Rob Herring
2026-03-14 10:13   ` Krzysztof Kozlowski
2026-03-12 18:48 ` [PATCH v1 2/8] dt-bindings: pinctrl: Add bindings for TI TAC5x1x pinctrl Niranjan H Y
2026-03-14 10:10   ` Krzysztof Kozlowski
2026-03-14 10:12   ` Krzysztof Kozlowski
2026-03-12 18:48 ` [PATCH v1 3/8] dt-bindings: sound: Add bindings for TI TAC5x1x codec Niranjan H Y
2026-03-14 10:14   ` Krzysztof Kozlowski
2026-03-12 18:48 ` [PATCH v1 4/8] dt-bindings: sound: Update ti,pcm6240.yaml to remove TAC5x1x family Niranjan H Y
2026-03-14 10:15   ` Krzysztof Kozlowski
2026-03-12 18:48 ` [PATCH v1 5/8] mfd: tac5x1x: Add TI TAC5x1x MFD core driver Niranjan H Y
2026-03-14 10:20   ` Krzysztof Kozlowski
2026-03-12 18:48 ` [PATCH v1 6/8] pinctrl: pinctrl-tac5x1x: Add TI TAC5x1x pinctrl driver Niranjan H Y
2026-03-14 10:11   ` Krzysztof Kozlowski
2026-03-12 18:48 ` [PATCH v1 7/8] ASoC: tac5x1x: Add TI TAC5x1x codec driver Niranjan H Y
2026-03-12 19:56   ` Mark Brown
2026-03-12 18:48 ` [PATCH v1 8/8] ASoC: pcm6240: remove support for taac5x1x family Niranjan H Y

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