Message ID | 20230116034131.23943-1-trevor.wu@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1004446wrn; Sun, 15 Jan 2023 19:44:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXuKeX4SliQXUkcWxDLw0jpibBKyaNWPwYsr1bp8/lLRot3MGbfGsWlrOJ0iOgQfH6/R5rcM X-Received: by 2002:a17:906:2bd8:b0:86e:a761:c5ba with SMTP id n24-20020a1709062bd800b0086ea761c5bamr4270568ejg.37.1673840649721; Sun, 15 Jan 2023 19:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673840649; cv=none; d=google.com; s=arc-20160816; b=jpBRd0GODmlXEXKEJALUTHoh4Vc0zAcbI0zbrTY2CPu4l9GWTT0mqb7slm3WE7vLMw yPAZUWiDVcatTIQ4sLEZDTANWP2P3ygiAPYMygw5Ja4btN+PLlrBTr7D7YuvN1buin01 aurpJngwxILKqBjvou4JQqlrHRfN/42+B2vn4HxO7Ium1RXNXPj4WY1NTbMt1ec42w+y 2mD6jyKQk5iBStAcMT4lTmv0FI8D8cui86T1NXahPuoQBbHr4F+dJzuQ1/PV1SPPZEUD ElYzBo5aIw36YauHxDQ30CCo8QRtCOPQ71J7bFZ/ilnM1dN34MTwyz6aUNVSGrPzAOvm NrqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=eh4Cs4ZcRBlSDIsPuhVfHQleWBG2pqk8rqGH33Owp/w=; b=kkEXGpILm0mZOiRH8bw5kOEX7Y2zotxH8tLFPVgbNDeR/TT5Z2Q9wL9urWsPwRISuF VBDmJXHnDCBIXDHblTVlb9jR1/CYjNA3lppQ2vgLlYy6FlzWACRIdAPBb3A1vQTnGFJK Mquz/G7HDXpgi3PyfnwDL8ykaWsr3g/bRTFuqYuuwXj4kHeRYZzNxsUssYCxW3cA+yFh sqBmsPk1kpGcxs/C09P61guBVS2MO1Js1LJSUBLtkGyO8462boDyBU9VlTgvkwVZ3IpU OoOW1yUqY1iWtNqVUdBiPmTULNmcHXESFJEUZh+0xJ+5Jz7gwrG+/sD7UUc1STXiv3IK FPKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EYFaxBmf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs21-20020a170906dc9500b007c0bc7057ddsi32291402ejc.909.2023.01.15.19.43.31; Sun, 15 Jan 2023 19:44:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EYFaxBmf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231908AbjAPDmB (ORCPT <rfc822;stefanalexe802@gmail.com> + 99 others); Sun, 15 Jan 2023 22:42:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231809AbjAPDlr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 15 Jan 2023 22:41:47 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDB2376A4; Sun, 15 Jan 2023 19:41:43 -0800 (PST) X-UUID: acc3a5c0954f11ed945fc101203acc17-20230116 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=eh4Cs4ZcRBlSDIsPuhVfHQleWBG2pqk8rqGH33Owp/w=; b=EYFaxBmf/G+uRzF1ZmS0XZfqZQk8CWOO5MERh4O4ZG8bJ3wjfqZy2UGwr4UIoOrkK3YwDMXZ6itRkNEjnyu39sLmp6xGBMg9cUsE9b8CTKJkr5DUHeOHMavs6vSZkYq1PKr48dNYK+7oxnlo3g+k6HWBo9yCTz4cVapNMaotJlA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:2b89389f-bb20-49fe-b847-10653533c312,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.17,REQID:2b89389f-bb20-49fe-b847-10653533c312,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:543e81c,CLOUDID:eeed568c-8530-4eff-9f77-222cf6e2895b,B ulkID:230116114137D3YUGBJE,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-APTURL: Status:success,Category:nil,Trust:0,Unknown:0,Malicious:0 X-CID-BVR: 0 X-UUID: acc3a5c0954f11ed945fc101203acc17-20230116 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from <trevor.wu@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1704851698; Mon, 16 Jan 2023 11:41:35 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 16 Jan 2023 11:41:34 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 16 Jan 2023 11:41:34 +0800 From: Trevor Wu <trevor.wu@mediatek.com> To: <broonie@kernel.org>, <lgirdwood@gmail.com>, <tiwai@suse.com>, <perex@perex.cz>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <matthias.bgg@gmail.com>, <p.zabel@pengutronix.de> CC: <trevor.wu@mediatek.com>, <angelogioacchino.delregno@collabora.com>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, <alsa-devel@alsa-project.org>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org> Subject: [RESEND,v5 00/13] ASoC: mediatek: Add support for MT8188 SoC Date: Mon, 16 Jan 2023 11:41:18 +0800 Message-ID: <20230116034131.23943-1-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755149132648920279?= X-GMAIL-MSGID: =?utf-8?q?1755149132648920279?= |
Series |
ASoC: mediatek: Add support for MT8188 SoC
|
|
Message
Trevor Wu (吳文良)
Jan. 16, 2023, 3:41 a.m. UTC
This series of patches adds support for Mediatek AFE of MT8188 SoC. Patches are based on broonie tree "for-next" branch. Changes since v4: - refine etdm dai driver based on reviewer's suggestions - refine dt-binding files based on reviewer's suggestions Changes since v3: - replace apll_ck with apll to sync with the relationship in CCF - add mtk-soundcard-driver.c to support codec parsing - drop mclk-always-on-rates support in mt8188-dai-etdm.c - refine dt-binding files based on reviewer's suggestions Changes since v2: - drop CLK_IGNORE_UNUSED flag - include bitfield.h to reslove the issue reported by kernel test robot - rename mt8188-afe-pcm.yaml to mt8188-afe.yaml - refine dt-binding files based on reviewer's suggestions Changes since v1: - remove bus protection functions in case of unmerged dependency problem - replace some bit operation macro with FIELD_PREP - simplify register control by regmap_set_bits and regmap_clear_bits - fix dt-binding errors - rename compatible string for recognition Trevor Wu (13): ASoC: mediatek: common: add SMC ops and SMC CMD ASoC: mediatek: mt8188: add common header ASoC: mediatek: mt8188: support audsys clock ASoC: mediatek: mt8188: support adda in platform driver ASoC: mediatek: mt8188: support etdm in platform driver ASoC: mediatek: mt8188: support pcmif in platform driver ASoC: mediatek: mt8188: support audio clock control ASoC: mediatek: mt8188: add platform driver ASoC: mediatek: mt8188: add control for timing select ASoC: dt-bindings: mediatek,mt8188-afe: add audio afe document ASoC: mediatek: common: add soundcard driver common code ASoC: mediatek: mt8188: add machine driver with mt6359 ASoC: dt-bindings: mediatek,mt8188-mt6359: add mt8188-mt6359 document .../bindings/sound/mediatek,mt8188-afe.yaml | 208 + .../sound/mediatek,mt8188-mt6359.yaml | 97 + sound/soc/mediatek/Kconfig | 23 + sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/common/Makefile | 2 +- sound/soc/mediatek/common/mtk-base-afe.h | 19 + .../mediatek/common/mtk-soundcard-driver.c | 79 + .../mediatek/common/mtk-soundcard-driver.h | 14 + sound/soc/mediatek/mt8188/Makefile | 15 + sound/soc/mediatek/mt8188/mt8188-afe-clk.c | 658 ++++ sound/soc/mediatek/mt8188/mt8188-afe-clk.h | 115 + sound/soc/mediatek/mt8188/mt8188-afe-common.h | 151 + sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 3359 +++++++++++++++++ sound/soc/mediatek/mt8188/mt8188-audsys-clk.c | 205 + sound/soc/mediatek/mt8188/mt8188-audsys-clk.h | 15 + .../soc/mediatek/mt8188/mt8188-audsys-clkid.h | 83 + sound/soc/mediatek/mt8188/mt8188-dai-adda.c | 632 ++++ sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | 2588 +++++++++++++ sound/soc/mediatek/mt8188/mt8188-dai-pcm.c | 367 ++ sound/soc/mediatek/mt8188/mt8188-mt6359.c | 785 ++++ sound/soc/mediatek/mt8188/mt8188-reg.h | 3180 ++++++++++++++++ 21 files changed, 12595 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8188-afe.yaml create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8188-mt6359.yaml create mode 100644 sound/soc/mediatek/common/mtk-soundcard-driver.c create mode 100644 sound/soc/mediatek/common/mtk-soundcard-driver.h create mode 100644 sound/soc/mediatek/mt8188/Makefile create mode 100644 sound/soc/mediatek/mt8188/mt8188-afe-clk.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-afe-clk.h create mode 100644 sound/soc/mediatek/mt8188/mt8188-afe-common.h create mode 100644 sound/soc/mediatek/mt8188/mt8188-afe-pcm.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-audsys-clk.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-audsys-clk.h create mode 100644 sound/soc/mediatek/mt8188/mt8188-audsys-clkid.h create mode 100644 sound/soc/mediatek/mt8188/mt8188-dai-adda.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-dai-etdm.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-dai-pcm.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-mt6359.c create mode 100644 sound/soc/mediatek/mt8188/mt8188-reg.h
Comments
On Mon, 16 Jan 2023 11:41:18 +0800, Trevor Wu wrote: > This series of patches adds support for Mediatek AFE of MT8188 SoC. > Patches are based on broonie tree "for-next" branch. > > Changes since v4: > - refine etdm dai driver based on reviewer's suggestions > - refine dt-binding files based on reviewer's suggestions > > [...] Applied to broonie/sound.git for-next Thanks! [01/13] ASoC: mediatek: common: add SMC ops and SMC CMD commit: 7d40cc8eedbad7cce77226c5d01d891a40373eeb [02/13] ASoC: mediatek: mt8188: add common header commit: f90f0dd809e6600cf20ab74f07237241925f5cf8 [03/13] ASoC: mediatek: mt8188: support audsys clock commit: fdd4e1a28d69648c35bea020c0df3735ddc74889 [04/13] ASoC: mediatek: mt8188: support adda in platform driver commit: 5d1c8e881ae0e6e931396952534d422facbebdbe [05/13] ASoC: mediatek: mt8188: support etdm in platform driver commit: 2babb47774891bc8e68ae229d42ee7df90db9fd9 [06/13] ASoC: mediatek: mt8188: support pcmif in platform driver commit: 5d43bdd71200e1b08b7c4b7f3d3c86fdd23c4a3d [07/13] ASoC: mediatek: mt8188: support audio clock control commit: f6b026479b1392b4b2aa51ed1edbfa99f6d49b59 [08/13] ASoC: mediatek: mt8188: add platform driver commit: bf106bf09376608e4992f9806c21842a4223f18b [09/13] ASoC: mediatek: mt8188: add control for timing select commit: da387d3223aea9505fcd740105b7494df5bb44ad [10/13] ASoC: dt-bindings: mediatek,mt8188-afe: add audio afe document commit: 692d25b67e1089a7683978d1860e511f2ca86e7b [11/13] ASoC: mediatek: common: add soundcard driver common code commit: 4302187d955f166c03b4fa7c993b89ffbabfca4e [12/13] ASoC: mediatek: mt8188: add machine driver with mt6359 commit: 96035d46d4b45274208327826608b873ec6d7f06 [13/13] ASoC: dt-bindings: mediatek,mt8188-mt6359: add mt8188-mt6359 document commit: ce0382384e88c75d2506d4e49929ab8c22527dc7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark