From patchwork Mon Jun 12 10:52:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFzbyBIdWFuZyAo6buD5Yqg56u5KQ==?= X-Patchwork-Id: 13276908 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06011C88CB2 for ; Mon, 12 Jun 2023 15:35:07 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id F28F785D; Mon, 12 Jun 2023 17:34:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F28F785D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686584105; bh=4+nRoO97l3EPbLIT35Co8UlFP4D3AzNTprsn+WeIHAE=; h=From:To:CC:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=u1nfYVqBu6mQvhXipwD5+9FTKIO8X29Mlybw8iKoXS1TsDLIRwKp03aDhKUdAdM+8 DxsOq3owbhJmV/+d2nQkQyxAhPX8Ez7mfUKmj2EkJ5xHppoSfrrc08UyJVbLQ2BkP/ O0Dw+HcYlpGUGkizXRxuVSAAiXkZuG3oad2BBcFI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 01CC7F805F6; Mon, 12 Jun 2023 17:32:14 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D7AF1F805EC; Mon, 12 Jun 2023 17:32:13 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 925DCF800BA; Mon, 12 Jun 2023 12:53:43 +0200 (CEST) Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D6D14F800BA for ; Mon, 12 Jun 2023 12:53:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D6D14F800BA Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=BkvTrXt7 X-UUID: 5a1f80c6090f11eeb20a276fd37b9834-20230612 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=HWQ9wrT35b6pkEnZ34pjf2szFkbwSXUpw/iZR2OP2Sg=; b=BkvTrXt7qmssolIPIqsy99D/5EEBn1/gDglCxoFcMmSaxiXqkaQAFvt5RhdJ+KjU3Stfs+DqLSuzekLd65hfYiljRr1RBuTNjTZZtzKymv/ZEZ/OVDoRiNUj7vC3ON/etiwwaRv9N9WhPk6S+aaIKpB3LIGx/CJIzvwl/I67ghU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:a02e8225-0875-415c-8895-ac3693ae37df,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:cb9a4e1,CLOUDID:2b945a3e-7aa7-41f3-a6bd-0433bee822f3,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 5a1f80c6090f11eeb20a276fd37b9834-20230612 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 577519842; Mon, 12 Jun 2023 18:53:23 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 12 Jun 2023 18:53:22 +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.1118.26 via Frontend Transport; Mon, 12 Jun 2023 18:53:22 +0800 From: Maso Hunag To: AngeloGioacchino Del Regno , Jaroslav Kysela , Takashi Iwai , Trevor Wu , Jiaxin Yu , Ren Zhijie , Arnd Bergmann , Allen-KH Cheng , , , , , CC: Maso Huang Subject: [PATCH 0/7] ASoC: mediatek: Add support for MT79xx SoC Date: Mon, 12 Jun 2023 18:52:43 +0800 Message-ID: <20230612105250.15441-1-maso.huang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MailFrom: maso.huang@mediatek.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: 5GDTPQHCGPTKCPSURMWTTQ4SZOCQEYXM X-Message-ID-Hash: 5GDTPQHCGPTKCPSURMWTTQ4SZOCQEYXM X-Mailman-Approved-At: Mon, 12 Jun 2023 15:31:58 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Maso Huang This series of patches adds support for MediaTek AFE of MT79xx SoC. Patches are based on broonie tree "for-next" branch. Maso Huang (7): ASoC: mediatek: mt79xx: add common header ASoC: mediatek: mt79xx: support audio clock control ASoC: mediatek: mt79xx: add platform driver ASoC: mediatek: mt79xx: support etdm in platform driver ASoC: mediatek: mt79xx: add machine driver with wm8960 ASoC: dt-bindings: mediatek,mt79xx-wm8960: add mt79xx-wm8960 document ASoC: dt-bindings: mediatek,mt79xx-afe: add audio afe document .../bindings/sound/mediatek,mt79xx-afe.yaml | 102 +++ .../sound/mediatek,mt79xx-wm8960.yaml | 53 ++ sound/soc/mediatek/Kconfig | 20 + sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/mt79xx/Makefile | 10 + sound/soc/mediatek/mt79xx/mt79xx-afe-clk.c | 123 ++++ sound/soc/mediatek/mt79xx/mt79xx-afe-clk.h | 18 + sound/soc/mediatek/mt79xx/mt79xx-afe-common.h | 49 ++ sound/soc/mediatek/mt79xx/mt79xx-afe-pcm.c | 608 ++++++++++++++++++ sound/soc/mediatek/mt79xx/mt79xx-dai-etdm.c | 421 ++++++++++++ sound/soc/mediatek/mt79xx/mt79xx-reg.h | 206 ++++++ sound/soc/mediatek/mt79xx/mt79xx-wm8960.c | 185 ++++++ 12 files changed, 1796 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt79xx-afe.yaml create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt79xx-wm8960.yaml create mode 100644 sound/soc/mediatek/mt79xx/Makefile create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-afe-clk.c create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-afe-clk.h create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-afe-common.h create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-afe-pcm.c create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-dai-etdm.c create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-reg.h create mode 100644 sound/soc/mediatek/mt79xx/mt79xx-wm8960.c