Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1486853rdh; Mon, 25 Sep 2023 14:30:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqxsYy/W1A1uzfiJ0lUYIUA6CBcwwO2hZYJE6Cr8KTl94ORNjJfmqB8nmVw1lqud66qMyY X-Received: by 2002:a05:6a00:2356:b0:690:1857:333e with SMTP id j22-20020a056a00235600b006901857333emr7116469pfj.26.1695677446498; Mon, 25 Sep 2023 14:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695677446; cv=none; d=google.com; s=arc-20160816; b=H0juTB99jdfrjVcmYZHUBVDl9AEzhQOqa4JYTbRF8sGt6jJ8khYFgJRWryzDZD1PWu 7JDjNjaT/O5b5sEceBee01D5IroG219xFU1qAmnc+fmo2ZWKYwxXg/7GMFIREGhonEZ8 zS0S51eC0GLW1c6e7QPNRlXE0B+fMrF1ORAUCtJrF4tNDHv8h5fCOBRyDyNI26u1aodG YZ3vNiKucq26zypAvsqttcketWM+i8byPYfFH2Mss70E2a6TD5K3fcF8/USq+PqoKrLC 9vWkVM2xh6sWRIEDqCf+l5WNLPW8res4u+48vFj5q1feuMY7vwbZQ+05ZcA34SDfMDhl 6Kiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=NaqmMPfKXAOtSVjFcLvPHbWm7slgkGY5/ld8VMlAl3Q=; fh=TAVsYibxZFcqukZZrQ7p/tnhLQVVSFFtA+lW/l2KbRE=; b=ZRt6P1gy/cupsKL/luwlj49ihf6tSSYizBswY9Ico/jQTKADM0eyiP6cL3q+zzY6aa sBbOEWy1Vtiy7AQgfCQrtyiFpyQVaqC+eTLTlPNfvxy7lUQyU/OmQEjmADf1KpJuz4sd JsKSsVpOs3Czt0cKJxb9fm5FqMP/oEd7n7JVxVCZ78rZxTRfbO90/ctSa6LbbxWPTBOk aWSr4ySf1IoYyKVjWZaPadQxYUj9n57lOAVuNjLljtBvnxKEIpPqOgltgStlNZVqp6o2 GCdVfeMXkIBFggh26PFDZRq4e8Ihd0AMqphnrJim0vCdj8noYMWTD/BIpL1Ocphg8mgW 3cvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=tnJRoyTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id g20-20020a056a001a1400b0068fcf6fe22esi11235516pfv.306.2023.09.25.14.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 14:30:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=tnJRoyTQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7B51C80CF517; Mon, 25 Sep 2023 11:18:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233061AbjIYSSP (ORCPT + 99 others); Mon, 25 Sep 2023 14:18:15 -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-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: 7bit 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 25 Sep 2023 11:18:16 -0700 (PDT) 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 = <0 0x10200a80 0 0x20>; }; + iommu: iommu@10205000 { + compatible = "mediatek,mt8365-m4u"; + reg = <0 0x10205000 0 0x1000>; + interrupts = ; + mediatek,larbs = <&larb0>, <&larb1>, <&larb2>, <&larb3>; + #iommu-cells = <1>; + }; + infracfg_nao: infracfg@1020e000 { compatible = "mediatek,mt8365-infracfg", "syscon"; reg = <0 0x1020e000 0 0x1000>; -- 2.25.1