ASoC: Add Loongson-2K0300 I2S controller and sound card support

Binbin Zhou <zhoubinbin@loongson.cn> says:

This series adds ASoC support for the Loongson-2K0300 SoC and its
associated development boards, including the CTCISZ Forever Pi and the
ATK-DL2K0300B.

Key changes:
- Extend DT bindings to support ls2k0300-i2s and new audio card
  compatibles.
- Refactor the platform I2S driver to handle SoC differences via per-device
  configuration (rev_id, optional APB DMA config, reset sequence).
- Refactor the audio machine driver to support board-specific DAI formats,
  GPIO-based headphone detection/control, speaker enable, and DAPM routing.
- Add jack detection and automatic switching between headphones and
  speakers for the DL2K0300B board.

The patchset also cleans up the existing audio card binding by
referencing the common sound-card properties, and adds new compatibles
for the Loongson-2K0300 variants with proper DAI format handling.

All changes have been tested on Loongson-2K2000 (PCI), Loongson-2K0300
Forever Pi and Loongson-2K0300 DL2K0300B boards.

Link: https://patch.msgid.link/cover.1782439646.git.zhoubinbin@loongson.cn
This commit is contained in:
Mark Brown 2026-07-02 20:04:18 +01:00
commit 8d01573c48
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
5 changed files with 267 additions and 26 deletions