[PATCH v2 00/11] ASoC: Add support to WCD9340/WCD9341 codec

From: Srinivas Kandagatla
Date: Thu Oct 17 2019 - 20:19:59 EST


This patchset adds support to Qualcomm WCD9340/WCD9341 Codec which
is a standalone Hi-Fi audio codec IC.
This codec supports both I2S/I2C and SLIMbus audio interfaces.
On slimbus interface it supports two data lanes; 16 Tx ports
and 8 Rx ports. It has Five DACs and seven dedicated interpolators,
Multibutton headset control (MBHC), Active noise cancellation,
Sidetone paths, MAD (mic activity detection) and codec processing engine.
It supports Class-H differential earpiece out and stereo single
ended headphones out.

This codec also has integrated SoundWire controller.
Patchset for this is already sent for review at
https://patchwork.kernel.org/cover/11185769/

This patchset has been tested on SDM845 based DragonBoard DB845c and
Lenovo Yoga C630 laptop with WSA881x smart speaker amplifiers via
soundwire and 4 DMICs.

Pin Controller patch does not have any link dependency, it can go by its own.

Most of the code in this driver is rework of Qualcomm downstream drivers
used in Andriod. Credits to Banajit Goswami and Patrick Lai's Team.

If anyone is interested to try, here are working set of patches on top of rc3.
https://git.linaro.org/people/srinivas.kandagatla/linux.git/log/?h=audio/v5.4-rc3-YOGA-C630
alsa ucm files:
https://git.linaro.org/people/srinivas.kandagatla/alsa-lib.git/log/?h=DB845c

Thanks,
srini

Changes since v1:
- Code cleanup and convert to proper dpcm widgets where possible.
- converted to mfd driver.
- added pinctrl driver to this series
- added dts changes in this series
- bindings converted to yaml.

Srinivas Kandagatla (10):
ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec
mfd: wcd934x: add support to wcd9340/wcd9341 codec
ASoC: wcd934x: add support to wcd9340/wcd9341 codec
ASoC: wcd934x: add basic controls
ASoC: wcd934x: add playback dapm widgets
ASoC: wcd934x: add capture dapm widgets
ASoC: wcd934x: add audio routings
dt-bindings: pinctrl: qcom-wcd934x: Add bindings for gpio
ASoC: dt-bindings: Add compatible for DB845c and Lenovo Yoga
ASoC: qcom: sdm845: add support to DB845c and Lenovo Yoga

Yeleswarapu Nagaradhesh (1):
pinctrl: qcom-wcd934x: Add support to wcd934x pinctrl driver.

.../pinctrl/qcom,wcd934x-pinctrl.yaml | 51 +
.../devicetree/bindings/sound/qcom,sdm845.txt | 5 +-
.../bindings/sound/qcom,wcd934x.yaml | 169 +
drivers/mfd/Kconfig | 8 +
drivers/mfd/Makefile | 1 +
drivers/mfd/wcd934x.c | 330 ++
drivers/pinctrl/qcom/Kconfig | 7 +
drivers/pinctrl/qcom/Makefile | 1 +
drivers/pinctrl/qcom/pinctrl-wcd934x-gpio.c | 365 ++
include/linux/mfd/wcd934x/registers.h | 529 ++
include/linux/mfd/wcd934x/wcd934x.h | 24 +
sound/soc/codecs/Kconfig | 10 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/wcd934x.c | 5218 +++++++++++++++++
sound/soc/qcom/sdm845.c | 71 +-
15 files changed, 6789 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,wcd934x-pinctrl.yaml
create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml
create mode 100644 drivers/mfd/wcd934x.c
create mode 100644 drivers/pinctrl/qcom/pinctrl-wcd934x-gpio.c
create mode 100644 include/linux/mfd/wcd934x/registers.h
create mode 100644 include/linux/mfd/wcd934x/wcd934x.h
create mode 100644 sound/soc/codecs/wcd934x.c

--
2.21.0