Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 00/19] arm64: qcom: enable SM8650 audio without ADSP firmware
@ 2026-11-24 17:32 Neil Armstrong
  2026-11-24 17:32 ` [PATCH v2 01/19] ASoC: qcom: lpass-cpu: fix RXTX WRDMA current address register readability Neil Armstrong
                   ` (18 more replies)
  0 siblings, 19 replies; 25+ messages in thread
From: Neil Armstrong @ 2026-11-24 17:32 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Srinivasa Rao Mandadapu, Venkata Prasad Potturu,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Rohit kumar
  Cc: linux-sound, linux-arm-msm, devicetree, linux-kernel,
	Neil Armstrong, Sashiko

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@linaro.org>
---
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@linaro.org

---
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@linaro.org>


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

end of thread, other threads:[~2026-11-24 18:01 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 17:32 [PATCH v2 00/19] arm64: qcom: enable SM8650 audio without ADSP firmware Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 01/19] ASoC: qcom: lpass-cpu: fix RXTX WRDMA current address register readability Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 02/19] ASoC: qcom: lpass-platform: disable the RXTX & VA DMA interrupts on stop Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 03/19] ASoC: dt-bindings: qcom,lpass: add Senary & Septenary MI2S ids Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 04/19] ASoC: dt-bindings: qcom,lpass: add WSA RX and TX channels ids Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 05/19] ASoC: dt-bindings: qcom,lpass-*-macro: document less clock when ADSP is not used Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 06/19] ASoC: dt-bindings: qcom,lpass-cpu: document the SM8650 LPASS Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 07/19] ASoC: codecs: lpass-wsa-macro: handle the macro & dcodec power domains Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 08/19] ASoC: qcom: lpass-cpu: get the optional codec_mem3 clock Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 09/19] ASoC: qcom: lpass: add support for optional WSA interface Neil Armstrong
2026-11-24 17:54   ` sashiko-bot
2026-11-24 17:32 ` [PATCH v2 10/19] ASoC: qcom: lpass-cdc-dma: add support for WSA codec DMA Neil Armstrong
2026-11-24 17:44   ` sashiko-bot
2026-11-24 17:32 ` [PATCH v2 11/19] ASoC: qcom: lpass: prepare to handle multiple lpaifs for i2s Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 12/19] ASoC: qcom: lpass: add support for MI2S_SENARY & MI2S_SEPTENARY Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 13/19] ASoC: qcom: lpass: support mapping I2S ports to multiple LPAIFs Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 14/19] ASoC: qcom: lpass: support LPM memory type for I2S LPAIFs Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 15/19] ASoC: qcom: lpass: allocate LPM buffer memory to DAIs Neil Armstrong
2026-11-24 18:01   ` sashiko-bot
2026-11-24 17:32 ` [PATCH v2 16/19] ASoC: qcom: lpass: enable the right codec_mem clock when usin LPM memory Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 17/19] ASoC: qcom: add SM8650 LPASS CPU driver Neil Armstrong
2026-11-24 17:32 ` [PATCH v2 18/19] ASoC: qcom: sdw: allow LPASS_CDC_DMA_WSA_RX0 as soundwire dai Neil Armstrong
2026-11-24 17:48   ` sashiko-bot
2026-11-24 17:32 ` [PATCH v2 19/19] ASoC: qcom: sc8280xp: allow using the sc8280xp card with lpass-cpu Neil Armstrong
2026-11-24 17:56   ` sashiko-bot

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