From nobody Thu Nov 14 17:03:35 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5864CD3431 for ; Mon, 25 Sep 2023 18:18:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231645AbjIYSSR (ORCPT ); Mon, 25 Sep 2023 14:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232521AbjIYSSB (ORCPT ); Mon, 25 Sep 2023 14:18:01 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3DC49B for ; Mon, 25 Sep 2023 11:17:54 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9b29186e20aso196643366b.2 for ; Mon, 25 Sep 2023 11:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695665873; x=1696270673; 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=NaqmMPfKXAOtSVjFcLvPHbWm7slgkGY5/ld8VMlAl3Q=; b=tnJRoyTQJM/rLuk2CE0NEqg05Y0re8HYlwjWZff29FQMEk1sFFdH91IXVAR1Bs3j4G CNs/XrNwRPml7iXEwJe6jGeUokzFMMK3YoJ7KdUisVSbrAomteolGl7kgQgnFI1XP899 N6ecAwNuC0jfOXXTv3x682xPYdnePWPMDkCG2jkuWVh+aQxpWqgN1u59VPRXtRTaD1pU n63ATV0ciiysEhppB9Nvh4BYNgSV8lv0mSRAAWXC5UV6AmJxkcI7rSp6Sww7pQ8LNLJj f5mKsrvNFyMPoUpkr57eVzTHL1UWJw5Lx6Hn4SjLAiyixh7iJVnWEu1SKeqbDiWTJoM4 aRrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695665873; x=1696270673; 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=NaqmMPfKXAOtSVjFcLvPHbWm7slgkGY5/ld8VMlAl3Q=; b=iwoeR4NGhxahwBMw8g+uM38umKxabkhpuTCe1wcFMnlsIHWEIZBUU3JqodjqA1mpgu xAw7ReXoYCQlg2NWF6q7kOhlL0p0V07+jO1xrGzVvNxlGkhszhK5XP0nU1umh8DNjxsj N4x0SKcVtwcZREsXqVrxy417HCh02TRR5uvv7J4wulL9Wp4smXt05h0BFj/PBU7ITif5 FILiWHd01A53cIasdog9FOFxyxWC5iTpsyLcoPK0X5adsiQGoccTM63hpz7NUn4jNa/y NUAmiyaYMaW/ELlhzeaPuBhKwiifcUfRErjyRS4I3/1lfNuIN34Bkjt8vtXRxTVADC8m kLcw== X-Gm-Message-State: AOJu0YxHmJmA5MMaB5NG234JX7f0K01/NP/wBSDDHNBjX4borFS6qsUr KhErZStxBsmAq40M+eNHETFnyA== X-Google-Smtp-Source: AGHT+IFxzjt0ed1oiSWTrzfayOWn6SKtv3vQPmnoX8XFg6JSjmVqbuZx+3Y90wckx0OT+kjZeilupQ== X-Received: by 2002:a17:907:26cb:b0:9ae:513a:528b with SMTP id bp11-20020a17090726cb00b009ae513a528bmr8432278ejc.36.1695665873235; Mon, 25 Sep 2023 11:17:53 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id j26-20020a170906831a00b00997d7aa59fasm6793962ejx.14.2023.09.25.11.17.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 11:17:52 -0700 (PDT) From: Alexandre Mergnat Date: Mon, 25 Sep 2023 20:17:41 +0200 Subject: [PATCH v6 7/7] arm64: dts: mediatek: add iommu support for mt8365 SoC MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230207-iommu-support-v6-7-24453c8625b3@baylibre.com> References: <20230207-iommu-support-v6-0-24453c8625b3@baylibre.com> In-Reply-To: <20230207-iommu-support-v6-0-24453c8625b3@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Conor Dooley Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1094; i=amergnat@baylibre.com; h=from:subject:message-id; bh=9vmrSAYQ/OJGejgymOj9rq18l0jyb8olHnhsKnJiPYw=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlEc7Fj1C08D9uWY76sqRpCZwA3sp773KCNObftJqZ Fs9XuXGJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZRHOxQAKCRArRkmdfjHURTJHD/ 95xhPf1bWof8l+Jc4t2D0Wyk7Htq4NwdZDFDBUCTIeyyJYjTdPXumlZAMdZI5JCZH1b4axEjdOEXB4 o5eaGyx6Hm20412uB16q/KxliblLI+mi/FG6cPHCJ8GiuEHWHdzcrH0vLRzr38x72dQKoEWQBVtBHR VKPvHuV8KWebyFt+QxFLMeUDfsojemOuJDOL34mnmSufu8XfKLJM3Fs3mv3+6bZya8hvyEZbPWZae6 orUW1XRiKmtM5NMTTwUlgJDM3uwwKSCm+hCNgvf+UlySjiNGhm3e5olJ4Ss514Jb6y6h1a1pHYgSiD WV13451VfZZo0pZ/TWAUPNhtN0ETsF+V+yDD0uS1zYs/l/A42oDSIWX8oLWw1hGiGCnBkL55ZDgRxs mUAvzPH2bk2JE/DxKhA6bHLgF9Ho7wNnZcmZwG4uWJXFUd4US5uucRsAAv0USxVEjWxVpVnWLpozbm nq3cAm6HnVlYpJCTDB8ArODMbmF+EdYebP+C9bnCaUVY0J9tBkowRBrLpPL+0nA6SE9wmFjKi9cU/i peVev0hH+2rLNlTp7tuzz60ob90gVU8rcqjaSgYqEIakXXrksAuAh6H/Uww7vcBJo1dbq3pL7IYDhg k3lifliO+iCkTBiZ+KMyiEJ26CUGXcRB061PY/aQ/WyhNLoZqeMbN253uMGw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add iommu support in the SoC DTS using the 4 local arbiters (LARBs) Reviewed-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts= /mediatek/mt8365.dtsi index afcfa1dd242e..24581f7410aa 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -471,6 +471,14 @@ sysirq: interrupt-controller@10200a80 { reg =3D <0 0x10200a80 0 0x20>; }; =20 + iommu: iommu@10205000 { + compatible =3D "mediatek,mt8365-m4u"; + reg =3D <0 0x10205000 0 0x1000>; + interrupts =3D ; + mediatek,larbs =3D <&larb0>, <&larb1>, <&larb2>, <&larb3>; + #iommu-cells =3D <1>; + }; + infracfg_nao: infracfg@1020e000 { compatible =3D "mediatek,mt8365-infracfg", "syscon"; reg =3D <0 0x1020e000 0 0x1000>; --=20 2.25.1