Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp638279lqs; Fri, 14 Jun 2024 00:33:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWurfZWC51kRoYYynyyGic6Al19L5OaQqlPZzfCQkXrFl2dYhqvZX+YCErkJ5VQIf4aeHLNihhOoPF2VPlU9NQMG9+UTqLDyvDVYJ/odg== X-Google-Smtp-Source: AGHT+IHeYf/vU35rnZSfK8GZkCL9vSnYN9ScE+HE/6pul+Bnt6FFN/PpH6rlIQRh3CirlewScaVc X-Received: by 2002:a17:906:2b0b:b0:a6e:f7e3:62a1 with SMTP id a640c23a62f3a-a6f60de6961mr102354666b.70.1718350409223; Fri, 14 Jun 2024 00:33:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718350409; cv=pass; d=google.com; s=arc-20160816; b=giXcyV4nc0kYhCpYM/YLRnAbVIn2O+VzZBJp9/gEeMS5DFlcVb6A1T/proqoGHsApT TIgFc9nHZ3AL8qJfF1W2J5vzWsSr+paT8vCDOC1TCGLUV35+gskoQzX6iLYvA8nb8iu3 vzMNkuqyMrc4f95nUqp9W7q2z8nhxANJfwA/esfMVEvv07w+rNAwRTSy6DEXKoxn4Y4x YHK6SYJhcMZmnMWnq+9kL8K6VivrToGYQV3WEoKM0cvVRlAgGNP6I2jtdX2Vnn+ZEmBx XfLHWHBRqejS6YDgcKgsCUzoBHD3hifC+MMSrVgxP+8LE2OsC/YZFeEvTaRZehENawh2 8ohA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=+HA5hs8xf/jy+EOJ7+HP5joeg+9+VSnSpeoghvWaVeM=; fh=UsW98o51685QIDHiRg4sLcN+VeBl2HYntj/9c/AwSZ0=; b=AUpiLje76+I2Sruat1qRFRfy2oroUBmGVY4/6KW6naTnqgCSAW/i9Oq/4NHw439jmN +/Yj6a6GZLFUy7UZCM9C1OHyd0pjzBDm668EFAEE9vd/+QFry6HnlpK/W6+SpEjxBPxB qYijLDzpdOUiZssw+YelXKXzR861XP+B/VVrt+/QajCFZXfz31WL5wQvGiVCvwKzgoWx 9XK7JeaplsZGGUsnTa0lSf51qTyhuQ2WrPPLi7yeQ+1hGc0nBLbVkbaykSVjGdDami5D VJAc38IS/0v3dMZYTBJqsAItgZI06AOyVP5NewNnGeY2/J6m2dndWxpazVm9Dq5zqzQh CVzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="LR/ErpUP"; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-214460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214460-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d21b11si150125766b.44.2024.06.14.00.33.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:33:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="LR/ErpUP"; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-214460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214460-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 27D6F1F21BE4 for ; Fri, 14 Jun 2024 07:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AFC218FC75; Fri, 14 Jun 2024 07:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="LR/ErpUP" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC9F218C346 for ; Fri, 14 Jun 2024 07:28:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350106; cv=none; b=NNbHOqecT+gd2ncLAmdnLSIRX6OTjJl+seQylIFC16XLx3W99bB1/9b0gFOAdJqdFmX5kLrsUq+pgROI9oDUGNtxFMqBGOL0qRTi1lVmLwj+FTONq6fx7Ux/7+8TDKTh3sRxyBDnt4zzk88BasuPIhp+Js/5haNLf5dTftS47Vc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350106; c=relaxed/simple; bh=A2PASoilqpYSI/+vuK5IOoXc5LlU1gMN/yOVGVWPN5c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eSL4QCEq6mx8aVYhuMPTfc+n1ofBLKyU8xg49URwog68OcGf8bdg5QJrlozgit1YnygWdbAClwmthhA9ug36YVvaIDtefr78QHok2SaNSMTt1r0HnooDRMM80/83EFRuoCmdWaJbOIhyxiv2xMKWJQrO9YbDWKfdkkaU4oFlLVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=LR/ErpUP; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-35f275c7286so1713855f8f.2 for ; Fri, 14 Jun 2024 00:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718350101; x=1718954901; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+HA5hs8xf/jy+EOJ7+HP5joeg+9+VSnSpeoghvWaVeM=; b=LR/ErpUPwqJNVHCenksLKkKuCCYBWBrLw4Hmc/okqoMF8914Kq5G9HqdwmD3jVQMtd pj5eloHVV9d4H4FJOzw05G0wbyJqLu5TbKe4afitQWf3jyJ7CmdhEVaWgdqI+k7nwpRc daGNKPqdjwjuQoa9AArWSROGWvmaxF0MCf+KCWJytSyndOAO0xBC5hVmtMUT+osjVOb7 TXXqHl2zBpNVJU5yl97FeJRYQtZVxVy1tZfK07fjxQUWycdLAdnJtNG8b+EewBlPmNux Zk5qpqSfnwevafUjUkW/CFT+PQ8z3SycH6JbBfKAQl1oOCQx7qnGeEvOkcueZrC6wogo 9RDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718350101; x=1718954901; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+HA5hs8xf/jy+EOJ7+HP5joeg+9+VSnSpeoghvWaVeM=; b=dEH9+4X+pOIszggbFsF1CRFJKpMhafsFg5ddzsKmEuSr1MV3fLMfHuFV0AnDwRM3Nc CAPO7RxvMrJBWLgvx5AK8e9EjSOCy/zbnIMu5lA0JiEyR5wAXo1Ps0hUHHDLGqVsFUmh k1YiOqXFjAL/TYiUF2NTlDmccx1qDXeheT+lXoCB8VcN03rYPaRwbsO3+Piy6kcF1uvD 2J2XERTmy2CZBJ2apP1ir+Wr9Jb75BVl5enWMungHdVvC06U2HurUu5IC4hR6nn5D6r/ DKUdxXwxDCTlwXVxL5a2vKFR+4lJcyJJyLFv5OmcuBDBuuTd1e/EbSKIniBmA7PmywV3 oeRw== X-Forwarded-Encrypted: i=1; AJvYcCVkUhLW8n1qUzLSttpQdOTXhSVNmGV0C408J0BRvrFxN8jrwDU6Ber97Kh0hU5/0E2CbWkeRdlqNae8UsmtgHgoKk8MKLt2oTgb+Pnw X-Gm-Message-State: AOJu0Yy11xo6G75A/9u1CMVSb/uBwVkJ4iNVHZ/mY6i9i4ViDfrlzA1N MzEnXd3n1el0mGYOfeKMkLRRsBtXnEJh7HoRcJ4udwW74VeAvm+KC4N5dcpl5j4= X-Received: by 2002:a5d:58f1:0:b0:360:7a19:4bb with SMTP id ffacd0b85a97d-3607a78237cmr1161501f8f.51.1718350101288; Fri, 14 Jun 2024 00:28:21 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-36075104b2esm3535773f8f.101.2024.06.14.00.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:28:20 -0700 (PDT) From: Alexandre Mergnat Date: Fri, 14 Jun 2024 09:27:56 +0200 Subject: [PATCH RESEND v5 13/16] ASoC: mediatek: Add MT8365 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240226-audio-i350-v5-13-54827318b453@baylibre.com> References: <20240226-audio-i350-v5-0-54827318b453@baylibre.com> In-Reply-To: <20240226-audio-i350-v5-0-54827318b453@baylibre.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Lee Jones , Flora Fu , Jaroslav Kysela , Takashi Iwai , Sumit Semwal , =?utf-8?q?Christian_K=C3=B6nig?= , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2430; i=amergnat@baylibre.com; h=from:subject:message-id; bh=A2PASoilqpYSI/+vuK5IOoXc5LlU1gMN/yOVGVWPN5c=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBma/D/PHaUW2bvmY9tCiVjihESjYpsC4I7oQKoqwB3 mHC8l7eJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZmvw/wAKCRArRkmdfjHURbUpEA CqbFqWc7ZVeRe0gmWB+Yo6vl14789DYula2eT5S04/NlyciCaGMqNlxwJyxvuDRv1Hjl6NISBksh4c pD9tKX6C1RlEy1NP+fsqXkUGXpLp1KJoyaDRhwGr7fo3Xdo8yo+AXmTydOnxaDqksESf92YAtgH8Vv ag+9kzYhtIfZN9d3nO+MnJBNhCXET+Din9J8EWqe1Wc+phmLXUBF5CwpsBny9fw5+5JkdJ55iqnQ8l NVJDLcmmDD2ErJWdZ7rDaoFLMWmuHfL3OuWvjsYl5j5K593cGaPhLRxCDfmKM3nqGM+mo4MOmDXlk6 orlvUwUehIxEo4pdlSU0oZ8VdoBLJ67jFlt7Hg+59Ziw1y6tdRlUg4DqmhzarAPMA9PvSCYG7ynbBf Uys2U/0V6Qbiw1bmveh8ogCKlDV9lQyYgZQ14QqEgkCX2amkoq1GiIMvcBBoW3PZCvVuS/D8kT4zIW 5yHt6P0LzRJNNT0REWz4Oq0rdlcsn5lRw/ciN+x/aR2hQQNmWWOSR58YhLGUOKn1dtyQDZm+wXraxs j3wGYPF+M0fX3Ktlx77mRdkMeQcnhIcgUWcjjSrzlKKDzDwDBgIRcXPxhMNDHa+tqc1X8M0Qgm5p6a qCe5OjUo70Shs8K1eV0v9l8cyyxv3wWJvSJSKo/J0MjWS8trl7OEMDIt4coA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 - Add specific config to enable: - MT8365 sound support - MT6357 audio codec support - Add the mt8365 directory and all drivers under it. Signed-off-by: Alexandre Mergnat --- sound/soc/mediatek/Kconfig | 20 ++++++++++++++++++++ sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/mt8365/Makefile | 15 +++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig index 5a8476e1ecca..c1c86ecc0601 100644 --- a/sound/soc/mediatek/Kconfig +++ b/sound/soc/mediatek/Kconfig @@ -298,3 +298,23 @@ config SND_SOC_MT8195_MT6359 boards with the MT6359 and other I2S audio codecs. Select Y if you have such device. If unsure select "N". + +config SND_SOC_MT8365 + tristate "ASoC support for Mediatek MT8365 chip" + depends on ARCH_MEDIATEK + select SND_SOC_MEDIATEK + help + This adds ASoC platform driver support for Mediatek MT8365 chip + that can be used with other codecs. + Select Y if you have such device. + If unsure select "N". + +config SND_SOC_MT8365_MT6357 + tristate "ASoC Audio driver for MT8365 with MT6357 codec" + depends on SND_SOC_MT8365 && MTK_PMIC_WRAP + select SND_SOC_MT6357 + help + This adds support for ASoC machine driver for Mediatek MT8365 + boards with the MT6357 codec. + Select Y if you have such device. + If unsure select "N". diff --git a/sound/soc/mediatek/Makefile b/sound/soc/mediatek/Makefile index 3938e7f75c2e..4b55434f2168 100644 --- a/sound/soc/mediatek/Makefile +++ b/sound/soc/mediatek/Makefile @@ -9,3 +9,4 @@ obj-$(CONFIG_SND_SOC_MT8186) += mt8186/ obj-$(CONFIG_SND_SOC_MT8188) += mt8188/ obj-$(CONFIG_SND_SOC_MT8192) += mt8192/ obj-$(CONFIG_SND_SOC_MT8195) += mt8195/ +obj-$(CONFIG_SND_SOC_MT8365) += mt8365/ diff --git a/sound/soc/mediatek/mt8365/Makefile b/sound/soc/mediatek/mt8365/Makefile new file mode 100644 index 000000000000..52ba45a8498a --- /dev/null +++ b/sound/soc/mediatek/mt8365/Makefile @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0 + +# MTK Platform driver +snd-soc-mt8365-pcm-objs := \ + mt8365-afe-clk.o \ + mt8365-afe-pcm.o \ + mt8365-dai-adda.o \ + mt8365-dai-dmic.o \ + mt8365-dai-i2s.o \ + mt8365-dai-pcm.o + +obj-$(CONFIG_SND_SOC_MT8365) += snd-soc-mt8365-pcm.o + +# Machine driver +obj-$(CONFIG_SND_SOC_MT8365_MT6357) += mt8365-mt6357.o -- 2.25.1