From patchwork Tue Mar 7 13:46:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163605 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 712E2C678D5 for ; Tue, 7 Mar 2023 14:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6cg9HCDND3GEgH3vKCid4qUViJxuJk258AZzVEc7UK0=; b=ocuEXCNKYBAUspbXS3Q6aR6pXV Ij/qCRGy3lSo+85W419niw4t9aNe+BSxSdbRrbhnWwoSTR/XpXUb/yHa7mNVOwDZtfkMwizkObTOT g1tt97Ir2djXTZmOfju9h6V0qO6DM87O5w5a8JIHEcc/BimWaUZJck+E0qOP1USBnB2te3mI9ARqq qkAtT3+bt28/JlfzHd4VInxmtZBdeSUi5DEX9nI+sR8ncG1toQO9iOKjHe27cKibBUp49PqDMKH/t xoQgs4nREOkcGGDoX1yFSScLMshkP8DPgeLbbbf7veOlc+wOC7obWynaIbItxQ4tzN2VC5TXsb8JM pZWwsjOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXsD-000awk-7f; Tue, 07 Mar 2023 14:01:01 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXeJ-000V3H-V5 for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:46:41 +0000 Received: by mail-wr1-x432.google.com with SMTP id l25so12192449wrb.3 for ; Tue, 07 Mar 2023 05:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678196797; 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=6cg9HCDND3GEgH3vKCid4qUViJxuJk258AZzVEc7UK0=; b=nZulM4LiZhCrWN5dGGfsaTtcvuOcFva+Mf/NyFyqPZ+Gx+ab5MgsgvBD+zUgRtwW7Q fmoScdgNja8tD43YAoyDJ+wIil6AZzk2fBFQw/7TzBDgnvKYojxVIJZYlAfAwaEVmnRd REMvRPG0fbxMtuCOk78751qpC9vSwX3vpboGBeXc7ttbEg6RyyZqXGj33xdScP7+ZHiY 4I/BCo1NqREKIPl9Z0zlBRGEKPKIXFpgiwH7FXCe+kS2JhZO8ECWxK0RI2dSiKW/onbY Gxd1di+TDP/dYWSwZ7BcGkcl256FfD2fUrBAjog4aceLV1nhvjOGmmeFnKZeFGCIs5M/ nQGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196797; 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=6cg9HCDND3GEgH3vKCid4qUViJxuJk258AZzVEc7UK0=; b=Yt5InnvfZtLT75xtM9HspjO+oP+iBsIjaU2Okmo/VaRsk7NR07PLvjrR+4Kk4oUWhg /gVBsFh/T4HozbPmaImS7hNvo7fHIPq+2AOsBr363Q3kHkkO9Qe1Y8T4HadMConybSi+ GMrgjlVl/65d+G+3Y2vUxN6dstZmH1AEwWD7mr8vZoQKK5vIpL9G4a52XgXgXovZaKZt Tsgg3+W7+bagwHw6pv+y1nrc9MkLxXonfSierMEYI9EVSTjRTvsP2RbYB9aSg0C2mh9D dqYZE9GU+MUyrU/10F4AQ18mtHmzMtn8eO8NcjtOM3RPgZnXvwVTKIYC2tHA0xpDa9we UhQA== X-Gm-Message-State: AO0yUKWi3JdOHXT51mHXN7knT6J6ipOfgvkGEdW9jbVrtPnLKvOmszz6 fQSoT7AKIu3HdZVPRl2MkILeEg== X-Google-Smtp-Source: AK7set/dC5yOlFU9rcWuAmivcfyv+LVau0QJ8iSiJD3wGphV4LPmgMYwQYC/Fb8yO+ZLrrDTR3Hk9Q== X-Received: by 2002:a05:6000:1817:b0:2ce:50a9:6d8a with SMTP id m23-20020a056000181700b002ce50a96d8amr7861387wrh.32.1678196797352; Tue, 07 Mar 2023 05:46:37 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o13-20020a5d670d000000b002c8476dde7asm12657607wru.114.2023.03.07.05.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:46:36 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:46:26 +0100 Subject: [PATCH 1/6] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-1-4f0c81fd52c1@baylibre.com> References: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Yong Wu , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=916; i=amergnat@baylibre.com; h=from:subject:message-id; bh=DtGGRXbyTxce1ZCliJaQcicHc6O5LZx7VMpDiib11T8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkB0A76McPWNiyzuoBC2/uH6vyhEJ5wZicabx41LHK rOI+CNqJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAdAOwAKCRArRkmdfjHURcEdD/ 9CYfOxJr4rB0ORoZN2tOKczuo9Ya0nmSJsbJWmZIXFhFrj9HIHgkF3L9D7ijqPVTtG4FuW6Tj5XFQI yx1coIxJjjYTeWy17sW9ZiBCyJufWv7CHomn8BDrcSkBq7r1QBMk14XYCYeWcMVdFkhxWKDY4b1uMj Gp1cA6SrTR0ahbqlmSRYpcdr7pASa2C2xPTKfYG0UCVXrzkBsoAfFbeX66DRn9fhCLghCx40klphm9 RFZg81Fz9vgymC9JyQ9+QIjjFSCYvRKcManlU9006mFiWp0OSXZSxTNxWZ07A3hWhGm0RNmUaGPLYf XMM/6GYLOZCdLam1FLSYxMThwI3kHQiWFOyz7Uf4db0q6MdETjbf1Ghxyyd+VIgAXAo1eZwQifeYU9 cqTF5RNPAfZoHFANsn1W67Yx4ea+vOLD2uVqO5DcBMjn+MhXm+WDUsQCj67+iN2enU+2Q3JQC5XLpT 3aPw6+kPZ+hWlvMxzKdmOylgcAa3fAEP9BC7pK2go706dYV28QPJvNuwmKI/m2DHw9puylUDezQ+RF MSruJX8UH9AlaMb6Uuf63XH6HIsH+YXgiPAWX2lZDV9itMJ+S/WLc+Ms+vOTKbWSogrSRBEMjQJklf aPU/Ziiq8VEWnfashNYuj5AMoTAsCBK9mukJXt7ddd/c2ZQF0C1Y7iGYsWsA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_054640_058013_7727835E X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add binding description for mediatek,mt8365-smi-common Signed-off-by: Alexandre Mergnat --- .../devicetree/bindings/memory-controllers/mediatek,smi-common.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml index a8fda30cccbb..d599a190952f 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml @@ -49,6 +49,10 @@ properties: - const: mediatek,mt7623-smi-common - const: mediatek,mt2701-smi-common + - items: + - const: mediatek,mt8365-smi-common + - const: mediatek,mt8186-smi-common + reg: maxItems: 1 From patchwork Tue Mar 7 13:46:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163606 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB6D9C678D5 for ; Tue, 7 Mar 2023 14:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SEf10B8VEiphcTb2B4uTjdUHx2WfwTpFd5+nhXo7zM8=; b=szxyumHU03t7VxW0L+bKsSvwfc lFuoSJUDWtPyKhTM7AK9jGHhKcbnu/RIfGUnq3RBpo0wPrjBRHr4psuMpVephYiR3N03gr1Cj8akx wdv6BHDpMC8cW1QPlDwbySlDj8B8oNhecBVOvZY2sRkslr4yOQfViY7FOB5TU57Spy47UJBUXHvin Ntdqv6dfG4xACcGC9vsKGAb7v3yacGLZVRWzjmhVyqrhqpcj6kchRqlzve750foIOggTs+xcrT0cG HT530clAJO6ERIo3hzrUvjrQZeY6O60k1vhDovOafZNi7S3KxBhhPn5vWOb7s36K21Y0gvYcDG8ka ++SAHRrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXsx-000bIL-GZ; Tue, 07 Mar 2023 14:01:47 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXeK-000V3e-BW for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:46:42 +0000 Received: by mail-wr1-x42c.google.com with SMTP id bx12so12146899wrb.11 for ; Tue, 07 Mar 2023 05:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678196798; 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=SEf10B8VEiphcTb2B4uTjdUHx2WfwTpFd5+nhXo7zM8=; b=4sOznHYviOoLd6Zd8EYiOJist7t8fD5mJ+NBE7qVWJmSnPsvlosTA2cevluMpj197D 40uGAHQCT3WlWo7+hpEtsQyqFii+aVMxXSnaN4McuYKRFQIPFUzdCot9KMUlGUU/CYL7 P2S82Eqp14aXOn2DfVRIZLesyAuzLnCcXUef3xy/LhoOE7LNiQ0uSWqy1bpZLcZxO21b uLlbsGY3OMMeWQIxRXNCujtOh3iItegi9gz70HoUKtGEemGoEadtpxqUjshuRz5x1BB5 QTwefKOx83KFVEIH1x5xe8NcP0iTuyVZxeYoibjrFdat6I2TzJwA3OG2pCJULhrD2Z7Y nK8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196798; 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=SEf10B8VEiphcTb2B4uTjdUHx2WfwTpFd5+nhXo7zM8=; b=IZGBdOouS2vYeL3re+CyL4EGw1a4fVq2xr0uB2jlHycdfkPSJ05tbN6xvsx4+My7Nv 93qHdVrr8eUXFGnkSswMKUSa8V/8XNRzM3sTS5hu7Uom5x3rd3QAvsZ29euIotHbGAv5 RNbUCocXwtj+uPq9WOyf6sBWt388aAYm87eOd0FiCEKwIzFREUapd+c5k6ZH7VBsB95J jPWOrRZl8ibhxOSy2iGTf4UYdQ6WCVM/r3YfQ55LHhsj65bB4yBVeUXiqnkeeafNpXel BtUSBhFZ4XHjKe0iW6XgqNYS+Swsr9NxONMO6oD28UcSpQnKCW+IiZ/1nohYpzre8pxY nZAA== X-Gm-Message-State: AO0yUKU2wNF4Q8JkViKHEbvXJTomG0+9w+7FeIdD1y0MipYTRiqgFW9U 2Y39UEJgH56ecg8xsVmq+h6VoA== X-Google-Smtp-Source: AK7set94hvOKIE8CibQ7R/8FK8dBtsN5U3aL2wjYc5zEKPs6aatdvCcFPZwezGFFtCpd4yZqHZdgrQ== X-Received: by 2002:a05:6000:104b:b0:2c7:13e4:2094 with SMTP id c11-20020a056000104b00b002c713e42094mr8912781wrx.42.1678196798354; Tue, 07 Mar 2023 05:46:38 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o13-20020a5d670d000000b002c8476dde7asm12657607wru.114.2023.03.07.05.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:46:37 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:46:27 +0100 Subject: [PATCH 2/6] dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365 MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-2-4f0c81fd52c1@baylibre.com> References: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Yong Wu , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=898; i=amergnat@baylibre.com; h=from:subject:message-id; bh=o5INfZQdHMAzRwteTSUE4GnwTkm9SQeKy4Fu0Y5Tde8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkB0A7aarELR02nYYjRryO3XRDB2eH+dFM6D6Rljrp qSQee5OJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAdAOwAKCRArRkmdfjHURVuiEA C5eGs1STXqlKB+t00zv5k0ryooUVKloiajkvpVhlXiUWCv+ZRR3p4+P3iw3XgbA2R295UCLSDNqqFg vrM+kCLl0Xr/hntRdHqI1kGcC1dPt81L2OtwBKTM4J0MnI6cEJ8pEmTzgR0aLzAzhog/2wwMJAWa3b r8q2bkaQd23d+Gi0rToQh3D11H+5hcufvkxl/nBzgHx+ju/JrgVR4XGW/hbb3ICocBl38XUL8A1iBD rGpJp0mo3EsZCEF9iUOYkmBr2OCkfHzSPQ4BNRY1ukkYZNEaLb6q6H91QdvWoxNPAq79d2c7Te938c L0ZjFXcwC7/vPf9DVQxl5EYO0GhAV+dL3wjdcKo46JDSNRdF7FY4iYbAFzyc8C8sMBVyR7EkMTbNQL EKajjbZQHNtQE31O3JEjY6aN8a39ImMIfi90OKD2n8xXBCa3svml0DVu887VxN7ujdWLHVKJaKRAlW rFFVwKWimqbz6P8z/Y04AqEkJ30TAx7moKOhNC7CTefFo9iPGzTkoO3NlQUVr0MCZjzGzFzCAmdNq8 fxI/TQ16f9uR8qoLQA4mWIRh3JPAZs3dTAfM8UmUkdSs4I3j9tXQs8BdgSu/f932KhU52OW5YFeFuf CL6gMd8ZUiZXDkpB6qboc61/wyYsL7Z5e4694VRm4jOog1FSiMor5i6SU5xg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_054640_434010_63AB71B6 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add binding description for mediatek,mt8365-smi-larb Signed-off-by: Alexandre Mergnat --- .../devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml index 5f4ac3609887..aee7f6cf1300 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml @@ -34,6 +34,10 @@ properties: - const: mediatek,mt7623-smi-larb - const: mediatek,mt2701-smi-larb + - items: + - const: mediatek,mt8365-smi-larb + - const: mediatek,mt8186-smi-larb + reg: maxItems: 1 From patchwork Tue Mar 7 13:46:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163619 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD4A8C6FD1A for ; Tue, 7 Mar 2023 14:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KxwMXMVHzfX0be9xjh/v8FRir/bg4Z2FDQF8dxvqQ/g=; b=Wr5MTtkPgG3VTIXgL+tmKn+99B TS5PNUIHf8Ps9Jm6CZ7hk4Pwy04lupb1q13aK+kiHj6EBNWlLjJwgu2jtjWCTNpQLKhTS1RCS1wN4 wMd5tHHgIP/BB2fyagSMcARjFxL1xeb8w6bg25l5D5meuOZgGauEBpr9AoojFsxALcarYDqs1NRZg Gt6LU8JPNRjKaGBlRzjPEEgYgERWa6lhyFauC4LipEWgi3dbKaYYFMQS6OoW8fdbn98SWYgi/AXMC BTJxTuxykZCEeZ8jXcO0OtuqUdmH01hCGzSoqZi+5afrkQrfKEyNf/KhEg5EZMBJR/yP7hiN/7YC1 X4JiAcAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXvE-000cSu-B9; Tue, 07 Mar 2023 14:04:08 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXeN-000V3l-E0 for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:46:45 +0000 Received: by mail-wr1-x430.google.com with SMTP id l1so12129354wry.12 for ; Tue, 07 Mar 2023 05:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678196799; 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=KxwMXMVHzfX0be9xjh/v8FRir/bg4Z2FDQF8dxvqQ/g=; b=5nT27x+qmjL5nvB/W87v9ODOkKtFTZyNzbIWkozBSPXT2hOsgHLmbfHIBKpmUvHlWl Z4qKfY3vTcSh5cayVVhsEhFWuTsXji6+24aEvugOMFlNyzuDy/cEAXFDovF1NHGakPp7 RulkzeOCub7tOH7BuqgTYV28oaOUGG0PtpjZs3TPHlXNvyjwJGABLLzdRNeJebO7IEq0 nvXZ0EWfI3FPPRwVmqLih1MV+M5k6Tewtbhef/dPkHk/6dOc3UDmEMdn79zX+ERrtOzY wgQo3jQoffKn6y4pRavLY91Zzhd4c32FdQE7Anv13x42fIK2sitDOanU3kO2kLUH5vCv HEEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196799; 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=KxwMXMVHzfX0be9xjh/v8FRir/bg4Z2FDQF8dxvqQ/g=; b=o9iO6HPGb6P1xcCRktwYw4dNLM6+xB6CBLVgPXbB37Tfgte8BKHXb8zN1Ewg9RNG8k IGtJn3vzf+HyepGCqHIDKQQ2WGqUTCkA2gNdtjXNAapC756DyviuPkKRajvVWwOPSguT cN3Zb5OaD+iL8LbgtFIKVWuiDqavdX3W15SaUCGiPszR3/9ZwW03ICCXr4ZgSmLh9Hq0 ScrhzmnWdomsLTei8jd+/i9YcV+LaLPUSxP+HGoDN2bui+L56MHoGn3yh8qk0Y75h/sQ KzbNpjI0N50G4sf5FcmNgi61wpkMvka1SUE/Z9qkTRmKC8PXRFMl1y9N69xZ0EzBrroE gAbw== X-Gm-Message-State: AO0yUKWmUR3aplswV6eMfpwNU8c2B8pmx4y9ZEpBb+1yy6/3Zg/ns7FN OrzDCv8EQgkuQmmoDMdHfnRYTQ== X-Google-Smtp-Source: AK7set8STd6s2B3fdSv7zGYq3k9bbGhTL6AoRZSF/YiaVRwon0fmmQFX7C18oa/Eow02IpFUa4f70g== X-Received: by 2002:adf:ff83:0:b0:2c7:1c8a:9183 with SMTP id j3-20020adfff83000000b002c71c8a9183mr8308888wrr.60.1678196799309; Tue, 07 Mar 2023 05:46:39 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o13-20020a5d670d000000b002c8476dde7asm12657607wru.114.2023.03.07.05.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:46:38 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:46:28 +0100 Subject: [PATCH 3/6] arm64: dts: mediatek: add power domain support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-3-4f0c81fd52c1@baylibre.com> References: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Yong Wu , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=5185; i=amergnat@baylibre.com; h=from:subject:message-id; bh=kZCaTFt0UdZkt9fKcKs/p0bzAc4OINn/W3im+K90/as=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkB0A7qva7P3Bh7A1qd+cuwNcGDeb8Wzyqd0IYjCiM T0kB8kCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAdAOwAKCRArRkmdfjHURbRRD/ 45q98Nji9hak/YdT3wIJhgy3uiIYGyWUl3xuNAbwsowRTdbL5bjIDAxZA7VXbL7St8XSOIC0eOPILa mS8cgcsI7zTnm9N08yH5PoCaq8wH3S7C3SlgoXvVxYeAfHHjaVElL0qKq96BaXeATqNU02d7pYMVFd w2exD/UDhnSzeAsnVtWSAV3jV0Ev33j3ZrVEHCCpMTBCiBPVisBg1F5waLF/jgU9tm0oc7LIMP4pS5 5d3KsuvzpaNpCG0SnviIuPWWJn7uPTtlBknqJ2UNqeoyDHirOxoT4fnf1Bbnr6n5+0/HL1SpgO+N1e OZs/U8GNHYA3CoF6lWxUT8lfkbe3IbXTyRAraqYU5r3rykIGLWMsl2bY6T/oecWQlY/p/mj2S5PtVV EkC9HWDFnpGv/fRBT+B4Kw2OFBxCoPvnVzBx84pbFILpfpXItUtY6nc7RZ9FESzrVLXjsyJm1Wwa1k XIYDjSOFoHpmq2EO9flWBjMPo/0apbj/81HP2/Ze31wou5yqrpBX8ozvu2Hi+EN8H1F6zQVj53xyQW LTpTpCx4zCobGKrWsAM25nwN+v43wgQsPNBHZVLWZSdPaMgxFNjmO8GA2itmfsHd/I1FNv//rgdisB Vdb1aDjh2hU6HqtCrl46Npql+mfWeGuFVxztqIh+yqQd5gqQ7y6vvfK2MmiA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_054643_521851_440A56C2 X-CRM114-Status: GOOD ( 11.06 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The following power domain are added to the SoC dts: - MM (MultiMedia) - CONN (Connectivity) - MFG (MFlexGraphics) - Audio - Cam (Camera) - DSP (Digital Signal Processor) - Vdec (Video decoder) - Venc (Video encoder) - APU (AI Processor Unit) Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 129 +++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index b5f5c77f7f84..67b375fe2020 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "mediatek,mt8365"; @@ -282,6 +283,115 @@ syscfg_pctl: syscfg-pctl@10005000 { reg = <0 0x10005000 0 0x1000>; }; + scpsys: syscon@10006000 { + compatible = "mediatek,mt8365-syscfg", "syscon", "simple-mfd"; + reg = <0 0x10006000 0 0x1000>; + #power-domain-cells = <1>; + + /* System Power Manager */ + spm: power-controller { + compatible = "mediatek,mt8365-power-controller"; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + /* power domains of the SoC */ + power-domain@MT8365_POWER_DOMAIN_MM { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>, + <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMM0>, + <&mmsys CLK_MM_MM_SMI_COMM1>, + <&mmsys CLK_MM_MM_SMI_LARB0>; + clock-names = "mm", "mm-0", "mm-1", + "mm-2", "mm-3"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + mediatek,infracfg-nao = <&infracfg_nao>; + #address-cells = <1>; + #size-cells = <0>; + + power-domain@MT8365_POWER_DOMAIN_CAM { + reg = ; + clocks = <&camsys CLK_CAM_LARB2>, + <&camsys CLK_CAM_SENIF>, + <&camsys CLK_CAMSV0>, + <&camsys CLK_CAMSV1>, + <&camsys CLK_CAM_FDVT>, + <&camsys CLK_CAM_WPE>; + clock-names = "cam-0", "cam-1", + "cam-2", "cam-3", + "cam-4", "cam-5"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_VDEC { + reg = ; + #power-domain-cells = <0>; + }; + + power-domain@MT8365_POWER_DOMAIN_VENC { + reg = ; + #power-domain-cells = <0>; + }; + + power-domain@MT8365_POWER_DOMAIN_APU { + reg = ; + clocks = <&infracfg CLK_IFR_APU_AXI>, + <&apu CLK_APU_IPU_CK>, + <&apu CLK_APU_AXI>, + <&apu CLK_APU_JTAG>, + <&apu CLK_APU_IF_CK>, + <&apu CLK_APU_EDMA>, + <&apu CLK_APU_AHB>; + clock-names = "apu", "apu-0", + "apu-1", "apu-2", + "apu-3", "apu-4", + "apu-5"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + + power-domain@MT8365_POWER_DOMAIN_CONN { + reg = ; + clocks = <&topckgen CLK_TOP_CONN_32K>, + <&topckgen CLK_TOP_CONN_26M>; + clock-names = "conn", "conn1"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_MFG { + reg = ; + clocks = <&topckgen CLK_TOP_MFG_SEL>; + clock-names = "mfg"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_AUDIO { + reg = ; + clocks = <&topckgen CLK_TOP_AUD_INTBUS_SEL>, + <&infracfg CLK_IFR_AUDIO>, + <&infracfg CLK_IFR_AUD_26M_BK>; + clock-names = "audio", "audio1", "audio2"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_DSP { + reg = ; + clocks = <&topckgen CLK_TOP_DSP_SEL>, + <&topckgen CLK_TOP_DSP_26M>; + clock-names = "dsp", "dsp1"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + }; + watchdog: watchdog@10007000 { compatible = "mediatek,mt8365-wdt", "mediatek,mt6589-wdt"; @@ -592,6 +702,25 @@ u2port1: usb-phy@1000 { #phy-cells = <1>; }; }; + + mmsys: syscon@14000000 { + compatible = "mediatek,mt8365-mmsys", "syscon"; + reg = <0 0x14000000 0 0x1000>; + #clock-cells = <1>; + }; + + camsys: syscon@15000000 { + compatible = "mediatek,mt8365-imgsys", "syscon"; + reg = <0 0x15000000 0 0x1000>; + #clock-cells = <1>; + }; + + apu: syscon@19020000 { + compatible = "mediatek,mt8365-apu", "syscon"; + reg = <0 0x19020000 0 0x1000>; + #clock-cells = <1>; + }; + }; timer { From patchwork Tue Mar 7 13:46:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163618 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D6F1C6FD1A for ; Tue, 7 Mar 2023 14:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fiD1jGNfmWPjdfgXlaXHwcnvI1OsqFwof1Wcy6nVM2I=; b=V/LPHb96ZOQw4pArVIQrupd9NB gNL3f/5b8/1lL+tSwnee2ggmulIegihJVYedtm09sy8y4pZcaEXCPXmz3AL6e6IzKnOdBjd+xIVV/ O81xnqDol43YEsPULl5ijB3WUPt1YwcOda6zB1Bl8jumzDKm5cz4TSxHG+cQnpPRiMCrBpvVTeJR1 EQBb2prb9f4riNBzq8tlHfj0Cf+BDtzGmKfwhKtPTSRcVL3GtwlfOb0rrx0IqJwMUVlYQkmAuBkmc D/J+nY4X4HpUJPBDzOYB8uEhRclK7tfF/VyLHicAycRWtF1GOit/M7FZItoA5CZi7VB+RxBpD1nB4 0sBr4ZRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXvA-000cRX-Nf; Tue, 07 Mar 2023 14:04:04 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXeN-000V4j-EP for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:46:46 +0000 Received: by mail-wr1-x430.google.com with SMTP id bx12so12147000wrb.11 for ; Tue, 07 Mar 2023 05:46:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678196800; 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=fiD1jGNfmWPjdfgXlaXHwcnvI1OsqFwof1Wcy6nVM2I=; b=sF/Usli7kkaMJg9fqNQR2RN3tExZk4+8j2vwRRHt99Ct3EPd9Cbi12QgJcdkDQqsMV BENMPAuud2wUkK24443HBtEjc48OkthydjGXsUcJJ4v5Oa2B0IXAxgSoJizz5RczacbZ XPCNML3KhL4ODv+VYt0NeGiiuvO41WR1STG3+sRTvNTtTfZ+hR1kNyiPJMroSBQVwsZJ g6tsoPkvecMJDvMCj1pvgsbOSz2xXtSvAxWcM0dwDhePufD3XhFWB/KSsRn/1bbvhLAQ S5Lj2X9mDdve0K9a0O7L0s8peJU4s2cSaFrYS2H2DqXkA8oNwXXBeZjSU+nikLb0abtl TvpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196800; 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=fiD1jGNfmWPjdfgXlaXHwcnvI1OsqFwof1Wcy6nVM2I=; b=n6gpvApYtCvr0c04gFIvPaTAeZhinS+KBRptkKgYhayVMaLWsZ6rSnzOBJfKljjhpE 0/nUccYSWfMcCUOiv7TZZUME0W2G+OU7CCCtSAQuZLJNQhLq3uSTyBRkhfizQJZB/hEV 9niPqPpDh4wsH09TvDs7vSdlbRnTxPfK9uYijbh1NbLEqndA5+fCHuVZO4gwqLnH5IeY 4zm04U+IC3zRynZWZnjET0eUQ66e7EcgA3ComI7GYi6WChNx5cY6SBZAUvs3U+J+R3UP P3X4+EIb1u2E87V2dNyXo8WU4xkRSp3i77MiUcSYByWFXR7ATOjIj3dXeaKWxO9v5DaD 9eTA== X-Gm-Message-State: AO0yUKWbG4k8FZDUmADrtUjh5wb6gr/VCuY7IR9jB1qOT/s8FwRFihqC EL4GB8+Kcf4t4tJf9PufZVNGag== X-Google-Smtp-Source: AK7set+4LLeARHWHlJ21fLaACA85Yg6NVqJ++jzgrq+VvBOyk7RHx/KY6buV77yrNV3twwbOh2HC/g== X-Received: by 2002:adf:f448:0:b0:2ca:e8c2:6d29 with SMTP id f8-20020adff448000000b002cae8c26d29mr9228862wrp.7.1678196800148; Tue, 07 Mar 2023 05:46:40 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o13-20020a5d670d000000b002c8476dde7asm12657607wru.114.2023.03.07.05.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:46:39 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:46:29 +0100 Subject: [PATCH 4/6] arm64: dts: mediatek: add smi support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-4-4f0c81fd52c1@baylibre.com> References: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Yong Wu , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2234; i=amergnat@baylibre.com; h=from:subject:message-id; bh=8Utuzf8vnkkr4HLSj6tVwRat45+MSGUxWim3O+x8mr0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkB0A7ZT3peawJygVrc7zIOmQK2eu2/NkUJKAXx44O NcT7aE2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAdAOwAKCRArRkmdfjHUReLVD/ 4lojGGLFnZrYGkcB0rp+6wSSgVkNlIDEaTmRBtCB08m417n1STAtRI3sET3VknYAqzm2C+8BVxWTd+ o6eWt09OTxUMAT/mxZ+29GbNkzqOZKv8EVjbAnFnCWln2+nodvXZDsE1VOUnj/ll0OqNtK2D8wB0TU Z6DSNZy3VvraHoly8gz96u+CW0ZP3ImikyFWWJB9kB5kkGZ1xORMMKeMsC0tQgj2Itu0gbmk6QO+n9 enmIm55j4rdDWIkrRNrjmdrtClXq0W9BoTvPLkeX7anmciBdhBpzG91V20N0fpwIkwEESGZn/apQ0V tnyVVVDXlaFfV87ynZlS5Zvv+0v8f0VwsN1w79IS5zrYvPD0WAg+l8miSCDfrnfOrTCG5FzzhctCjh kC44gf5kRimqk/TK078eJUVjuJAADC94j6A8/ZgzZpXu8NPpWrik6ERWcKaYwPRCRJXEYdITIuKmqB QBS6Nhlt6K+yBEluIqcwJC73Q3un6DfY9FgyQG6VRTTkMUi8wY+m6Ahx4INcEq/5YmJzGBjD3xi/xi A5N93wRyiCGoe9VKJKRrg/qyYi7MELFU/M4N3aprDR8hzqGEZguetV9IasqmOEjGkvYE2j8pgTBVfC y7EINJuyoh4sKZKMXU9SisziJTeRpDxAZSqIoL8jTy956zaGRaZBh+NdhJCg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_054643_570199_F7626BF7 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Smart Multimedia Interface (SMI) local arbiter does the arbitration for memory requests from multi-media engines. Add SMI in the MT8365 DTS will allow to add local ARBiter (LARB), use by IOMMU. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 67b375fe2020..61333800ff4a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -324,16 +324,19 @@ power-domain@MT8365_POWER_DOMAIN_CAM { "cam-4", "cam-5"; #power-domain-cells = <0>; mediatek,infracfg = <&infracfg>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_VDEC { reg = ; #power-domain-cells = <0>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_VENC { reg = ; #power-domain-cells = <0>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_APU { @@ -351,6 +354,7 @@ power-domain@MT8365_POWER_DOMAIN_APU { "apu-5"; #power-domain-cells = <0>; mediatek,infracfg = <&infracfg>; + mediatek,smi = <&smi_common>; }; }; @@ -709,6 +713,18 @@ mmsys: syscon@14000000 { #clock-cells = <1>; }; + smi_common: smi@14002000 { + compatible = "mediatek,mt8365-smi-common", + "mediatek,mt8186-smi-common"; + reg = <0 0x14002000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMM0>, + <&mmsys CLK_MM_MM_SMI_COMM1>; + clock-names = "apb", "smi", "gals0", "gals1"; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + camsys: syscon@15000000 { compatible = "mediatek,mt8365-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; @@ -720,7 +736,6 @@ apu: syscon@19020000 { reg = <0 0x19020000 0 0x1000>; #clock-cells = <1>; }; - }; timer { From patchwork Tue Mar 7 13:46:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163609 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6166C678D5 for ; Tue, 7 Mar 2023 14:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HL0iDIXLsQAcI9AkmnTSM5zr0OsSGj+qBQeOWTRy/+8=; b=gUjBpM99RZu5qalLo0heUCFG5W +xyg6lkX/ceSxMSBM3iMar0RzoAb3oLMxEd7zTnfdLnztMeD2tbJEwjw2FTlzoP1LSWLhWapiRMR6 tIqQ1N5h2RSCbtZgPzRN0YXmLEKehopKOOYET0IfQNCONSun9qZCYyIaTrBVRAHcLdgbLTCxBGaOD hwKZuQSZ/bi5uDG/E3HCNzJdMclTcm4+SfKtjK5OpG289y5ZKzWfYY6FHlPvAyvClfTbXDWw2MxCS s7XcZjkAA9tqavCY0gJpRJiHij66NWi98qELMmzo4jZxctZ1Sg+JXEgGujQHCENT6MTn4GXgok8pO Ua3rHCkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXtb-000bdy-W5; Tue, 07 Mar 2023 14:02:28 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXeO-000V5r-GK for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:46:47 +0000 Received: by mail-wm1-x336.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso10482284wmb.0 for ; Tue, 07 Mar 2023 05:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678196801; 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=HL0iDIXLsQAcI9AkmnTSM5zr0OsSGj+qBQeOWTRy/+8=; b=qMMcV4xeNepot/rQWT0Too3dn1ySQorZarygkDn55w8Zy4ynNWxVgr0YXoYR3e1Jhq 3h35eC6acHD7KiiMVwH3/rLR8VZuhxknKCeqRo0jKqbRjbOyVWZCWcVk3EZLbZGcR97o yV6Px6PHHc9KS/8QshBoe+S1DOhlQGuScdsXhtRxA1nls3BalEBE/ipRoCIdtfj4OdVe 0SgRl8R6lBYr+60OF4WBCzI76yPQI4zwamXiy8Go9wMSMFBZrwtGvSo4biO3oVOqj3BR FxA1gEKzDyXq6tOiXp+/e1RVpnJ0mXdLeSpsA3oRRPhukMLJaCo0UZDVQtYqJPeZPt0W fIjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196801; 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=HL0iDIXLsQAcI9AkmnTSM5zr0OsSGj+qBQeOWTRy/+8=; b=jPVy97BYY4V8FvCtW7/0/P6JVoyGg7d7c4XwALl2jXbiIF3lcbo3QB2nf9wPvUxN13 1j+oD1GrRyDmUy7PdzbJg9P1GjutWNoEP81FYSIGU+ETt3BH6a0RCDZGlWJ6pp+A9F9i ieDSoATTsDOuJjIoiMiJoZedOz6w7AREY5YIji0maFU7u8bfWet5gs46OfiWRWg02wRC X0k7xcjriRYIOMkjV3d2BAe7c7/P+0ijDWHRVBve5Q9XQd+eWO/LYXKJW8OQ4mYxU1Te W6ZU6x7wYtP5g5L1X0X30seK3TmkPKv6K1uM2NC3gTrt45S6WqufAte1VAUgYpYE+vuN 5OqA== X-Gm-Message-State: AO0yUKUSKvbO0FE+c2itjnKbrHtxKsd3osH2G7yU0KFXaydjjozKK784 +PaP5NYyIH/53xEw4R16tfx+qA== X-Google-Smtp-Source: AK7set8zDOX8b86nHRX4AgYzVr2J1YveECRdXXtVhEz4fn4MnJ3gPNYNuaIHo5+fS59Q6xPr6yGklA== X-Received: by 2002:a05:600c:3555:b0:3eb:2b88:8682 with SMTP id i21-20020a05600c355500b003eb2b888682mr12861938wmq.17.1678196800908; Tue, 07 Mar 2023 05:46:40 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o13-20020a5d670d000000b002c8476dde7asm12657607wru.114.2023.03.07.05.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:46:40 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:46:30 +0100 Subject: [PATCH 5/6] arm64: dts: mediatek: add larb support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-5-4f0c81fd52c1@baylibre.com> References: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Yong Wu , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2839; i=amergnat@baylibre.com; h=from:subject:message-id; bh=qbp237msdU+trOSTXH/QRPFc21+mI2NO5dacDzMLh3Q=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkB0A7RY2Eu1Vsstyo9EZBmvxVNAXGU4eCVVO9NKUb RbKMUBmJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAdAOwAKCRArRkmdfjHURTIMD/ 0SlBZKOawWa2ITMV79h4OvYMNbPD2N5loSX22BXgssDKlMTqTpROMXcdDRngpwRY3Z/BkTDJ0aMU4h 4Fik0UmDuN/OS38NvWMCr9DVH/OlE//+e2RHSMapKekzs4rCi3c5PjiydkhyppvI530biL2GSWzjy6 T3UysY1XzjvDcIuypOiLCdJhiZvHl09zPRVFbptVvi3ie3h+A8AQCwFU7Fqs8pidJXJWTQSCmfn6a/ PL5cn752yH8SOJKVlxcA6vdJWQj/ojLc0kPTxF5I/XNHzmGCvYDuVw2mkVzplRyoRVPPG/Hg8m/wGE AnPByhCY0s+QIQmt+YFE+WFHJ1xetsyD+QbbY8bAH885FM751JzxVJeY7OBhRt9C2FBXWxEJfQyeqT ruhyTxoA6H8ohWjuromFLCsGlkDeCI3RTTj2ArCUeQRr4xXQEuaLVos6iYV4pvpp+mne7gcIQaPnyT RiWe7c7Ua0rFd3L3QUv83pr1tDVg3ODGkCAIBtj5cWWe082em64KpWCQyrVWKgw9W/bKxTOx7kILop 9wjPTNEkyK5LGNMaAdwkos9PZ2jQqOH0HCBC6IJd70ahzjGDEEtvgojy6tt0DmEZTTDQOi63tTPrye h9ZNNgml3mXf+TOTif62ZSfVFjBsJIQbPkLueDNbRDAUj1tQJwswrblJEnng== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_054644_572119_83BAF424 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Local arbiter (LARB) is a component of Smart Multimedia Interface (SMI), used to help the memory management (IOMMU). This patch add 4 LARBs and 2 clocks for the larb1 and larb3 support. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 61333800ff4a..db0b897f58bb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -725,12 +725,71 @@ smi_common: smi@14002000 { power-domains = <&spm MT8365_POWER_DOMAIN_MM>; }; + larb0: larb@14003000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x14003000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&mmsys CLK_MM_MM_SMI_LARB0>, + <&mmsys CLK_MM_MM_SMI_LARB0>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + mediatek,larb-id = <0>; + }; + camsys: syscon@15000000 { compatible = "mediatek,mt8365-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; #clock-cells = <1>; }; + larb2: larb@15001000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x15001000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&mmsys CLK_MM_MM_SMI_IMG>, + <&camsys CLK_CAM_LARB2>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_CAM>; + mediatek,larb-id = <2>; + }; + + vdecsys: syscon@16000000 { + compatible = "mediatek,mt8365-vdecsys", "syscon"; + reg = <0 0x16000000 0 0x1000>; + #clock-cells = <1>; + }; + + larb3: larb@16010000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x16010000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&vdecsys CLK_VDEC_LARB1>, + <&vdecsys CLK_VDEC_LARB1>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_VDEC>; + mediatek,larb-id = <3>; + }; + + vencsys: syscon@17000000 { + compatible = "mediatek,mt8365-vencsys", "syscon"; + reg = <0 0x17000000 0 0x1000>; + #clock-cells = <1>; + }; + + larb1: larb@17010000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x17010000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&vencsys CLK_VENC>, <&vencsys CLK_VENC>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_VENC>; + mediatek,larb-id = <1>; + }; + apu: syscon@19020000 { compatible = "mediatek,mt8365-apu", "syscon"; reg = <0 0x19020000 0 0x1000>; From patchwork Tue Mar 7 13:46:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163608 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BF7ABC678D4 for ; Tue, 7 Mar 2023 14:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HzSPP7tKpmDgMygbv6FfzcwtKqtIWlRKr/CY2KHoGGA=; b=W+jrYjz8Px98pLpG3V9umO3n8b AYxxNArIfws3F7ceZEzPU9c1eYPTYnKf7mZKtAoxhdX3OK+bu6O8tGeZIA2YcEeAphWrPJfVOcR3X 5Xn2PdYPlFcTzMtideFaLrrht8B31DeOsfYjuI+pPJ5++CW3umeiT8obEMdKqY//n8WFBxpd27Jtq dBTNivXqjVBFKAadDc10DUCWh8FDlm40F9fbKZ3sWeZkEPOzh+1YW3fTIIf0YTfYxM043zPxHZR9P 8AyFBU1rX+b++D5ewPOWvz2qftiWT1CxURGNOgyrpF8IbwERyZHwiqoJ61i85rComM0BmbBgch5N0 abgDuJ2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXt5-000bLt-23; Tue, 07 Mar 2023 14:01:55 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXeN-000V6E-Nc for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:46:46 +0000 Received: by mail-wm1-x335.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so7229174wmq.2 for ; Tue, 07 Mar 2023 05:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678196801; 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=HzSPP7tKpmDgMygbv6FfzcwtKqtIWlRKr/CY2KHoGGA=; b=Z7ODCrFGa6AJ0GtvhIqso5qyFzfQ8NsAQww90erwC3wSHzob3XEBgT8+zkwqAAORlW ZZ8Mt2vbk9KeWXzHXDWyAvj+6nFDZ9x/8qZZmAMKci64xOmal08AK8sJXsrFg/BgJ39h d9ct/pBRpECWYRlubAPXty4ThI7dXf91+0nq32uzEMwN3oqa/0B71B8fAMdakcpatp2u Y6m9prXwx6kg5mYWnjSq1RjTpicRxTvKQbkX7TwYVTJExKScvio6GZ8p01yks0k99Biy vLHKnJoTXbfg7bluVCIeZtuX6aqdr4MK0R8LgJxiA0PizJgGpBySg+8a3O3QYTJ78uMY ckCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678196801; 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=HzSPP7tKpmDgMygbv6FfzcwtKqtIWlRKr/CY2KHoGGA=; b=dsLQXKhAibx0rd21YOr/U82wGIRpw1mC7C+k3DP9857tgDks1j1QO7MjwL1dXNvXfu g+oN0MG9gP2NY4I27zb/O89kqB1CuqDwV2Slxo4bKiSMbEASBhyV0SK1rUiE+qXll9sn vYMVYtqx4bG/5alXIJPFX5iD14/PTc+XtJabvsDb+irtEYgkEWCRDJ+RYrgKohKjIGBr 6qw9/ByCl7QwtUtWak8wYEZQbOdrGBol0eGABOfyIhwNAQmmWeFqTf9am6P0Y4+ml0Hr 6xJ58cZRzghvMMI9XP4mXsllSM9Nru8VY9pR++Y9t70tl8R9jV2gghq/zBAcjZNvghGl 0LoA== X-Gm-Message-State: AO0yUKUxTPGxKAHbNZ3uUGMxzbxNYpxYqKsFU10d02qoVYGk7JdwCSsV jaGhPugl0U5Jv+0zVt2zycvBjw== X-Google-Smtp-Source: AK7set9A80XTJaBJRZGJ0NFVW6xppDxlmeTE+Ac0G8GrQqsRd4V/lXRbnCKr6tsJrhN0QVT2zxdufQ== X-Received: by 2002:a05:600c:474c:b0:3eb:2de8:b74e with SMTP id w12-20020a05600c474c00b003eb2de8b74emr13385054wmo.27.1678196801725; Tue, 07 Mar 2023 05:46:41 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id o13-20020a5d670d000000b002c8476dde7asm12657607wru.114.2023.03.07.05.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:46:41 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:46:31 +0100 Subject: [PATCH 6/6] arm64: dts: mediatek: add iommu support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-6-4f0c81fd52c1@baylibre.com> References: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com> To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Yong Wu , Krzysztof Kozlowski , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=969; i=amergnat@baylibre.com; h=from:subject:message-id; bh=r7GkCkHYdd12Bt7dFmR03rMsJTMhNcidJ4FTEsGU2Yk=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkB0A7CDFByNdlviQNt8kE2Cw9wrh0z75ZvZpOdikX kFOxAUGJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAdAOwAKCRArRkmdfjHURYKWD/ 94UAAbnpoF14YAwi4BJcFcufFpJmrKQxWeHQnzyW4ELK2wbH5OUOcak4XA4TcLSl6Re4TlCu8DQt4w UFvzMALTpLAF1FHEXQ+Z4bQJ5Ejcg6vsv3EJogtvguC/TBwl6AsJdrEU5QBaULWNdOJ+zRsGAW+Nmy PXDGOcIhPUFMoEU1TOoQiLhECf6n+/JXr+lUskFw5+nSnUtNmW7UgB80CHgbkhznncOdoVaGhSO2n7 8XIVHMWUyfrcNOCUElq+HzYFjo66T9Mc/EyoEgBFdKJA6kxzfOnigv5SxTRGhYa5wOLp/8aQhUVNdw bGzseWg8NbAas+ViGqwB4J/+BKCvLLWbFcmccTg6WZ+L2MeLqO6iLwMrz7ejVOIhVawn9nMvU0OUjY MYDM0V/qS/OMaeD3Ecj5NRBKWIKD2H5tkgVg5NFEBPsVrqx/85DLfIQzNuTorMzniJTzlxFy5a8JO6 h1uV90ov460FnvMbPkuEiBrtrCyNdVHM+TGtlifHNIVevMZL6u9pwBsjLQspfH5giaiRzj4XvmijZW SeulrzQrnKx0FUUV7r0ATeH1BZmuQeSakFevKCi7cUoxxZldlKL7h5FO5m9CqUmA1BZgtknWttAIEv JFgNMvi/ylZqDx4vPPib+Yq//xdlLY1pMP7xolKZYzFf03OxSA7+OKiWiVcA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_054643_852562_C6395C48 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add iommu support in the SoC DTS using the 4 local arbiters (LARBs) 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 db0b897f58bb..c713471c59dc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -456,6 +456,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>;