ASoC: SOC: Add support jh7110 audio driver
authorcurry.zhang <curry.zhang@starfivetech.com>
Thu, 16 Dec 2021 06:14:04 +0000 (22:14 -0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:25:02 +0000 (08:25 +0900)
commit0f7d0faf736f5cf13da7ea9b99180bacdd4482ba
tree4db1279fb2ee7014f692aca06f6e2b82f56d0e5c
parentad58da9b93173b9d84d06674540f244ef49f75c5
ASoC: SOC: Add support jh7110 audio driver

Add support audio driver and device tree of starfive JH7110. This
driver is from [1], and the imported patch list[2]. We modified
compatible and clock in the device-tree to fix kernel v6.1. Also fix
the build error for incompatible pointer types and others. And add
set 'legacy_dai_naming' value into starfive_i2s driver, for set to use
legacy dai naming when looking up DAI.

[1] https://github.com/starfive-tech/linux

[2] patch list from v5.15.y
  258954bfe609 Xingyu Wu sound: starfive: I2S: Fixed error after hibernation when building module
  09407b6be383 Xingyu Wu sound: starfive: pwmdac: Support module building
  00a1eaebe170 Xingyu Wu sound: starfive: pwmdac: Fixed playback failed after hibernation
  1f6659ddf77c Xingyu Wu sound:starfive:Move playback and capture driver as slave to starfive I2S
  c1ec8ddaa121 Xingyu Wu sound:starfive:pwmdac:Add runtime pm operation
  78f5ba02befa Xingyu Wu sound:starfive:Add hibernation in I2S
  40cbb24940b3 Walker Chen CR_2307_PWMDAC_515: fix playback repeatly issue
  099a9cd86939 Xingyu Wu sound:starfive:Remove i2srx-master and merge into starfive_i2s
  c813586d1913 Xingyu Wu  sound:starfive:Add I2S driver
  abd5f99857c5 Walker Chen CR_2071_audio_compatible_standard_515
  14d6015d73ed Xingyu Wu sound:starfive:pwmdac:Modify compatible name
  8fba0f28d470 Walker Chen CR_1827_cannot_record_play_simultaneously
  ae6c3943ef0c minda.chen  pwmdac:sound: support 11025hz play mode.
  279155cf4805 curry.zhang [Audio: PWMDAC] enable pwmdac driver on 7110 evb board
  7868835794ac curry.zhang [Audio: PWMDAC] Adjust code style
  1e872b48a7a7 curry.zhang [Audio: PWMDAC] Add standard system clock tree api
  e0f5d0916020 “jenny.zhang” [alsa] Add jh7110 audio module driver code

Signed-off-by: jenny.zhang <jenny.zhang@starfivetech.com>
Signed-off-by: curry.zhang <curry.zhang@starfivetech.com>
Signed-off-by: minda.chen <minda.chen@starfivetech.com>
Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: PeterYang <linsheng.yang@seeed.cc>
Signed-off-by: Baozhu Zuo <zuobaozhu@gmail.com>
Signed-off-by: Rajeev Kumar <rajeevkumar.linux@gmail.com>
Signed-off-by: michael.yan <michael.yan@starfivetech.com>
Change-Id: If1b6c957bbe5ea9f3464e591138da4cf57c6fd84
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
30 files changed:
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
include/linux/dma/starfive-dma.h [new file with mode: 0755]
sound/soc/Kconfig
sound/soc/Makefile
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/ac101.c [new file with mode: 0644]
sound/soc/codecs/ac101_regs.h [new file with mode: 0644]
sound/soc/codecs/ac108.c [new file with mode: 0644]
sound/soc/codecs/ac108.h [new file with mode: 0644]
sound/soc/codecs/ac10x.h [new file with mode: 0644]
sound/soc/codecs/wm8960.c
sound/soc/dwc/dwc-i2s.c
sound/soc/starfive/Kconfig [new file with mode: 0644]
sound/soc/starfive/Makefile [new file with mode: 0644]
sound/soc/starfive/pwmdac.h [new file with mode: 0644]
sound/soc/starfive/starfive_i2s.c [new file with mode: 0644]
sound/soc/starfive/starfive_i2s.h [new file with mode: 0644]
sound/soc/starfive/starfive_pdm.c [new file with mode: 0644]
sound/soc/starfive/starfive_pdm.h [new file with mode: 0644]
sound/soc/starfive/starfive_pwmdac.c [new file with mode: 0644]
sound/soc/starfive/starfive_pwmdac_pcm.c [new file with mode: 0644]
sound/soc/starfive/starfive_pwmdac_transmitter.c [new file with mode: 0755]
sound/soc/starfive/starfive_spdif.c [new file with mode: 0644]
sound/soc/starfive/starfive_spdif.h [new file with mode: 0644]
sound/soc/starfive/starfive_spdif_pcm.c [new file with mode: 0644]
sound/soc/starfive/starfive_tdm.c [new file with mode: 0644]
sound/soc/starfive/starfive_tdm.h [new file with mode: 0644]