Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1321926rbb; Mon, 26 Feb 2024 06:02:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0F05wTlcG3q0IWeyMr+FsZ3+sp5qVTbf4Iz9L9ZePIVW8Yb+bweWJBejaLA3r4Nwtabs4VSdMB5tDEI3/f8DvVHDWC9jMsctSNh3TjA== X-Google-Smtp-Source: AGHT+IExROFMlN/hG3cCkN20NUbOuwfNPnCCG/ov5gDniI7kaObv0XYBYO57eppNg0mmbOa+Ph5+ X-Received: by 2002:a05:620a:444a:b0:787:d516:d28 with SMTP id w10-20020a05620a444a00b00787d5160d28mr2514903qkp.14.1708956154878; Mon, 26 Feb 2024 06:02:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708956154; cv=pass; d=google.com; s=arc-20160816; b=zTlMYbvGLaB8ByWyvbvnfKGc3Uc02UWqwDqCJk8RQjqPq/kVWzuFSxo6NeD25QoD1t ZJgnSPHr7W0x8aKpqAZ1pEiJho7itzrwgaxZT2HFg//N4/OkiBjTDBYBv0sED1tKofOQ CPy/FXyMIZBeMjwfwMPlvUIWpIOrWvsChG//E9XxFWvgezX9X8a5uvvpt/6tys0feULj EYAE7eKvC9VgX1dITj+Af+hsHYtjWWjXLwAw3b9d3lbW6JRAVU++MVZ94e03M7clwiLc gnvXw7BiwuVK7SVw/0S2/BrZC+jyNLBum/uDLAisDL6vS9aD9EQcu4Il/OSCTv1KV1tj Vc4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=1kXm5bhwE0RIFKLS+klmit5NTgkdIxAJX8Ps6s9DZUw=; fh=eNQ2dmONLMoRpBkc1oVhnHOi37+wR/TnE6dmDBwLT/g=; b=zblmBcwcok8iCGys89x5PDubAOn38DbK7PdtzOx+Ofzh1mRoKp5pWweTR76mZQOeoM n1cp6SGDIS9+/AGexGzjzDD86cdVb3sPw4/iAlFfgcGUsbxcjOOv/SJqDNJcuAai/z82 Ob4GuL7iNFrLLcha1Z8WYKVaOjYwtH+Dug/Pte5WvXBxl55gnZvTfobfLdb2LiHZStZ2 3ycjfQIWOR/r7TXEcV1FLH1pNCv7qEuz49VDrDG/sC7pWIE2Ugv4PfjiRUZ6GL58zb6p txgax111RuM/6FPq8P+8+zRxVylIp7HKeG5bs7H0mGiH8nDGSZI8FCWK4AthDCbrvJaf VU5A==; 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=gsTSHnHc; 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-81556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81556-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wl13-20020a05620a57cd00b00787a7cd51d2si4993116qkn.159.2024.02.26.06.02.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 06:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=gsTSHnHc; 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-81556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81556-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 715F21C25D2A for ; Mon, 26 Feb 2024 14:02:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A71E12A170; Mon, 26 Feb 2024 14:02:12 +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="gsTSHnHc" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 797FE129A60 for ; Mon, 26 Feb 2024 14:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708956131; cv=none; b=spmFW9FKgqBd3nl4wZTSzF0YJVQsriEhyJjXzmZXT8R4YFeI9S3gjo4FUI//bTrWthjyloETBQ4oZUsnt6KXwbi4iRbyBPszkhnIkCvTx01D+lsKSzKDYjVcU4WPW/LSC1xuiq0b1j+0h33cjQ/PBIN83T6tMr6dgXLWZrXBAr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708956131; c=relaxed/simple; bh=zP1cF1mgMLFjF9Qj79hddJ9+2MDw+VU8qnc4hJ6MA+c=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Id5BAABlatkx5unULuYi88eUUcOI4NE1cgt9U9d2qhx2TvW4QpzQ374EuVKViCnNhKqpWKSAWufDpBhl7xHeMQiImc2ZQhyEcnVK/rR6Ga82uGVBcD0yRj4X2KuzNOOkNdo0DRf62OO1FM53suOGlGtlyAWK95mqN+jt8kwgEjk= 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=gsTSHnHc; arc=none smtp.client-ip=209.85.128.42 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-f42.google.com with SMTP id 5b1f17b1804b1-4129ed6f514so11403995e9.1 for ; Mon, 26 Feb 2024 06:02:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1708956127; x=1709560927; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=1kXm5bhwE0RIFKLS+klmit5NTgkdIxAJX8Ps6s9DZUw=; b=gsTSHnHcq+yu63JFFV4z7mtKcWvZUv28sZy9gBgjJDadQx5q9/w3OI5Mil+3RXU0PG igRmp1hjri9W8Gtk7TxSss8IkkFeTMwE9seSZfeWxiO/MaXUzyk/Ce5rze6EXIbpu/aO ASvy3+0vgrx7/siV+SXpTRqK2jRoJ6zElz7vkxAoAPehOSMmdPZb3K1k15Jf21oPAMAh jsTm+zrGc/N47Rp/F1CDYuTdQZCHUEHoNe2YU2zQYQ7SqI2SZm6h9a88oGd76Qxldoz7 u5u/MIXvririQX8StAiGf4ncj06j9du9yR4bLR/1UuVfUIQWl+EF52F/fZ+AEOa8BR3c 6oxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708956127; x=1709560927; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1kXm5bhwE0RIFKLS+klmit5NTgkdIxAJX8Ps6s9DZUw=; b=qpBvzOC8wQkHJ98kKXWHlyZHelAkiH4cmiKwCmd4WoWkPwaWzmOXaONGpTCPNE6vjJ OFAW6wV99e6Oc72G4ML3sEnLRTrg9Q3Wefdpxaf6NzDKBCjOtvOnlC3GSs85RjpVciOp NfMA1V1phHXK6jjTbg/z3nn3DdK9u7GWmv5I68ENpdoKJaotG73T8wSUDhD55WUUrEQL WoMQ9MWnuxZMWn3F33uRNQNbxwItcx/LbDlxbTA0hwi2sbcDD9wygPd4rbNYFHKvmk7/ Kha7dBZzlzgbkcUx27a6XiI4DTyQnWDc3FmZ6k5MG+I+/j317sjPTzwhkJ0YEasK2227 QXnQ== X-Forwarded-Encrypted: i=1; AJvYcCVodx+q9hJCtVjqnnXVKfvzBGqcLId77QKbNS+C7DuD5P5upbty3ZA6/Lc2enONNNnrxxXxEwWDXPt3l9K1kDgvgcENvGyVJ/nrIayK X-Gm-Message-State: AOJu0YyNYAH64Z5Edru8YZE/bCveO7/QLxyJkBcXVgxfb8ltPqMUqrkZ bDE9hxklD5oD8jKH5T2uz0Uo4kNraPmSQailCMFJih94/Cgpazyo8EVyT16jfQA= X-Received: by 2002:a7b:c459:0:b0:412:817c:364e with SMTP id l25-20020a7bc459000000b00412817c364emr4917841wmi.36.1708956126570; Mon, 26 Feb 2024 06:02:06 -0800 (PST) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d33-20020a05600c4c2100b004129f87a2c6sm2838475wmp.1.2024.02.26.06.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 06:02:06 -0800 (PST) From: Alexandre Mergnat Subject: [PATCH 00/18] Add audio support for the MediaTek Genio 350-evk board Date: Mon, 26 Feb 2024 15:01:38 +0100 Message-Id: <20240226-audio-i350-v1-0-4fa1cea1667f@baylibre.com> 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 X-B4-Tracking: v=1; b=H4sIAMOZ3GUC/x3NQQqDMBBA0avIrJuapEZCryKljMlUB9ookyoF8 e6NLv/i8TfIJEwZ7tUGQitnnlIJc6kgjJgGUhxLg9W20da2CpfIk+Kb06ohYyJq78k5KKDHTKo XTGE8CH5IhoTfem2vXkkw9Wmf4U2YlvkQs9CLf+e+e+z7H1s9ilOOAAAA 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 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 , Nicolas Belin , Fabien Parent X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3544; i=amergnat@baylibre.com; h=from:subject:message-id; bh=zP1cF1mgMLFjF9Qj79hddJ9+2MDw+VU8qnc4hJ6MA+c=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBl3JnboXUAMF+d1Pz/oxJlDp69tLo702vaeLTtEvz3 Zs54U5iJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZdyZ2wAKCRArRkmdfjHURf7dEA CMc6/wfi/2TzT8m4kxe9uHkWXnmfVn8cMY1YQ/FMS4X65BJAh4PE5cSprnuKt+voatzOKr85v3ee7w cVEroPkVPySozdENDx/SoDfTd5A4upnm10iuMq6gccPYG/Aah23WwOXsuaKqtNjrkdeEmfyFoTxfu6 jk+Grduq0B8+5hMC8OKKu6Vd33+oEblbSK5/0mvmtK3ztTt6wWq6TDBF/0KkBeVGXIQKy/1C3jHV8I vlIqSfEmHOT4vaUunm9J11XyRb6fIiVJ6cndJ+vi/FbBH6okKqufmwFuBuL1TdxSZyQkU0BY6M6BDY fZDD3k0Kgoux87c4tgFJJISAVFLCqbKyWTpvLc0lYNphbICyl50RnLyXrDOiOd7rJK7gfy5Gmgg6Qy DJxUROkZF0nCvpncUQFPBNVbrIBNbXNAV25DDG+b2BiZeBwnkRsT4b1ehNK8cqg8lpkJylY28Y3msl rD+88VGE2PDXtuOlfan1IGfcwOAXyJLB2lYbc6sty2yWMaNM0uVctSwHvsRKReA4EOvUxnQyGaauqg Y0q3s/vBKUORMb0RUABnpUoTSC2v875meO3LhXRrlqw3HFt5TJM1YtP4BlyIRTPyIucWiJTTqJKHAe U3GiLPL+dK3MeZIBisMzUY3gT3jDvsIuQJ7fco/aWeWkwUpWEYfZ+LVdlnNA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 This serie aim to add the following audio support for the Genio 350-evk: - Playback - 2ch Headset Jack (Earphone) - 1ch Line-out Jack (Speaker) - 8ch HDMI Tx - Capture - 1ch DMIC (On-board Digital Microphone) - 1ch AMIC (On-board Analogic Microphone) - 1ch Headset Jack (External Analogic Microphone) Of course, HDMI playback need the MT8365 display patches [1] and a DTS change documented in "mediatek,mt8365-mt6357.yaml". [1]: https://lore.kernel.org/all/20231023-display-support-v1-0-5c860ed5c33b@baylibre.com/ Signed-off-by: Alexandre Mergnat --- Alexandre Mergnat (15): ASoC: dt-bindings: mediatek,mt8365-afe: Add audio afe document ASoC: dt-bindings: mediatek,mt8365-mt6357: Add audio sound card document dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC ASoC: mediatek: mt8365: Add common header SoC: mediatek: mt8365: support audio clock control ASoC: mediatek: mt8365: Add I2S DAI support ASoC: mediatek: mt8365: Add ADDA DAI support ASoC: mediatek: mt8365: Add DMIC DAI support ASoC: mediatek: mt8365: Add PCM DAI support ASoC: mediatek: mt8365: Add platform driver ASoC: mediatek: Add MT8365 support arm64: defconfig: enable mt8365 sound arm64: dts: mediatek: add mt6357 audio codec support arm64: dts: mediatek: add afe support for mt8365 SoC arm64: dts: mediatek: add audio support for mt8365-evk Fabien Parent (1): mfd: mt6397-core: register mt6357 sound codec Nicolas Belin (2): ASoc: mediatek: mt8365: Add a specific soundcard for EVK ASoC: codecs: mt6357: add MT6357 codec .../devicetree/bindings/mfd/mediatek,mt6357.yaml | 11 + .../bindings/sound/mediatek,mt8365-afe.yaml | 164 ++ .../bindings/sound/mediatek,mt8365-mt6357.yaml | 127 ++ arch/arm64/boot/dts/mediatek/mt6357.dtsi | 6 +- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 95 +- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 47 +- arch/arm64/configs/defconfig | 2 + drivers/mfd/mt6397-core.c | 3 + sound/soc/codecs/Kconfig | 7 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/mt6357.c | 1805 +++++++++++++++ sound/soc/codecs/mt6357.h | 674 ++++++ sound/soc/mediatek/Kconfig | 20 + sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/mt8365/Makefile | 15 + sound/soc/mediatek/mt8365/mt8365-afe-clk.c | 455 ++++ sound/soc/mediatek/mt8365/mt8365-afe-clk.h | 55 + sound/soc/mediatek/mt8365/mt8365-afe-common.h | 495 +++++ sound/soc/mediatek/mt8365/mt8365-afe-pcm.c | 2347 ++++++++++++++++++++ sound/soc/mediatek/mt8365/mt8365-dai-adda.c | 355 +++ sound/soc/mediatek/mt8365/mt8365-dai-dmic.c | 475 ++++ sound/soc/mediatek/mt8365/mt8365-dai-i2s.c | 901 ++++++++ sound/soc/mediatek/mt8365/mt8365-dai-pcm.c | 298 +++ sound/soc/mediatek/mt8365/mt8365-mt6357.c | 379 ++++ sound/soc/mediatek/mt8365/mt8365-reg.h | 987 ++++++++ 25 files changed, 9718 insertions(+), 8 deletions(-) --- base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d change-id: 20240226-audio-i350-4e11da088e55 Best regards, -- Alexandre Mergnat