Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1882754lqe; Tue, 9 Apr 2024 03:25:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsJuq7omHEsmXc9SKPjBODBbC3X6H/T8RpTxx7AffgyVFD4OKvaOq4QaogFMLZnH+rQZ+BPtVYqaRQ9sYSBSzdjS9VQsUXdt5IIsvM7w== X-Google-Smtp-Source: AGHT+IFmmcGJ5Yj/ahmYuq2n0g6o57TuDDs5JQqE2iByj3ue+yXEYn/aQujtxlxahO3JOEhxwzgi X-Received: by 2002:a05:6a21:3287:b0:1a7:7bc4:e214 with SMTP id yt7-20020a056a21328700b001a77bc4e214mr5022713pzb.7.1712658343111; Tue, 09 Apr 2024 03:25:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712658343; cv=pass; d=google.com; s=arc-20160816; b=BDLzpo4uzM2a+fiklUAg3zYoQNtX93OsdfdlwStfCHsusBMrAfPLcLfDkKJbhbyyuz 0Xc7OHAnLDDOQnx4EwfuYF2Ytc89m+TgaaSoVvzHBFOsMHrf96y4cxf88eGtP/Q6HYNM 69/dudD2tHE4r0LN2dLvQp98Dge/GzVFNekC/OosrqJgeD+D0jeKaC0lFqBj15uIeNP5 IDex2PBXf52hseEqfWgvMAGpqwiOWb98nBGlg6AIq6YECfH4UUhYUjtOnXceVaSrkHQV i/x3COeHDcu9bH1+yCknXl9O2JQX9u5Q7J9Wq5IZDNS7s3DdC02s6OK6GHoTEjvoYjPL hQpg== 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=aXA58wmM/1Y74tcB7x8DpGjLJBYDsCSg2ksCsOzp/vc=; b=iQuF+1sUKjzJ2rx/w2gQ+cSyCzGGMVOGRUGyPmfggvXiNQOamHv/prnJg+abkFA0j0 JDVexXYE7CFbD7kZfAIPuJBnEMsBxXKRBUy3Nhrq+k5LsTkA1yPtLdD4uUsvAtiOvwHf Ty5aPgxtUI1LJvaT9hSa5uWvFwRT75ebclGed1iluJfpnpNnaWrutUR1O55KJUofa/6e 8v8qnrPZCaxt3PxkaNQ+lT+U7tHRdzUuU2ZFX0r7t3Hrd+xtJWFtpeeS1MoebzZReccY 2ehnntOhfEnq0qAQe0BLwAtNgYywPuvXcP3Beon7ddqaTn+1mYhk8jsea4s0pIPCBMTh 9vGw==; 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=oQyvvHSx; 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-136653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136653-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c22-20020a63d156000000b005df58c84bfesi8266481pgj.506.2024.04.09.03.25.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=oQyvvHSx; 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-136653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136653-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 02484B22B42 for ; Tue, 9 Apr 2024 10:19:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 369F01311A2; Tue, 9 Apr 2024 10:14:11 +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="oQyvvHSx" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 CE708130484 for ; Tue, 9 Apr 2024 10:14:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657648; cv=none; b=ZmpU58krf5a1Lh6cP297okZUSFtquvC7+X+nBAB0yVPVYrt1TJM7Nbxj5PUPZyt6dsE/ralr4X9p0XchE+Z5apEFXsV2B+H7QU3Zz0WJKYvb081HZuuqMkM2BKyYRTjyZdD5Ehw7TtiksW5s4w8fv5A/t7QONxyuKorzO9LjWLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657648; c=relaxed/simple; bh=A2PASoilqpYSI/+vuK5IOoXc5LlU1gMN/yOVGVWPN5c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kdXHKPK0xexMCczSjFLz3UTnAEpWmLvHSbPYfriuON/ohiHeS3ck5RNv+AVz24mU7/eFWZ4+uUhS3+kyX9sNziVrX0nE3eJvCnUWPr1SM+Y9ZGRMal7Uq+O2Ad/lzzS3BYQWTxO8Jvj6SvS47aT/eWnBwOoc96PDMKkSpAn3+e8= 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=oQyvvHSx; arc=none smtp.client-ip=209.85.128.54 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-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4165805e158so17698225e9.1 for ; Tue, 09 Apr 2024 03:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712657642; x=1713262442; 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=oQyvvHSxDjlHsS3pP6j8itE4QhB2E1c/21BvH4RGoahicPA2r6WbFOOKMY3K13QfAu f9Ur8lYwIr61pzR/GfQkNBIa/mTpcc+fzim5hWzvmi08yzmW7GmRpxFScgrP+7Y6pi06 /kEY+j0Dm3CWl+M1WtrmZYZHUKeEobkKlESZyX1nIouqWBiDn03hTKKh6Fm+MSRLVW4e F4vDxnbH5Vyq7YRdw40fH6q80Lkuj1A/SELjs5IN7rYqoFFWujgRKuSaQDaFPUiXsVwB qU8EIjLMG1mAGCAgXup/O0wd+6leCP+K7QrGwslAAED49aIdukoRwNQVy3c9udjksje1 Uayw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712657642; x=1713262442; 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=nvPQpgFi93vHwDHsad2Svx2iOYpQOUd+t+7sUterAC7NNgCTxuh5uueKuAG69ypjqz Lqic8eM3DheiYQA744LE3g57E3OOQBbHFxKCIzIIhJWRkY2QyFQg4NwHXLMc/H9cJw72 VCF99CZ1XFjpsACssCN9ndE6W9Wg2+WFIZjDF99alOJXUVwU04DrKB+O+d0fBfMXlXxa o/4hZrRxMGdpr8XqIk9c1Ph2zUyfnfAGNbhBFek6rvwR7QxafFM5997oy118aT6lGZex 2frooWRngeSHZkmzYtXCXTeM5GFSDh4KQbmNuRpctiYs7joNzIKEyELOmHaOwgWi+IKp 9+Fw== X-Forwarded-Encrypted: i=1; AJvYcCVFeHHR7sUBPZ3TfXsJj3evW9hckBAR05eWua2HS+d7PAWa0MP+0fvcn2BcTrRR/Y406yTWLzf15T3Khyze+jFr6LMNQ3mnj6GX9BDK X-Gm-Message-State: AOJu0YxNYgcujVOfgNGtE9sro5vJ4aQRmfGm11Te6+KZkdOSKpWnE2LM y7myWvY/bDROwbuPOjzVQeBufhEoUBdmvocYyq6nQWqaeqY73dwPxbtoWqsj1xWh7aNYuL6um4/ lRaQ= X-Received: by 2002:a05:600c:3108:b0:416:4923:1f2d with SMTP id g8-20020a05600c310800b0041649231f2dmr6513861wmo.30.1712657642630; Tue, 09 Apr 2024 03:14:02 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id r7-20020a05600c458700b00416b035c2d8sm1124149wmo.3.2024.04.09.03.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:14:02 -0700 (PDT) From: Alexandre Mergnat Date: Tue, 09 Apr 2024 12:13:35 +0200 Subject: [PATCH v2 14/18] 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-v2-14-3043d483de0d@baylibre.com> References: <20240226-audio-i350-v2-0-3043d483de0d@baylibre.com> In-Reply-To: <20240226-audio-i350-v2-0-3043d483de0d@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 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+MdRFAcsmYgBmFRTT2q1kS4mzy/NybWoAbX8cukntMOY4p5dixke5 /AoCuiWJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZhUU0wAKCRArRkmdfjHURctOD/ 4mrGmtiYDjbfFa+U1HcWmqlwWqpw5YBSVzqMwm0HuwtcYbgBYCvy7BsPTIKM9b/Eb0dPNPuvQUEXo+ +PwIkV1XZOqs+akViaabJZpjcym9VBidjgxZ8HiRJNOD6WnJ3zwAbqkLlb4LJGovQk85OeAGyJRnJo VxO4UgINR9o+b5qo1a878IOXYPjgsXw2rQUknZtFUW2SVtDM734Aij/VLxPzHobadPjSqhEGStU1vb D0j0KIFFdfdptvwGji4fPqvcA+MzJAmpbQiANyGpdlz7ZK15Lr1Z/QB5bsk5k5jOvNpePCnU8tvUlx 5mRjbtLL/qf0oMSsz+hAG5KtwJglafv/7bbsA7nBmEYejG9JNX34SrIO9yeRbQ9Br4UZknPO2592Ho oilZDSgVzk4yHg9hcqV+YdcY+WyvnHtjasvI9lHyMuuqox6fWkn/zwFrgY/fn+62T4Qe9e4QcPfR6A 8kBnD2UItlMldFJ9+YMFjzhIPv2KByIxNy7n6Ip0oLZzd3hmkjESst8P5AMocRMdcu7HjmaeodaCZE BD12RuC4m5ZXo7RNAo3UoaD5KatuyibL8h/PZT2t6zbc4/2YTLVvfJBz7+XLB23LQqNJoAm3enhBt2 YyI1mYbn/6r4TCxea0jX4kKyXJpl4p0/TSaUa4PlzBCJ4j1GZTQmnhgoWsow== 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