[PATCH v2 00/19] arm64: qcom: enable SM8650 audio without ADSP firmware

From: Neil Armstrong

Date: Tue Nov 24 2026 - 12:32:29 EST


This patchset is part of a serie adding the necessary plumbing to
drive the SM8650 audio interfaces directly from Linux.
This is required for boards like the Valve Deckard that boot Linux at EL2
without the ADSP audio firmware, meaning the audio interfaces must be driven
directly by the application processor through lpass-cpu.

Without the ADSP firmware, the LPASS clocks, memory zones and audio
controlers must be controlled by Linux

To support this, the series introduces the following changes:
- ASoC LPASS core: Prepares the lpass and lpass-cdc-dma drivers to
handle multiple LPAIFs for I2S ports, allocates and maps LPM buffer
memory for DAIs, and adds support for the optional WSA interface
and Senary/Septenary MI2S ports.
- ASoC SM8650: Introduces the SM8650 lpass-cpu variant and allows the
sc8280xp machine driver to be used with lpass-cpu to keep sound card
bindings working.

The patchset starts with 2 fixes reported on the v1 patchset by Sashiko.

Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
---
Changes in v2:
- Added 2 fixes reported by Sashiko
- Add WSA regmaps callbacks instead of reusing the RXTX ones
- Fix irq disable for WSA like it was fixed for RXTX & VA
- Check IRQSTAT regmap read return
- Add missing LPASS_CDC_DMA_WSA_TX4 case in lpass-cdc-dma
- Only enable mem1 at first for initial WSA support
- Fail initializing lpass-cpu daiops when no I2S dai is registered in DT
- Add va_enable along wsa_enable to check if VA dai is registered in DT
- Move MI2S lpm prealloc in a separate function and handle VA clock
- Use proper offset for LPASS_CDC_DMA_RX0 and LPASS_CDC_DMA_TX0
- Only allocate VA memory if VA is enabled
- Use correct size for remain LPM memory check
- Use VA mem clock if MI2S uses VA LPAIF
- Check mem clock set_rate and enable return values
- Add missing set_bit(chan) for rxtx and wsa channels in sm8650 lpass
- Use LPASS_RXTX_CDC_LPM for lpass-rxtx-lpaif
- Correct rxtx/wsa dma channels count
- Fix reusing the sc8280xp card with lpass-cpu by detecting non-dynamic DAIs
- Link to v1: https://patch.msgid.link/20261113-topic-sm8650-el2-v1-0-5183f6aab9fc@xxxxxxxxxx

---
Neil Armstrong (19):
ASoC: qcom: lpass-cpu: fix RXTX WRDMA current address register readability
ASoC: qcom: lpass-platform: disable the RXTX & VA DMA interrupts on stop
ASoC: dt-bindings: qcom,lpass: add Senary & Septenary MI2S ids
ASoC: dt-bindings: qcom,lpass: add WSA RX and TX channels ids
ASoC: dt-bindings: qcom,lpass-*-macro: document less clock when ADSP is not used
ASoC: dt-bindings: qcom,lpass-cpu: document the SM8650 LPASS
ASoC: codecs: lpass-wsa-macro: handle the macro & dcodec power domains
ASoC: qcom: lpass-cpu: get the optional codec_mem3 clock
ASoC: qcom: lpass: add support for optional WSA interface
ASoC: qcom: lpass-cdc-dma: add support for WSA codec DMA
ASoC: qcom: lpass: prepare to handle multiple lpaifs for i2s
ASoC: qcom: lpass: add support for MI2S_SENARY & MI2S_SEPTENARY
ASoC: qcom: lpass: support mapping I2S ports to multiple LPAIFs
ASoC: qcom: lpass: support LPM memory type for I2S LPAIFs
ASoC: qcom: lpass: allocate LPM buffer memory to DAIs
ASoC: qcom: lpass: enable the right codec_mem clock when usin LPM memory
ASoC: qcom: add SM8650 LPASS CPU driver
ASoC: qcom: sdw: allow LPASS_CDC_DMA_WSA_RX0 as soundwire dai
ASoC: qcom: sc8280xp: allow using the sc8280xp card with lpass-cpu

.../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 74 ++-
.../bindings/sound/qcom,lpass-rx-macro.yaml | 17 +-
.../bindings/sound/qcom,lpass-tx-macro.yaml | 20 +-
.../bindings/sound/qcom,lpass-va-macro.yaml | 13 +-
.../bindings/sound/qcom,lpass-wsa-macro.yaml | 29 +-
include/dt-bindings/sound/qcom,lpass.h | 24 +
sound/soc/codecs/lpass-wsa-macro.c | 9 +
sound/soc/qcom/Kconfig | 12 +
sound/soc/qcom/Makefile | 2 +
sound/soc/qcom/common.c | 43 +-
sound/soc/qcom/common.h | 9 +
sound/soc/qcom/lpass-apq8016.c | 9 +-
sound/soc/qcom/lpass-cdc-dma.c | 48 +-
sound/soc/qcom/lpass-cpu.c | 463 ++++++++++++---
sound/soc/qcom/lpass-lpaif-reg.h | 51 +-
sound/soc/qcom/lpass-platform.c | 499 ++++++++++++++--
sound/soc/qcom/lpass-sc7180.c | 10 +-
sound/soc/qcom/lpass-sc7280.c | 10 +-
sound/soc/qcom/lpass-sm8650.c | 653 +++++++++++++++++++++
sound/soc/qcom/lpass.h | 199 ++++++-
sound/soc/qcom/sc8280xp.c | 88 +++
sound/soc/qcom/sdw.c | 42 +-
22 files changed, 2069 insertions(+), 255 deletions(-)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261113-topic-sm8650-el2-c6caf4237ca7

Best regards,
--
Neil Armstrong <neil.armstrong@xxxxxxxxxx>