From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58D192459F1; Mon, 7 Apr 2025 11:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744026505; cv=none; b=Rdb8V+E3S7IWgPgw8Z4larPwTTlKmn91juzvS5FlNHRCFN24SRUdH6BKq8NtTmpddxRlnIQuG3JTdObbUbqb5vKuoSpIQXE52BeF8Q6h+7Of1eh0QkdX9aOoD8B+BpHTeX68547B6yvS3twQ27cBQC4lTa4P3obgGqPL44UAydU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744026505; c=relaxed/simple; bh=UD2mxR6/R3uUsSJHesVe76pW4JLHqV49tIevDIORvAg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M5V81MQ5BZS4GVDm7tmHGx/+hTcy07bTXAueyYvYIv8gwaSqukVDVLe/bDAckrxT22y8rOeZV3ltuu/pHjMHbC3/nc0ZrxawPHdCidhoyEA0Uzobk+Zigr+nhTpoR2LaykMOTO64JzTFRwYgtUmnXYws1kZqtaEI4slrjBohEVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=azMp1/g6; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="azMp1/g6" X-UUID: 2e308ed013a611f0aae1fd9735fae912-20250407 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=BzRlhfZlWSb/lHccJiJkcS77zElOZqx95Po7yyZLtNc=; b=azMp1/g6uz6pXctBezli2eL6jYEaTpqYrc/+Ij8CrIB5EQFRiU9SphgXSBr02XIWwvffnZTx1hWxMdlW1/B0mtDgl4gIMr8zUaDnCGtMOL9FwhZnAd2SAzcb+Xlr0amlqHSZx3X5nPuYcaTlaePkxxrQDSuD6rXI8CR80PlYmKM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.2.1,REQID:3aa9b862-5dbc-4273-bc47-02a8f761aebe,IP:0,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:0 X-CID-META: VersionHash:0ef645f,CLOUDID:bbedc6a5-c619-47e3-a41b-90eedbf5b947,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:80|81|82|102,TC:nil,Content:0|50,EDM :-3,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0 ,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 2e308ed013a611f0aae1fd9735fae912-20250407 Received: from mtkmbs09n2.mediatek.inc [(172.21.101.94)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 479213022; Mon, 07 Apr 2025 19:48:10 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.39; Mon, 7 Apr 2025 19:48:09 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1258.39 via Frontend Transport; Mon, 7 Apr 2025 19:48:08 +0800 From: Darren.Ye To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Jaroslav Kysela , Takashi Iwai , Linus Walleij , Bartosz Golaszewski CC: , , , , , , Darren Ye Subject: [PATCH 00/11] ASoC: mediatek: Add support for MT8196 SoC Date: Mon, 7 Apr 2025 19:47:13 +0800 Message-ID: <20250407114759.24835-2-darren.ye@mediatek.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20250407114759.24835-1-darren.ye@mediatek.com> References: <20250407114759.24835-1-darren.ye@mediatek.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MTK: N From: Darren Ye This series of patches adds support for Mediatek AFE of MT8196 SoC. Patches are based on broonie tree "for-next" branch. Changes since v1:   - modify mtk_memif_set_channel and mtk_afe_pcm_pointer interfaces are improved to support mt8196.   - remove duplicate definitions in the mt8196 common header file.   - cm logic is merge into the afe platform driver.   - modify afe clk to return judgment logic and remove useless clk sources.   - refactor the mt8196 adda dai driver.   - remove the gpio module and use SND_SOC_DAPM_PINCTRL to manage it.   - removes CONNSYS_I2S related functions that are not supported in i2s dai driver. - fixed mt8196-afe.yaml and mt8196-mt6681.yaml syntax issues.   - modify log printing in all modules.   - optimize the header file included for machine driver. Darren Ye (11): ASoC: mediatek: common: modify mtk afe common driver for mt8196 ASoC: mediatek: common: modify mtk afe platform driver for mt8196 ASoC: mediatek: mt8196: add common header ASoC: mediatek: mt8196: support audio clock control ASoC: mediatek: mt8196: support ADDA in platform driver ASoC: mediatek: mt8196: support I2S in platform driver ASoC: mediatek: mt8196: support TDM in platform driver ASoC: mediatek: mt8196: add platform driver ASoC: dt-bindings: mediatek,mt8196-afe: add audio AFE document ASoC: mediatek: mt8196: add machine driver with mt6681 ASoC: dt-bindings: mediatek,mt8196-mt6681: add mt8196-mt6681 document .../bindings/sound/mediatek,mt8196-afe.yaml | 233 + .../sound/mediatek,mt8196-mt6681.yaml | 114 + sound/soc/mediatek/Kconfig | 30 + sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/common/mtk-afe-fe-dai.c | 23 +- sound/soc/mediatek/common/mtk-afe-fe-dai.h | 1 + .../mediatek/common/mtk-afe-platform-driver.c | 47 +- .../mediatek/common/mtk-afe-platform-driver.h | 2 + sound/soc/mediatek/common/mtk-base-afe.h | 13 + sound/soc/mediatek/mt8196/Makefile | 16 + sound/soc/mediatek/mt8196/mt8196-afe-clk.c | 729 + sound/soc/mediatek/mt8196/mt8196-afe-clk.h | 78 + sound/soc/mediatek/mt8196/mt8196-afe-common.h | 194 + sound/soc/mediatek/mt8196/mt8196-afe-pcm.c | 5070 +++++++ sound/soc/mediatek/mt8196/mt8196-dai-adda.c | 918 ++ sound/soc/mediatek/mt8196/mt8196-dai-i2s.c | 4080 ++++++ sound/soc/mediatek/mt8196/mt8196-dai-tdm.c | 825 ++ .../mediatek/mt8196/mt8196-interconnection.h | 121 + sound/soc/mediatek/mt8196/mt8196-mt6681.c | 876 ++ sound/soc/mediatek/mt8196/mt8196-reg.h | 12068 ++++++++++++++++ 20 files changed, 25414 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8196-afe.yaml create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8196-mt6681.yaml create mode 100644 sound/soc/mediatek/mt8196/Makefile create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-clk.c create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-clk.h create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-common.h create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-pcm.c create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-adda.c create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-i2s.c create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-tdm.c create mode 100644 sound/soc/mediatek/mt8196/mt8196-interconnection.h create mode 100644 sound/soc/mediatek/mt8196/mt8196-mt6681.c create mode 100644 sound/soc/mediatek/mt8196/mt8196-reg.h -- 2.45.2