Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp854095lqp; Thu, 23 May 2024 01:50:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9EPeyq7UgTkTOTCdRn1PtGm8j2rSVCG+t2P3JWDV+742iotSl+c6Rh/EfhfhDeRqPSUnwueGEy2gPmPIOj/MDMPrlEq8+hzaMQoAgaw== X-Google-Smtp-Source: AGHT+IFwwe3OF93DjDiRhtq5aWulPVJOMJc3R6igNlxs2rGyUEQ7X+FtFuCvC/WkqMdVSrUkVeZN X-Received: by 2002:a05:6870:5715:b0:240:f33c:ee42 with SMTP id 586e51a60fabf-24c68e078c7mr4348217fac.48.1716454259413; Thu, 23 May 2024 01:50:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716454259; cv=pass; d=google.com; s=arc-20160816; b=0MPTV6Ke/jsnaCuQCl46CJDujKINCqxpiC3w3cl2HqGWWFvdsC05Ewrue6NR261eDb zJo/gFlFf/oZuqa07WTV15/u+ofKbvZqWmz4B6EUT3OWTi0PMy6SWg6juzw6ji/BxDEZ 2qGbPAJGXCyTEYu3x9FAByvsCYubJsFskcWmQyw6Q+HQMKpocoYoZOcfJ/BQKn6PUQcX uK+vh90kqaRAJo/Dt98rzBfq+os4620yVGqXAz1DngcKse/knWiAipoI/RKdFAS3mNeF ZE2lXma5Mp5olP7x3xtXu3/cMZXlmPSY8qoTKMPpVz+C4DjjJECJuPZbASnCq62enWza YCJA== 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=Qi1a6qRL/sSf88RkAxOBKeEEBw29sLy7LzarlapS72s=; fh=gGziUJsOAcpdEJziQRUc0silJufSp38gwyaDuUvTadk=; b=cf6U7lSznz0co2lDfB2FEEKJbZOduB0npqcDim1FEhsO/5T+ecgj35RWTkHue285T/ PhldKt9HSNrw/CY7LQmoUTFukkYEniFV1Buax3r/4WQIYaj5YBT/oyeI2udDZBF0NQ67 vCwGxDmj1ShchnYs/8TjCg+vMZuL6y2XCPc5RlUsSATanlme65uoITDvUtc2hLJuWlZR k907CsrUUAB+14AX+T1uCjQLkAvIk0OgcS6x+KwKTiuyq7l5RaEFmLVUHlsllD62/YVj wBizeDURsDEERe+SaGVFBXCPMPq2OUGciPlV3ykqfN1OR62q4s2aRiY8VhPfkHI+jMX9 rSkQ==; 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=lS0QNXGc; 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-187202-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187202-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 41be03b00d2f7-672136aa992si4653867a12.9.2024.05.23.01.50.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187202-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=lS0QNXGc; 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-187202-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187202-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 66DFCB228A9 for ; Thu, 23 May 2024 08:47:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7F0514E2C2; Thu, 23 May 2024 08:43:10 +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="lS0QNXGc" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 F33DE14AD25 for ; Thu, 23 May 2024 08:43:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716453789; cv=none; b=uSgAR8oqNZPxQEVutpoXKbSEb+vbyWYrW51eV7mKRVBtYUfhRGSRRRdMFx3JE0EBG6eTlyT5Pk/OZEVEjJGaT/Nr1h1LhBBeu/mWpg7Ze+jEmAVGdebFjDqVazu0EuO8mtzznIW/08yG/GwWIsnAVcGidZ4oW4yM65QM6Fp91N4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716453789; c=relaxed/simple; bh=t0tf5ggyvEv3KEhg9dzpup8fwcOHLyJsYbfkqMonRjM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bYhLNHA5F3WXGZyFHyyIIm282bcX55n2twhREpS0a2ygm5I1bAb2WEsEqEEvS/JQTTxunXqQSUQ3rBNWkCUt8emFs6zYQnK7vam963mAn78tUWCNo0/YpN0KZX+NGwxvxQq1tEoBOB8D+UAldrkeiZmG/vZaiiCdlP8majhi+Zg= 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=lS0QNXGc; arc=none smtp.client-ip=209.85.208.180 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-lj1-f180.google.com with SMTP id 38308e7fff4ca-2e72224c395so48259281fa.3 for ; Thu, 23 May 2024 01:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716453785; x=1717058585; 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=Qi1a6qRL/sSf88RkAxOBKeEEBw29sLy7LzarlapS72s=; b=lS0QNXGc2wIdVINAAKp/TM/AvlzsG8HGMrLDRD9Vqrj+Yj+kuZ1WedrdwJkklg3JZQ zO8d5t6DknSzYCw6BdO5Pw+YWPOAB7/JbK44sadMFN5cZUrVeVY7WlaSJaUtglV2I8W7 h8bEYRgzOrxlliMzdv3SD4A5ZJus7kyl0tWkMctlL8S3s/DDubzpEv46A6i9h2VFSsBR EJQsfh++prPqLMKFbOyeRhndcF8w85mfyBHRqUfpl24KEr77gfNUE2wPwC1bwJsZKdDT cjAtNvEbrggtecF/Say1K95J/YJS1mRqJ0Lij4vh75NWlWaC5Z9hRVdru+lbZZQ6OtPZ vfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716453785; x=1717058585; 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=Qi1a6qRL/sSf88RkAxOBKeEEBw29sLy7LzarlapS72s=; b=hPZbWvpoBIilHe11Xd8iLMrhoVsWhtewusihyPgDgXUdT+NavdQo62h282ufGNhi+B b63YJEa1UATdWLab3QLzvvPyW2H7+I8NscpracFaJ/O9GT/10HC+FHqeWQ72nEvdZYEQ PnItrxs61Je2MDccbbQu8QS22ouuT4C9pt5zd8jqluVvtLhm2YNhvssP2v7Q8kUo2ar6 xbGLrQlvHRSvl02GGf8Hv9L2nT3HkTp84/M/bkMRbY7KvQehujmDr6R5ZUyf99PHJY2L vzQVSPKZqDcWG8RsBK3GD4JLZlW73UTOUZ6bf5PUeEjvYDwFCDimAMVpoKaLoJ4wMARG 4Igg== X-Forwarded-Encrypted: i=1; AJvYcCUFtmI/b5/EU+lKtDl+AnS/XYtTGTjbnub1WZI8ZnrMlap5BEfTe+RRzsHgRwGw1Gz5JXkcHT8qLHG/5RdLSBurHD+JNrx3zs8Ejn/h X-Gm-Message-State: AOJu0YyawyR4FSNFFiE1WACL+qRw11vcONeQtDZjbyviDYdBrGUawcdD TLy3yF8+k/mhyZtU8IlQdFCf8nkJ50+jttneCY3D5MHCDkNTb6EBlOVb3radAyA= X-Received: by 2002:a2e:9e8e:0:b0:2dc:d2c5:ee9 with SMTP id 38308e7fff4ca-2e9495022d1mr25227941fa.2.1716453785194; Thu, 23 May 2024 01:43:05 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-42100f3e03asm18556645e9.17.2024.05.23.01.43.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 01:43:04 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 23 May 2024 10:42:44 +0200 Subject: [PATCH v5 15/16] arm64: dts: mediatek: add afe support for mt8365 SoC 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: 8bit Message-Id: <20240226-audio-i350-v5-15-e7e2569df481@baylibre.com> References: <20240226-audio-i350-v5-0-e7e2569df481@baylibre.com> In-Reply-To: <20240226-audio-i350-v5-0-e7e2569df481@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=2357; i=amergnat@baylibre.com; h=from:subject:message-id; bh=t0tf5ggyvEv3KEhg9dzpup8fwcOHLyJsYbfkqMonRjM=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBmTwGAc9/Ge7o5DXtFdzw8pFfAbUOoXwPsn9Na27uP 1jtKDmiJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZk8BgAAKCRArRkmdfjHURVhgEA DGnMGpkKmQMoej6HMPV795SB24cmQfeb3v9qbkuOFXsVg8Aiu95kwy+f/ezJ1B8ILYuHC5OE9kmpgl 9/fn0zECIn0xOivhVfxwvZZDULtsR80G4LXm2EuZZAXoC8GkdsnZCZ4PQ0IQ68eLfQ4N9rFP/pfqZR GrcimFwxFrH6Y9A2Pq3RAiTyNDpIf6qvTLHqelmm4fa2n67UozjZdWN1iZ9TXaVKijfEa1whxl1McJ 2jDpItBbjUXfU3ZIfgXkBjNc999wZJWRGt/PpAcKRXB00Zly3TxA9FzV76WVH2a9WS3UW52K6hVBxU SVRZBNCdQFIofWoFJosPtcV3EhBuv1t9zQP+bpwR9WQtaYGASWQg+04m3/4smtR63vWWkkcfVICtal A/75ahpKxtnDr2+fS7Bj8ZlQiO3y1sJ0KQN2MTkLxR/BqXz8HlER3UReX8HHhCKXG3Qevs5RIlCX2Q zFiwXwesYCxfD+R3WXk6GLPuc0TvGDq2hlWPm4IgLLfryBat+/rcLJ1+7BdPukxFMlkYtbxnd4va6B ty79KRZeFeyLiyGv/jV+UTWiiXKWxzYSz2x/Q8i9dYRYTkhGlp8Gt3N5Ke0JKYRboFDteQmcBhJ0Dk reBFU0Cotj4ggjTE5PhVDafEpxHq4x+4w10YK0LE2kBafEaKYhpum9VarC0w== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Add audio front end support of MT8365 SoC. Update the file header. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 43 ++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 24581f7410aa..0051d5613bcb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -2,9 +2,11 @@ /* * (C) 2018 MediaTek Inc. * Copyright (C) 2022 BayLibre SAS - * Fabien Parent - * Bernhard Rosenkränzer + * Authors: Fabien Parent + * Bernhard Rosenkränzer + * Alexandre Mergnat */ + #include #include #include @@ -813,6 +815,43 @@ apu: syscon@19020000 { reg = <0 0x19020000 0 0x1000>; #clock-cells = <1>; }; + + afe: audio-controller@11220000 { + compatible = "mediatek,mt8365-afe-pcm"; + reg = <0 0x11220000 0 0x1000>; + #sound-dai-cells = <0>; + clocks = <&clk26m>, + <&topckgen CLK_TOP_AUDIO_SEL>, + <&topckgen CLK_TOP_AUD_I2S0_M>, + <&topckgen CLK_TOP_AUD_I2S1_M>, + <&topckgen CLK_TOP_AUD_I2S2_M>, + <&topckgen CLK_TOP_AUD_I2S3_M>, + <&topckgen CLK_TOP_AUD_ENGEN1_SEL>, + <&topckgen CLK_TOP_AUD_ENGEN2_SEL>, + <&topckgen CLK_TOP_AUD_1_SEL>, + <&topckgen CLK_TOP_AUD_2_SEL>, + <&topckgen CLK_TOP_APLL_I2S0_SEL>, + <&topckgen CLK_TOP_APLL_I2S1_SEL>, + <&topckgen CLK_TOP_APLL_I2S2_SEL>, + <&topckgen CLK_TOP_APLL_I2S3_SEL>; + clock-names = "top_clk26m_clk", + "top_audio_sel", + "audio_i2s0_m", + "audio_i2s1_m", + "audio_i2s2_m", + "audio_i2s3_m", + "engen1", + "engen2", + "aud1", + "aud2", + "i2s0_m_sel", + "i2s1_m_sel", + "i2s2_m_sel", + "i2s3_m_sel"; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_AUDIO>; + status = "disabled"; + }; }; timer { -- 2.25.1