Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ryder Lee <ryder.lee-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Stephen Boyd <sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
Cc: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Matthias Brugger
	<matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
	linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Garlic Tseng
	<garlic.tseng-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>,
	Ryder Lee <ryder.lee-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
Subject: [PATCH 00/12] mediatek: rework audio subsystem driver
Date: Tue, 2 Jan 2018 19:47:09 +0800	[thread overview]
Message-ID: <cover.1514881870.git.ryder.lee@mediatek.com> (raw)

Hi all,

This patch series mainly adds a common driver [5][6] for the top block of
the MediaTek audio subsystem, which includes clock part and audio components.
This is a minimal driver that manages shared resources like shared registers,
and expose a regmap to its sub-nodes. It was tested on the bananapi-r2 and
the MT2701 EVB.

Also, this driver can be reused by other subsystems (e.g. MMSYS, ETHSYS) in
future patch.

Patch[1]-[4]: rework for audio enable/disable sequences and update some part of
			  code to make them more generic.
Patch[7]~[12]: modify both drivers, audio and clock to adapt the new subsystem.

Ryder Lee (12):
  ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()
  ASoC: mediatek: rework clock functions for MT2701
  ASoC: mediatek: cleanup audio driver for MT2701
  ASoC: mediatek: update clock related properties of MT2701 AFE
  mfd: mtk-audsys: add MediaTek audio subsystem driver
  mfd: add DT bindings for MedaiTek audio subsystem
  ASoC: mediatek: modify MT2701 AFE driver to adapt subsystem wrapper
  ASoC: mediatek: modify documentation to adapt subsystem wrapper
  clk: mediatek: move part of mtk_clk_register_gates() to the new
    function
  clk: mediatek: switch to use dev_get_regmap() for MT7622 audsys
  clk: mediatek: add audsys support for MT2701
  dt-bindings: clock: mediatek: update audsys bindings to adapt the
    wrapper

 .../bindings/arm/mediatek/mediatek,audsys.txt      |  19 +-
 .../devicetree/bindings/mfd/mtk-audsys.txt         | 109 +++++
 .../devicetree/bindings/sound/mt2701-afe-pcm.txt   | 257 +++++-----
 drivers/clk/mediatek/Kconfig                       |   6 +
 drivers/clk/mediatek/Makefile                      |   1 +
 drivers/clk/mediatek/clk-mt2701-aud.c              | 180 +++++++
 drivers/clk/mediatek/clk-mt7622-aud.c              |  11 +-
 drivers/clk/mediatek/clk-mtk.c                     |  26 +-
 drivers/clk/mediatek/clk-mtk.h                     |   4 +
 drivers/mfd/Kconfig                                |   9 +
 drivers/mfd/Makefile                               |   2 +
 drivers/mfd/mtk-audsys.c                           | 138 ++++++
 include/dt-bindings/clock/mt7622-clk.h             |   3 +-
 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c  | 526 +++++++--------------
 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h  |  15 +-
 sound/soc/mediatek/mt2701/mt2701-afe-common.h      |  84 +---
 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c         | 212 +++------
 sound/soc/mediatek/mt2701/mt2701-reg.h             |  42 +-
 18 files changed, 860 insertions(+), 784 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mfd/mtk-audsys.txt
 create mode 100644 drivers/clk/mediatek/clk-mt2701-aud.c
 create mode 100644 drivers/mfd/mtk-audsys.c

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2018-01-02 11:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-02 11:47 Ryder Lee [this message]
     [not found] ` <cover.1514881870.git.ryder.lee-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2018-01-02 11:47   ` [PATCH 01/12] ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe() Ryder Lee
2018-01-03 12:12     ` Applied "ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()" to the asoc tree Mark Brown
2018-01-02 11:47   ` [PATCH 07/12] ASoC: mediatek: modify MT2701 AFE driver to adapt subsystem wrapper Ryder Lee
2018-01-02 11:47 ` [PATCH 02/12] ASoC: mediatek: rework clock functions for MT2701 Ryder Lee
2018-01-03 15:43   ` Applied "ASoC: mediatek: rework clock functions for MT2701" to the asoc tree Mark Brown
2018-01-02 11:47 ` [PATCH 03/12] ASoC: mediatek: cleanup audio driver for MT2701 Ryder Lee
     [not found]   ` <eadb3c22b52b8631319b1aae53d9282bc3bdf328.1514881870.git.ryder.lee-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2018-01-03 15:42     ` Applied "ASoC: mediatek: cleanup audio driver for MT2701" to the asoc tree Mark Brown
2018-01-02 11:47 ` [PATCH 04/12] ASoC: mediatek: update clock related properties of MT2701 AFE Ryder Lee
2018-01-03 16:29   ` Applied "ASoC: mediatek: update clock related properties of MT2701 AFE" to the asoc tree Mark Brown
2018-01-02 11:47 ` [PATCH 05/12] mfd: mtk-audsys: add MediaTek audio subsystem driver Ryder Lee
2018-01-02 16:31   ` Lee Jones
2018-01-03 12:24     ` Ryder Lee
2018-01-02 11:47 ` [PATCH 06/12] mfd: add DT bindings for MedaiTek audio subsystem Ryder Lee
     [not found]   ` <9ae24121a9cea18046428afd1d92c1b8601c0e05.1514881870.git.ryder.lee-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2018-01-05 15:45     ` Rob Herring
2018-01-02 11:47 ` [PATCH 08/12] ASoC: mediatek: modify documentation to adapt subsystem wrapper Ryder Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1514881870.git.ryder.lee@mediatek.com \
    --to=ryder.lee-nus5lvnupcjwk0htik3j/w@public.gmane.org \
    --cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=garlic.tseng-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org \
    --cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=sboyd-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox