[PATCH v2 0/9] ASoC: add Renesas MSIOF sound driver

Kuninori Morimoto
2025-04-11T01:03:08Z

Hi Mark, Rob, Krzysztof
Cc Geert

Renesas MSIOF can work as both SPI and I2S.
Current Linux supports MSIOF-SPI. This patch-set adds new MSIOF-I2S.

Because it is using same HW-IP, we want to share same compatible for both
MSIOF-SPI/I2S case. MSIOF-I2S (Sound) will use Audio-Graph-Card/Card2 which
uses Of-Graph, but MSIOF-SPI is not use Of-Graph.
So, this patch-set assumes it was used as MSIOF-I2S if DT is using Of-Graph,
otherwise, it is MSIOF-SPI (This assumption will works if SPI *never*
use Of-Graph in the future).

Link: https://lore.kernel.org/r/875xjeb0wu.wl-kuninori.morimoto.gx@renesas.com

v1 -> v2
- Merge I2S DT bindings into SPI DT
- add "dt-bindings: " in Subject ([1/9])
- use dev instead of pdev->dev ([2/9])
- use __free() ([3/9])
- Add Geert's Reviewed-by ([3/9])
- Tidyup top NOTE ([6/9])
- Remove unused defines ([6/9])
- remove "probed" ([6/9])
- remove MODULE_ALIAS([6/9])
- rename "spi" to "serial-engine" ([7/9])
- add MSIOF on defconfig ([9/9])

Kuninori Morimoto (9):
dt-bindings: renesas,sh-msiof: Add MSIOF I2S Sound support
spi: sh-msiof: use dev in sh_msiof_spi_probe()
spi: sh-msiof: ignore driver probing if it was MSIOF Sound
ASoC: renesas: rsnd: allow to use ADG only
ASoC: renesas: rsnd: enable to use "adg" clock
ASoC: renesas: add MSIOF sound support
arm64: dts: renesas: r8a779g0: tidyup MSIOF node name
arm64: dts: renesas: sparrow hawk: Add MSIOF Sound support
arm64: defconfig: add Renesas MSIOF sound support

.../bindings/spi/renesas,sh-msiof.yaml | 23 +-
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 12 +-
.../dts/renesas/r8a779g3-sparrow-hawk.dts | 98 +++
arch/arm64/configs/defconfig | 1 +
drivers/spi/spi-sh-msiof.c | 42 +-
sound/soc/renesas/Kconfig | 7 +
sound/soc/renesas/rcar/Makefile | 3 +
sound/soc/renesas/rcar/adg.c | 44 +-
sound/soc/renesas/rcar/core.c | 7 +-
sound/soc/renesas/rcar/msiof.c | 566 ++++++++++++++++++
10 files changed, 761 insertions(+), 42 deletions(-)
create mode 100644 sound/soc/renesas/rcar/msiof.c

--
2.43.0