From patchwork Wed Apr 5 08:06:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201442 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 4F340C7619A for ; Wed, 5 Apr 2023 09:18:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=i1tAWjJ7kCO7A1N+N34bgnhQrbeQhXvPbfMOP0JySkU=; b=OYA9FsFCeq8DFc KgQ96G2J/ig6Vuio+0VXMH+UhCMf8tiX6m0Ptt9d4RAF/3w2H4vcwoZ3Zo5fIGHkKa/u5sR96Uuar Cj1XigifGq0/eUbqENXwk10x4znL7gr1awnfubeH2uspOnem5K6Cptcexw0D6V7igUDvoO+f88hyd ANmnc3q2J1J50FFDmyPDPS3Ip7uh8XQZOr+VB47k2FNY/scNcJVRmsaqgCIzduVMsajDNGEC7ORsY 1/bv8MZk0iWjXQXmfx/sL2MtIC0e5AWQGxsIQSD/i4a3EJ+0X+OqEiIx0ZnohR7vL8guA00rwSWHs K9wH8GjIMTK6fFp7v1NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjzGk-003v7F-0j; Wed, 05 Apr 2023 09:17:30 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBY-003iup-37 for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:06 +0000 Received: by mail-wm1-x32a.google.com with SMTP id m8so9465378wmq.5 for ; Wed, 05 Apr 2023 01:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682069; 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=yJjfak4UG2kt7LD+AoFzMT7Gsf1sr+ZsaQfW8YlBLvI=; b=OCkUFW+mhgiZ+PUIVfbs11cDivBeCORYii0nVLvMvW3OS66SS8BoYvtzb5hRrt39i9 reXTYadSz03nF0fYGRndHClKcTqdG3gjmOifCrOWHgF7R5ZJR/DMwSQCFMxERYqoLtqf Hcyq358sdsshob50bGFiPmc2rE33JPFa/zMXK4g4ZjJ7IPo3isi/7OtMAWvt8pg88UvL WZTJ8IE2I1QGSUCoYrNbkj5pKYy1GIGyVUYVOuVk5yD+DZO6HSlPDIMRjftSIAxi6a+6 w9DhcEsDMS5jnBj5pRmYphqjC4gIpH5YejJYmTnJRUJSSHoIZNLxRWcG2i18NaRLmAXP CbTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682069; 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=yJjfak4UG2kt7LD+AoFzMT7Gsf1sr+ZsaQfW8YlBLvI=; b=yiV73cbcGbEuc/918AmsRJ/9pQb9OnQUfUYMd1+verOCjyd/8s9lPSn02saQPul3HI 1DYnOBkMTZtN1tb+gt6RmBD9n5LmdZD8vLuQdgAsad03rwBOjhUT/jVjJnl73V7baa1B h5sa/PQ9k8ZrluNMDKMLqPii5UbrwOOM+Gcf3GaxqEq02u9S2TfMLc8OubN4Cd6+WA1F YGD1Udk47yF9QXNRs07cT9ewt+20VXIxpVilLOWiDda2O5BDplaxu4+uTeWzs8bNO2St Ww2GceQ0pLhBIPNlieZaU3QLiAMMJyeRqTzDjssszwbNZnPEfUxIpBTWqiMYrbPKXfyH 8JJg== X-Gm-Message-State: AAQBX9ekgXewtXnLSJ5uzE2PGCcD1omPSMM1Q3UNlg9tjnUV6jrtGMSC medn4fiWgpek6uoad5dFF4RWwlgDAnX0FbubmeM= X-Google-Smtp-Source: AKy350YW7AQIPOkgBErc/VmRz3hML7NF7jikubeOIa+PdbQN8TrAl5wHjxnD7FkQ/tilP6etDizoPg== X-Received: by 2002:a7b:c8d7:0:b0:3ee:6161:7d98 with SMTP id f23-20020a7bc8d7000000b003ee61617d98mr1192258wml.16.1680682069557; Wed, 05 Apr 2023 01:07:49 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:49 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:43 +0200 Subject: [PATCH v2 01/10] dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-1-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=1196; i=amergnat@baylibre.com; h=from:subject:message-id; bh=vTUD/c9kbSLzmx+cLlLgYeDYjimwFLetURuSQCdLVkc=; b=owEBbAKT/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSlglySpw8EC8jWMtiz5EoWRKGnIP273K6KU7P s0nj2uuJAjIEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHURTXID/ Y7o7mc0fMazZGCSJPm6JbpC6TUorPZDTIeAsVxgKVo23aCja1X3pmsg7tnFKxqN4DzlMproxKdocOY pkX865KHbsPD9LOHET25U+9GSAhnIkPF+8K6+vAdd24mSOcgkSiukihQg+QAS99HExeO9Kyg5p/1sc Zzl+CmuHfpaBoriCgsWfSnTnRniIpRKX4ZMShiyEtgT3+/nBQhKY746la0dooX9ovrRgT+Rs+clTXv Eirqh3FjzcMOA84m2EayxDVLvl60ldkYWV20IO4J4yM3mxvRY/wq/Ror99b2TikQ7BDzMxrSakHNvH YL9CDjndvqWL60QowK7Q/EyJcCSkytGRlszZ2kGEkoiNR/Vnthxqu4bSoBe6PYkl2mJgVxuNDNWzoj bj7vCVqizWfcymGQdcBSDedSVMuTkVV3sdl+drGYYnWGZTSWFJNS7pSz2jwiVAxR5lETU/QpQpa1Lv uAfnf7dNSk+2Q8g84yZ5DIee512FcMeb7J9vobtTNK1fn69DcdvmQ1W2PtPcKZtTWIAIVlyG60aOS8 tx6Ny0Yhl2D9Tf9zWuShU64xiGa4Ud0Gy8sqrWnpN7D5liXxMmWIsMYNLhXAzBu1zbr2maEezJIWeX R5kUnYvm6NCRaAuFPD+TyzVGWFtOV6r0JFi0o7KjEyf+hvnUTOGmxuqBin 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-20230405_010805_009760_7F27BEC5 X-CRM114-Status: GOOD ( 10.11 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding description for mediatek,mt8365-smi-common Reviewed-by: Matthias Brugger Signed-off-by: Alexandre Mergnat --- .../devicetree/bindings/memory-controllers/mediatek,smi-common.yaml | 2 ++ 1 file changed, 2 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..2f36ac23604c 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml @@ -43,6 +43,7 @@ properties: - mediatek,mt8195-smi-common-vdo - mediatek,mt8195-smi-common-vpp - mediatek,mt8195-smi-sub-common + - mediatek,mt8365-smi-common - description: for mt7623 items: @@ -133,6 +134,7 @@ allOf: - mediatek,mt8192-smi-common - mediatek,mt8195-smi-common-vdo - mediatek,mt8195-smi-common-vpp + - mediatek,mt8365-smi-common then: properties: From patchwork Wed Apr 5 08:06:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201335 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 DC04CC7619A for ; Wed, 5 Apr 2023 08:09: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=0fXr/5Q49A62H93o8KH4bb5YqVxmJlHFZ/W4wC1V+e4=; b=cQyoqm+9amqOwc hSCMRflUaru9FG9+zqUoxhDYswTLq5lUJzahn5Nnj9Zw9SyrnnNSFmDrI8OiexP0x+4rO92apEzim aJgSHue7SMKKgl/zcMZAKPphDAiS3qu5PZ1ttU/oAcg0JBOBbID4K8WE8TvrqXzAcIGWwgi4H5aIc GyQUkPvhDY883/9s7qVyt9KzYMM6L2rB7oENDpCTbyftjSHlAzq1TCMsnJ9DiN9kLtzFNLmTpi2OY 0DigxRgaLgJRehZGuMRPYZnbP6RbKBjTAYsMGlg6VKU8AveOCj6lAWNps/OvF9Ej+oWl846W5efe0 VWkfUF7iG7FM6cDrrgLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBi-003j4I-1s; Wed, 05 Apr 2023 08:08:14 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBf-003iuz-2M for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:13 +0000 Received: by mail-wm1-x332.google.com with SMTP id v14-20020a05600c470e00b003f06520825fso525470wmo.0 for ; Wed, 05 Apr 2023 01:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682070; 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=9gvRZGzZ81MG5/Kz7opKkMvHNkqBqpdFUorIdo7o5i0=; b=Vh+ARxw+XBpCn6Cdbuf7qMigVJ30ZylLNEkKMlcjxc6FxUOMmsEMaBdynDPOffQ6H2 jkob6hKQ3Beho32h+Qj+YX87SSFxsQSD+Rz1GIb4XqRjYVmf1R/7wQJgIsSVvkLMeC9i Rj+QMdbRNLqF41ls64vx4k7996jtfeiNQ+QfCYBG5vXZB0UlThEA/McqoHCu4+nMQAoe b6EFIPolerBdQiY3GuG4r4qOpfcpSGyUDTeku16QouVkaP9yLUFahTXiBi2HGU0OszAK Ja8tAZhgG2ewKmnDMsHlBKiB+Buwl5Wl14tiXp3tzjo/3pfGZjtc4P6UFwz9jADbIpF3 3Cbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682070; 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=9gvRZGzZ81MG5/Kz7opKkMvHNkqBqpdFUorIdo7o5i0=; b=oA51JOJeDREcw9lNpKKZxxdbjPQRp4HFU7jXKgvNh1dA9IimuHNbCjSRTwajetUD7z mMKcsdXy+8ntFsYjBfmdisw1XWgyqUfz8gtWJbI5qMof28WNHp96XRUeKscSnrYWPXHh ElaHoIn0XSFFveyTtRYuo2IvpEtj4hxZnjMUkjZQjdgN7rnOmNQxsApiL9ZPqHbfi88e 0JE0dLFIJvEW1xuZX3AMBKjVH0jD3ZXfHMNnGg/FD6di5Fx4slEIzgpZPTr5xeMAzt3s Qy+MItdbDv1lL1WFLKvb9xLsHcnZsVLgV5mTMDvGkQx2g1Qc0JmZBd4otZpmLm4k8/op Z/rA== X-Gm-Message-State: AAQBX9eH67dB0/MvfOfiiJ80UuiYQUL/acWP5MwRf10nHw9vsIN6W4YF Kx5FFiMAmvAOrJ/mBHkLvMPd+MzOTDz58zQ+614= X-Google-Smtp-Source: AKy350YeXZxkfcHB5kV2nmFPc7FFrQ/RMUACXkLotNVpPgsteGsIlBZRNxyyl9ufeEdxfpQblczIEQ== X-Received: by 2002:a05:600c:211a:b0:3ea:f73e:9d8a with SMTP id u26-20020a05600c211a00b003eaf73e9d8amr4072220wml.30.1680682070617; Wed, 05 Apr 2023 01:07:50 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:50 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:44 +0200 Subject: [PATCH v2 02/10] dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365 MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-2-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=951; i=amergnat@baylibre.com; h=from:subject:message-id; bh=dRVBiL9RiPJX/FXqDzKoQWbHskXPf7KJD11X+Bn//b4=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSiN5AhJ8apXlByy8QrL9ZYngsCHSFSQdKonHj FeE4gqSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHURapED/ 429XxnIG2B1brCMTzSLIYyy9lNu+qP8yntLV62vo0uKlgMHDQuO7aWoJQxrew2nnCF68iwsalpu0E2 zx3AoMJ7WZrFG4h8ixWoaISEJBw+ixclLyTHUDFur7JWSiBw2xkJrs5pkd7tGGSykvXrGacGFb0KQE BuFoO3i29xFLxDMZ6zFEKQn7BfLBuwRf5SG815XrmoICAJiOMoB/in7gaQWJZBYHlc6m2Iq5s0pfjS HKy2vCeQCy1VRVE5jA2F0Gu3pRwN9LP9DVyqTS6GwNllKUqN6gnR0bf/2P186ND5o6yH00fAgx+TTD dDRoTwIuRZES84gUaQwpDpiVH1I7SouNjzMenB+bsLdjAmTSGKTy+T8iHyt68jwbVzXBZOQCBPvugu /xw5bt8aTc4efrlapRnf7DNya6GtL2Xne7OKikS15uiYVfrLRP1OwIaRuO3xlO5BnlIcBpz1DNalmC CJ/mzM6gz8U9fGIWkeAqjsJfzw7tblLsx18/y5eZZ/0B1dl6d93ThmTE1vQGewShU0Gi2zbZA6xRrB 38tfFystDk4TgJ3SgvIz229dNMe9H3cY8M8+EboWvaUlhK7w0K/gfQoyfJ0DZ+3ZP4bvFvYiLowVI2 opx19618vF3shsEn3If/opFEwIXbtvp9rbJfBHy87pzgDYMkqQG3RDKKAuxA== 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-20230405_010811_803490_3C2666BF X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add binding description for mediatek,mt8365-smi-larb Reviewed-by: Matthias Brugger 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 Wed Apr 5 08:06:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201337 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 96377C761AF for ; Wed, 5 Apr 2023 08:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=pnOmgexlv0OpqnEoDj5qzwrpGOMCYBXyCCfpDXxZzF8=; b=e9sdce0DnmkiZC zsd5N7R9BxqfYrm4NwQDOSn8gxWu78CmoWJ3w4D93LMZsRrEymL7W3hv4FiSTJrHCgXZxoCub+dKo c3EnHPWFhOmTGOEZw+2ohP4CkfzVh5Jw+AMpETJSSsVnzqWqac3ocsim8vRRHOGVLSVkNZvtcmIjq aRIfvvzK9PY1SnCM/hGe2Os6Af2vCZKXum59yaoW6HFAS2Ut6QArHl8MOF+11ls34WGPMJ2BDvVbJ t8RpP63ZdggvJlYGCGRv6IMHRjgqg984Izn9SNCk9IOM8Sm2q2j0QmCXAluOlltPWbuGuawunPR58 sTO799w0Mhy1eMSHqkNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBn-003j7O-1r; Wed, 05 Apr 2023 08:08:19 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBf-003iv6-2M for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:14 +0000 Received: by mail-wm1-x335.google.com with SMTP id n9-20020a05600c4f8900b003f05f617f3cso2303087wmq.2 for ; Wed, 05 Apr 2023 01:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682071; 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=Jxn+TRsbL2lgiHIWio+0AzhmetW3gojePjlFvN063GE=; b=2v2OkzuuRJUu9wxcmBUvP6r1Ba/rQXyGTl1m7nRsAgncDGjyZFyyPANu4Sa9nSrD2I Z93ydPgaLwV7l2g+UkGJuLEOmmGAxYqPnYFSfODuVU93UPuzy1FMj70KZENcVAJQWFZk 9aQ40WYBL9K5zEzAASv+K+WTicxyh4Fa33+49yzEyte7lCa5M/JHTL877KG2NQ6rzmz+ u6UzZX4N7bRCGIgE6oO58Rx6atmumxXdOkXYdFSVxgogyL07fuyLm16k8m6sSaP75nbT cu4YazLcBEeX5O3yEHgiLmUN/OOtf/cbG5u7MuinZBBnn072Ell3lqCEzbqzOY5aM1wd dlsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682071; 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=Jxn+TRsbL2lgiHIWio+0AzhmetW3gojePjlFvN063GE=; b=KY/d6tM2Pq4rZtFNdLj+nDNekcSv3ahNORgjss04UC5kl8r6BsrZp2GQD5TH50z2x0 vP2Mx75hNTkRJFkXYdhJu1F3l5a/IflIVrqd3dDehDuciPGj+nFo7m/CnChf1ogFmu5H JygU8V5gw2J2mimv+UtgEJThqywrPrEIy/qBkSQ43xY0iOxEuqDWIEniHL+Sa5JwPpMY +IVnacTRftOkY1M/h/HNt41WgXtRU6+cmS1m/7zLQ/UGUzyDDiyqIfhqa17v+Nx2cBKy eI6j7BjlHMvuwYjy02VFnMyIGXFulWp6yRLaMUzb/6BlcJhLjrpOukur/6kYP2FAyJrG b4nw== X-Gm-Message-State: AAQBX9dnXB600V1GSVzpkzzb2OkHF8+fa15Hkcvkmenq5xoavOBLYRLo hX4byp1kytth/Y6XhqaKksFylhL2540BgeZtdCk= X-Google-Smtp-Source: AKy350aYDMtAB7RImq+NzJ4YbsijUmKh0Ml1+EpsWBdmk7p/N5nqTXdoB3dxjZQSC2MXwRfJjGumrQ== X-Received: by 2002:a7b:c4d5:0:b0:3ed:f5d4:3bff with SMTP id g21-20020a7bc4d5000000b003edf5d43bffmr4357607wmk.38.1680682071679; Wed, 05 Apr 2023 01:07:51 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:51 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:45 +0200 Subject: [PATCH v2 03/10] arm64: dts: mediatek: add mmsys support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-3-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=1181; i=amergnat@baylibre.com; h=from:subject:message-id; bh=IIlOfZtAZXJ+CTRWdZTf7MxepUo9ZjXmi2nPi0PBDfE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSrgcqG1djcTNTRWOYYHbrXdoDcKGVNBJ0hN1w z6uDJSOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHURcs1D/ 9TQt78ycBkdpek0sI0bzfJTzN1K8RDJsz6H5yJheKmAHtsXfZ0Xf8ORFzRdvanX6ghoOqhXt/MrOux 2ONo8GnccerLEzb3vbB8OTYpmjaLvlZfb2bUy8uzs7b8oYCU0amvDKJwj4J8zT5ovjNk/M91W/OkUm kI4dcgGHuPl7G5ErWQILWyGFGnnR41XBrnZzgJ/BALNGc38U4XDLobA1hJiG8zXB9JaCfbUOmHTk/g W3ygKXXzVTnOOjuN/tSstD/P8lsdRS/58mcVfR23FYcM/c4YavuLiEMjhHsimgnqofltoitI+8o+/m 39ALvcIIC1YzkOX1uMx9Kvl8WCV0yoxZDJ8w2XPodTpmm1EMNtvVpJSxwPwnQmVmj/tKMJbH5yRWZC 7sTSBM48hmNkK7J3cUzgkoiSGVY48jDurXJ1MPWfnAy2TQwN3Is3IwngHbs9OUHYofLxe0qQ+Kxt8B 5q7AxhAEyxeq1UooNM0TnyJiGhRisx0e0DAHLx/7QYVLJ6xoORG2COtBtcSv4vJNiNjcTYyoiDrq1E JtcU5fkr/EkT/sTzIvujXn4MPnA1W8mjNNTa9z2Kqx6OrEfv0iqqaaf4ageee3g1/IqB8F3osz0dWh j8gtTbTZu/mWTkbhYNdk79iUc6hlVyLP25PQHyaSSUUHQITRGV/gin3DVlZQ== 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-20230405_010811_844052_0D41EC44 X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Multimedia subsystem (MMsys) contains multimedia controller, Multimedia Data Path v2.0 (MDP 2.0) and Display (DISP). The multimedia controller includes bus fabric control, Smart Memory Interface (SMI) control, memory access second-level arbiter, and multimedia configuration. It plays the key role in handling different handshakings between infra subsystem, video subsystem, image subsystem and G3D subsystem. For more detail, ask Mediatek for the MT8365 AIoT application processor functional specification. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index b5f5c77f7f84..db9ab538c34d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -592,6 +592,12 @@ u2port1: usb-phy@1000 { #phy-cells = <1>; }; }; + + mmsys: syscon@14000000 { + compatible = "mediatek,mt8365-mmsys", "syscon"; + reg = <0 0x14000000 0 0x1000>; + #clock-cells = <1>; + }; }; timer { From patchwork Wed Apr 5 08:06:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201336 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 4FB63C76188 for ; Wed, 5 Apr 2023 08:09:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=YA5ad8LhFxRrUnzLJC6hY+EkHcQfznL4ku6OBGqqFKE=; b=zD2QftGWMg7Q5p bwcqm3iwV3BcfHjORJbdfGbOu9q/RU+3j5Zou65t71QnZEV8LAx6a6Zq5J/Uyp+RxmuxirpYrKP/f yRx6dcQnMljeaPkFx2GrHutEQlBzP9bLsSCsdJxi8lckCeEIKAaoa6jVpKzuhg1LaoG2pX4XYTy63 ALunOV92hbWzz3qrWaIGR4IRHvj/vgnuaDplWP16Cw6EGQiIQEQ8+uthtZGrCCFVxq6F1kNWQ/SXA Ns6zaCZEsR+etXe2C+kjTqX3autIBdXcSkb+LO8BfhHPav0RC5oJ4EJ2Tg5DucGbOIo9dQJUH7slm nYP0Z/CLJ44K+xHIql4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBl-003j6H-3C; Wed, 05 Apr 2023 08:08:17 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBf-003ivE-2P for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:14 +0000 Received: by mail-wm1-x333.google.com with SMTP id v14-20020a05600c470e00b003f06520825fso525504wmo.0 for ; Wed, 05 Apr 2023 01:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682072; 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=YHYOqnIdeZEQQSsG6kV/waTEgcH9AADMsfaYGJviNTM=; b=NJfcutidJRL0Sd3UR57Ek+M52rh4V6u7JmlddIraBxi0Ju8z6MMFEiXv/qhhQB2BNI 4UPVf5jK3Cnnyvt4oDkJ8HPVZj65Q5w/1knZiegA5nGwbzsxeUUOZ6rQEYqEhl93W5Iw vNH41L1bzc87PA/UU3BPX1H86617Q4X2YobQfrVvVkX2VNWL9qCNXZ+bqlWuKFu2zYwX XsjjNOMhzkmMShFCrfTuraEo37xMjXiGPIxXClHb3V5MOvD8FpUI2w+YI/R3+sE3Rsd+ KXRyJunXqTU5j58GF2OEdbIw4PozkAybpnTQJyt+RwrFwEK2jYwy8V75CXcr8BuccXWE 2JSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682072; 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=YHYOqnIdeZEQQSsG6kV/waTEgcH9AADMsfaYGJviNTM=; b=HyuCCrPgZDjTpdiWOW+SEsCy51PELRIUBX1xMITXYRRI4UYjFFAkzFIgsnOWSJPsIR DFbygRNYQCVrpCJy7//oNBZf3ZbrRRKwk37d1js2a84hJdbUyY2u0TYiYOpqJ/6s6nDA 6AQvv8VgQvt5HEbkm1VA4EgOYXvlwBAmsegU0WtrV78MeJqtGdVnjHsM4e8D5azoXN+n w4nloihB+RxLld6vUJTvDN5sa2zI6zOm/iMcgpK8pipZa1xSmXrkwUHwFyccajhUL/TX sF3xhuZix/thr3U2px5cUTi94pMHCQzUCA8TkIpoypetrqsu9nMmS3WY02sXOtOx3hhd ORRQ== X-Gm-Message-State: AAQBX9cMSVYxv5/yJkqecTyPZYe4WbZqE6SxYOkPyqHgnpEDTIqZpNTG 3jXpQoR1UTups9xpRhLrHbyHhzW5BbStvT4EWGQ= X-Google-Smtp-Source: AKy350afhnXLFxOrvlN1LNxxMmwnjjQmvnePT+4/CSqlxZZACPhRmxLnohdtgvRvanOoVXFaqemCGA== X-Received: by 2002:a05:600c:21a:b0:3f0:46cd:c9d2 with SMTP id 26-20020a05600c021a00b003f046cdc9d2mr4031545wmi.16.1680682072601; Wed, 05 Apr 2023 01:07:52 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:52 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:46 +0200 Subject: [PATCH v2 04/10] arm64: dts: mediatek: add camsys support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-4-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=1044; i=amergnat@baylibre.com; h=from:subject:message-id; bh=x/wu+Gg/Z7J2I0F/gXx6zOm7KvojSbz4OytIRAJsBIw=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSYZTPbIPS2/RCyC2YT1QrM5a0tSocLwa/6I6a I/vATOaJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHURUYRD/ 4rzPcpgK0AM0J6vKogWpVZJVU8nLPcCX2gZDw6MpNBtn/HRHxrMJJ9Ycp8s8pXAVlBlJSwJuKlCTpk b3SNROUmWXhYGTSExf0GPi0tW01Q0BYWnttAJxc+q6aMfu6wq367G5MupOYsySE9llF4hTUIfOeRPV GcBXa4jSXwL5o/7fX8S7LFI6x9wI3sOLywwopcfJ++mFDtOA0uD7YkiUHy/z0+LcWcuZsAPs36Z2lb nUnD/DwMQ+6z4Voa4UX3lPipNee5vVw6SkpvyLUERlgrUiSnhyOCXVUffK+KzS1jb51JorzQz8VJVW 3+xJdhjyb59iKWp4Wde6o1IaiLQJ/QG8/XmSwxmCfpg3LsDmQSkQqpTDqBjleBTTF5Z+z6rj+rPOqH ejeUBG9bXbZOcCsTfR6Bhj9dTIJyN52m2aHV8SyHYFvfreDE5UmegdFAfKF/sTnFTZnBn/ABeKuYi1 4N6LauFAlwkd6l53tsz913CmdA6AQyoECWQt3tyPQbOyVElMkK1XULPqyejmmstKjc5av5B3Z5tIki OIDdtt0seOt8npl6mp2aMF0EcJfwcjm3EO73PiElvRGyVSZxjrmBdGHnWkMk8lxBdLD/5TAM4QUZe3 LYZRStwSGXcxC9dh9MRtp8ebf8o/LzhZicGsi7n8V0I5HSMk23rK5UJ/yZxg== 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-20230405_010811_851262_33AE2151 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Camera System (CamSys) incorporates an enhanced feature based image signal processor to connect a variety of image sensor components. This processor consists of timing generated unit (TG), lens/sensor compensation unit and image process unit. For more detail, ask Mediatek for the MT8365 AIoT application processor functional specification. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index db9ab538c34d..73cb10d296fa 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -598,6 +598,12 @@ mmsys: syscon@14000000 { reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; }; + + camsys: syscon@15000000 { + compatible = "mediatek,mt8365-imgsys", "syscon"; + reg = <0 0x15000000 0 0x1000>; + #clock-cells = <1>; + }; }; timer { From patchwork Wed Apr 5 08:06:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201386 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 5DEDCC76188 for ; Wed, 5 Apr 2023 08:46:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=qY8YwT7FaxqnNSrkhzWSovqtYflzv17eSX6k3NXL5Lc=; b=Lsx1J75ozmbpum 3dbDKTQKeRsGmeGstXnKDQJ/D69GWKjF+lO9ffGodTF99znlyQ0u4MxnTOjFtVpii+19ibGBC2oOl oHf3XUBD5zTjXWK8xMovp2jDSdV9022FOlTZGXaRZSI1Ov8OaTtDOKBPoIOLMcv3M72k/2hD9bMaL 0IMP5R8C0FYSFnMzntH+SPTTBS5nOu2Blq70eFUUpBaZobyvEkhYsrLZ5XV9OWCXUS9v4Gx9AghYw G+9rZe0KqpOplWyDmsjY5n60gC+tAlpdWp0gYgt9Q7kE0a2Lw0xkDVCmRACP7d3JSUnZ59n9haac9 iGu8QCjNpJ0jrgl5j8bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyln-003phY-1y; Wed, 05 Apr 2023 08:45:31 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyll-003pgN-1s for linux-arm-kernel@bombadil.infradead.org; Wed, 05 Apr 2023 08:45:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=70JWiI3ir/yodHMirtpCr960hDJucp8ZmgOAZyHHfjo=; b=Fgz7xCxyNgutXaDIjEcbZKfhJz 7apd9ifmvrf+ymTpq4TonkM290nQPfOZHEU7VCLS8C2Q6y/SGdiH6/D2v3sxr8rJioInGID+NRpK8 qZuR2c569/sk8IV0wdA+aPGszNdn3K94yOhKOZquY0imDxl+8Rncu4FxLGryFzauFiSkmmifPcPRE TjB8aiB9TAUHLl3z6nBr+UaXvEmcHVXFlSJ8MH39bpMzQiRXxXoz78IIsQScoDbzn1PKeF9bqU6IH FqGvGSj9qLlmW8KnTESGHABKkPjnpMUie/SXad3mkKit/Vamh37kTrtvQDOyhVIPwg4tOneebH9Je 4QPws8ww==; Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBT-009pUQ-26 for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:40 +0000 Received: by mail-wm1-x333.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so22848973wmq.2 for ; Wed, 05 Apr 2023 01:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682073; 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=70JWiI3ir/yodHMirtpCr960hDJucp8ZmgOAZyHHfjo=; b=UIeNa8V4y0LfXdZ77i6wULMuSQuFfCnp1skP+YCmsKzBVPRiY62v3O5ijLSeQMw6e4 KShG2PJFA1cbBXNvw9XfIWHIBEoASywcnK7eBgZ08MpbPTUdtU7/AwNQs4oInM9ldtPG +hxtXV4DnyDAx3M6y/jHA168S8YXAZH68Jck4N8uhSJcvpVajVZsSiy0sg7Ia3buO2Iq oVSLUW4UfYG2ecS9V18nUoTax5IWmheRCuMHSEm4mX4H68i2VMRKb7OQ0iCPq40oJGCh Qk3frWQ60i1ymoRkCMf3PZHCSEwGYMpGxmuFFae3PyOByXwYzvKko0h6hc3f5ArCc7+E OImg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682073; 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=70JWiI3ir/yodHMirtpCr960hDJucp8ZmgOAZyHHfjo=; b=2c7FmpBcz7SzB0iu0m2gf1f7WNJk3b9LUgUgeJY4Ez+9BC+4F7JtTI8aUD2tfEGhMp ceAuA5dM8xdM4bOZqdJXftqRYAyePxQ5PYZUQPX95GpIW3nReArq3X/s+us8Msb5pwC5 /+Xr6SUx+Pbi8oHKc7swkqTt085yYoLaoKJr8wKNxTOxOiLWwYbhDU7wseSZ3fc0lWPW yZYHBH6rAlfNr2/WS11HcNNu1FH6PYOQde2sTBjKLtA90dp/glvXIj9W90Qu8hi8vVT4 x8X6cW3Y0+5IQ8OOIqWQQzt8b2lOdxDczJ+Dn9KVdwWEDt0kVNghAr91xUfB9zyHSHHw Syhw== X-Gm-Message-State: AAQBX9dNtTsWhlgqnG+T5aGfNFokah5pdmpPjPsptkPpE9Xhg8vkSyDs CMn5hQOHOuRcfL9tjHGVC0hq3pFrHaeWkDFE77Q= X-Google-Smtp-Source: AKy350b9UOsxTOMqwUZY6vSkEawSnM4J8Hn5cHpyuKPSb9tChyLni5Q6tvJ96/RkzYE/aDoAlZbOGA== X-Received: by 2002:a7b:c415:0:b0:3ed:c84c:7efe with SMTP id k21-20020a7bc415000000b003edc84c7efemr1210893wmi.7.1680682073579; Wed, 05 Apr 2023 01:07:53 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:53 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:47 +0200 Subject: [PATCH v2 05/10] arm64: dts: mediatek: add apu support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-5-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=1091; i=amergnat@baylibre.com; h=from:subject:message-id; bh=xWFAj8fuPjSh5BRKLkeGKOoKQ305/M/G1EGxpvjOkWE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSoBzL686N39LczEX530ndyxmFITZo9OFEM7y4 d9bivBOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHURTeoEA CkeVoBKqG7XeOy18vlet+vsXg/YxjsTHZMPQNhRXr32clxtVRsx6oTo0LQtwSw20QgVaeJAZVRy3ln auw9gGujEh/7bYDNi66KNssUYK3wXvAvHGDiZYBW94LBMWNQMiscOr4oHZglME0C0l28HMVKB29U2Z lqt3L93jF6rVumPtiTvpjIc4asQstBdMxMpOT+7q9C/3pEpg5pCLhbskKSJDMXTE0kZLduIHKMRn33 LSZb/h5IGRROiBRwWyId4r9xPa1SpsrOkYUlo44ibjViePXoWBm+JOjLg8U2gil3NwlqpM8EZCRUUx P+Z6MMqpg/VqtC4W04F80CVlhC6RRWkvfvPx65RpsnKhX9WZhY2EaHdsaf5tdsBcyjnb8SLZo6vRz9 xwYhcMZlzFegrepGZmiLi4M3TF2oKUimnFOHneNxt6D8sVtd3THQQz+HW9+jb+pm3st8+iStKFpzwz PKKnS4EQLExyiulo+eePE2wGTEFVtZynrTUb1+kKPcwK4FHSlkFpljuVzXj/YZVlHY/m2mCNSP5RWw YqAMVSyCGPTD5oySWjFEG/TSdE7Ftuyxz/vgLtdlsv+mQEzmAUd4ZHJH+YdaUPy4U9KVt9WX905qCS dVs6WKIBtHyeC3umaz/KvJJxR252kckS2JV1YdH1Hxt+Q3oaVV3y2LO1emow== 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-20230405_090759_980104_24DA8C6A X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org AI Processor Unit System (APUSYS) is a highly efficient computing unit system which is most suitable for AI/CV algorithms. It includes one programmable AI processor (Cadence VP6) for both AI and CV algorithms, and an eDMA engine for data movement between external DRAM and VP6 internal memory. For more detail, ask Mediatek for the MT8365 AIoT application processor functional specification. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 73cb10d296fa..386ab8902b55 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -604,6 +604,12 @@ camsys: syscon@15000000 { 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 Wed Apr 5 08:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201334 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 DB200C76188 for ; Wed, 5 Apr 2023 08:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=h4YBkq4Gc3NNSt1XxOQ5QMg4dqIyxmoq8AW1sgVedu8=; b=o3qOczMCM4zv3k FTpSNG3/S5bKcKtcjyIeOlP9VGkkJUuqFFhlpPswUTaMS+rZlyeb8UqLOA4b+iQqsiFnNsS1HUA9O BJUVOgu4Yic2NvVF7rFITAXSOVMYWocoT77IQa28uEKrhznJjKXV+Lob9QD/ETDgQ3iT6BTpxdlzD PD7du5WOAPPYbJUBfyCSX11IUQRe1SPf6QDkp2sRurFP8Y6Mo3F9RuH1vrc2h+NM+03nU5mkyQBc4 miLXqZrDk8j1vNwYM3JLBrB34NVfi/4WU8aZLfCfdatiaCfcgEFt00v6Qbr8hErWgJWh5cOiW4WVy iHBGNVzoZxWrylfjYxjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBg-003j1B-02; Wed, 05 Apr 2023 08:08:12 +0000 Received: from mail-wm1-f54.google.com ([209.85.128.54]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBb-003ivg-2F for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:09 +0000 Received: by mail-wm1-f54.google.com with SMTP id j1-20020a05600c1c0100b003f04da00d07so1704554wms.1 for ; Wed, 05 Apr 2023 01:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682074; 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=3KFcOYEAi46ZIl7QCtzcN5XD6VlwA2hJvytxtJEenkQ=; b=vC37SPRuGSTtJnMrgLOqcrANQR2a4Xjl57wIS2cFdSmSDXVTJv87ZOCMnfWR/ekZmg zmxTY9Vly7gEaFZr9rrndEJL0fwvCfEZiKMlSh88tTP80g5ga2H1lyFQpRAlTRkVWs70 95EV1zgB4kEyXhwIRYRZZw80RPSRh6ov4mHpFvrQ5bN+e8gyxcFjA/gQyZZG1XylGquC j+V3A8UVrRtnCasdq/MNHMUYZctcx8+VlPJNWCdwRrAa8aYZnbVOm1K80TIFQqCX6GaY zoywVAJrYtnG8mUZh1tZwAOt7bb7qKHRnwVc1F9pawsXXjGSnOd3Vv+la8xLUP6nKrJ9 mZvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682074; 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=3KFcOYEAi46ZIl7QCtzcN5XD6VlwA2hJvytxtJEenkQ=; b=n3Bl21cVvJnpDb8EnsOEgrTgcZMu/U+XDP7MrcnZ7YdnHlg7DAbnj4Nr4P/WBIkwkf 1kECFR0kJIxYq/vO2KULHjd/n6B+vg+Iw8OtKkVN0vMo9H/XktKox4GFrXmb+2671tVX epo7/60UE1CcqXv82DAJaOzBDzFcg96COpd2OXgysZnQaRdhUWZeP2fn1r9+Xw1QKOOb C7Mx5p5sW71EGTf/7xuLkihhmQSOOs6+i6cJZAOjQvm64bt4DMy0Zk++SvUeD9iU7meT V6rXwr6rbjpP45wOAfNP08CCZ21kYjFVyLnKQqO7VmJxvaoUinsCJWh60vnfK0kq9Q84 cv+g== X-Gm-Message-State: AAQBX9d/JMPiQUwyKhsluPQDRqdTQ2fgrpdY9tS8cf7mSc/TvGOTEH2Z PuxtYL/oS6Yes2euNv+zZeUrvNFjFBThxDIaaq8= X-Google-Smtp-Source: AKy350ZlwKxcKrdi1y+uB18vJkxgLBTl7GEMfPyPnXCKZka9q56+j7miIS2FFOvPTDEe5qCNKGJp+A== X-Received: by 2002:a05:600c:2054:b0:3ee:d7f:6676 with SMTP id p20-20020a05600c205400b003ee0d7f6676mr3956095wmg.11.1680682074529; Wed, 05 Apr 2023 01:07:54 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:54 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:48 +0200 Subject: [PATCH v2 06/10] arm64: dts: mediatek: add power domain support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-6-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=4617; i=amergnat@baylibre.com; h=from:subject:message-id; bh=8SGgl6AnSEaP0TiVCLT5CLjF1FPWuK/os69MqWsUi8E=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSZvY7WYtrVZZ048+sAksLv7mZ/3DDV3PIV9FZ VuXyio2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHUReXKD/ 98PT57pl0/HAZiA9k2UQRohub2R1PIJLlVB/FWhUTECl1UlKdYDJROhK19Y90ApxgQ82t2+uStIZwa j0LF0qW5GFKDCpUD+twPVbP5YyYTpojOnn3oFVZrvS2WSZg3udt/ZNxXPsu5UFC7MVaWq15AJk/7fS 7hLKrUjQA6s+3IBgfG+LqEV6XdPM5I49Tw3WWOUuyM0WOTHSTA6Wy4TuD2zdRwBRf5dBi4w6NgsV0A adG7XQbITYgCX7L9Z0xR6ApUjn2q0hAN2LbGCUi7zCLNkwWc4m25NICMHGXy6rlPk2B/Mjx9t41GBv eB64iiuQTvBqYPARuWv1KT1QhXVgbw7YNbHzQijc4omjkmYmQQebCMJSKi8VtV39f7hICaBvNNq23z +o299/8ex3ABSkjh9QcGFsL4NwEhf6tjcDqweQo/LjANxqBWK2i53aEuX7R0jAo2YtjTuYFuj9q3v/ s/oShVO7bYnWhC+/JY1rW60pCuY+pM7m+ypT4qZvH1SzRmZH/uJ5Ds08MtzMf85KNypMOr/W+uF4lt 7dpC68Fc0LIkIap8feQJm5Lt5RBstpS1j+iW1/jMFE1FoPrrRg9IfwmS5QpaR3ibMV5hYfMDESSour k1aI4F2WQ4ieUmj3D+vt+hmORx8vkhAwh8nrCTy4uJ6SdR4Fd++loOxV79WA== 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-20230405_010807_737166_07EE3074 X-CRM114-Status: GOOD ( 12.91 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 | 110 +++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 386ab8902b55..0e4fa69a2415 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"; From patchwork Wed Apr 5 08:06:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201387 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 07DFFC7619A for ; Wed, 5 Apr 2023 08:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=VRT8Mkad+M4iGVqub7yNIaMgPscx3suEA6L0FCY0Kqg=; b=OtqcetQVQBw8pf lOJvF1LXl3LJUGOxbo8tfV7NYVT7y5au75vsPk37L0V1UVKh1OIDlsn1HOUiuNV7LPVfCaXuUKb7n XojI+65CTurEdYqaW2vYlZKX3OAHfYjAXhCFKV/pEaEu0PFEKB6Sx35u/2UZomeLp5wW5u0gxsWr1 l9ceWEVY4fxd6qBk9UnQsYKzv25uXUzNv+y1qX24C0yu9jjNQdsPwuFIazDv1LNc6vzCdYTRFvKrW fJyqBmQdVY+KXYejv0kYIKJOtw2hlrAZzROmlFeyfwTgn5uyRPQ+I7IIwyq8wjVMGG4UA7WtBFlwi Sewevq8zdnfcAhc87/zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjylr-003pjQ-0y; Wed, 05 Apr 2023 08:45:35 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyln-003pgN-1w for linux-arm-kernel@bombadil.infradead.org; Wed, 05 Apr 2023 08:45:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=tORp1I37+JIRNlLfmuNLwniBkIh0XbsRy1El1Qwfh5w=; b=ocU7Z2LB6dRTFqv0qvDlay6Fgj gc0FFVRN3uSO9QTf3OKgPmRx9lv8pT/j8fvimH6urCtvMiw9/7ELZEu+UoFvEQga/8adZ0RQXncCE l+XNGyC41568a8by+p+KYkUvY/I++HzdS6An3jRobpePZfWoETXbYS11UPgviaTSpmMKdvJTrgdGR ne+ufCJP/3zcHN9SB3YXPpC64L50I+xCdDU2KluVr61Ekk/P0BNoObyrsrMSY5+ym6CTrMiaGSmsg yrXdyYdsi0NBOPde7S8Ck1GVuZ/SdMK5BIBbDmeh92n3xu0Jgis7Dtn/Z86HsSHsukzZsoIhPlp4R vA3wO6Sg==; Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBT-009pUT-1s for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:04 +0000 Received: by mail-wm1-x32e.google.com with SMTP id p34so20372344wms.3 for ; Wed, 05 Apr 2023 01:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682075; 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=tORp1I37+JIRNlLfmuNLwniBkIh0XbsRy1El1Qwfh5w=; b=eeP894lK8vDYZvEdMPg/go0rW2JiNyxXyguTSdzNsHYp8A7Jd/nbTTbyUya4Yos2hp BUttqMhu7Ir9RNscSKTDxc33+4QkWcNBxkei+DmYtrtOVR9GahoxWf+wm2W7LF0lf/0O Jnia2bnqv0uXIdrROJI/Ve2IC11dXJI3jJohPe+dl3DvYaM3rf79PzjHXVCghZFSgku2 y5FeYl4NsRYWG1KIm6Lq9zMUmnIB+xh6Rfq+alO5G7rh6EoH55gcN2TaFlAMXAVt3xTS Lv6+9/Ms/Ps0ZaAekcXwXKIASZIF7NkAmKjndd0PRJi2X0rxW6A+FZubqWK+Ef/xSigA /QpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682075; 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=tORp1I37+JIRNlLfmuNLwniBkIh0XbsRy1El1Qwfh5w=; b=XxnFh7tmCl9TqyQ4B5TnC43NwEqKXRTP3T+cH9STMJKQBU5Mw0vn2xXjvJCQV/eMxN 5Ags5ubQ+hYMjnUgCY5CZnyIVeaDc297pJFnKjdMmyzGMCWlpajbY/Aiq4EDgvlAs5VH 0VnLr2lDd8FP1BpMep30xOD4AK+o5JCbYB0eKQG5gLeYJ1sIz0egIZBEfizMWyzViIxf nwsMVuwuR+nmfSXZb/+up+I8QV9YLvk6+ShOhJpCaeUed3AJhFYWbc72Fr2Uf/BVTUAK 8BNMkGfKQF8xQRGuW+ywLZhKP+ajQ0bxbC591V27f4VtlblG8KWmJaUN6aTeMs7ZU4On RlJw== X-Gm-Message-State: AAQBX9cX6vTClEBzQw0zFQbWT1sADOLv8Ee0OYNGbLrzo63mqR9C8/Pd PpZYNacxX9ttJ1DCrPpCrgPGYLZKR7ZEim3xAV8= X-Google-Smtp-Source: AKy350azRPXwLmeuJ9HfGFndgnxQIBgT/MvaBdrj/nuQm3xqNxg2dd5pm8+rxs1hnFyGYbhtiLAZ1Q== X-Received: by 2002:a7b:c85a:0:b0:3ef:7594:48cc with SMTP id c26-20020a7bc85a000000b003ef759448ccmr3977617wml.23.1680682075524; Wed, 05 Apr 2023 01:07:55 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:55 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:49 +0200 Subject: [PATCH v2 07/10] arm64: dts: mediatek: add smi support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-7-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=2121; i=amergnat@baylibre.com; h=from:subject:message-id; bh=J4LWefgCJNgBuhY1OJrPCpnKJtdzqFO3621y4agMuJ0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxTwyToUcCkEHjH8F8sUZh9X6+owHowBT7aSF+F 7lPhpA+JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUwAKCRArRkmdfjHURQzhD/ 4uBQiqBMwYx23RqLaC+0SBJRWWJN627CQImPNf7tP2RS7dyG2Nw8XMgZXBIVKCFgo+kzUHllX/iRiD JhZg8HMjto6Q6CAMDCXWWl5nSsd1VdK7qJpJNEQc88kCrMSSPVSkzrw5fthDnWvqBaXzmxrwUMoBT8 4wLc+mja32gUQDBCjLLXxUBc/EfVHY8TH+8KoZeJ3sMIT+7Cur4nV0t9DboE5J26RLcmkc06REARH/ n53/YDmRNrUXs0mtDlRgwuj0DJTH4faSO77slamIUvwRIuRtuYC5ruOS8KyMTNngQs3vs9f3r35DqC Qnh0gpN+LSd5vhyZaTiAL7uO3RXfdQGVQmS/4+GyGidH2aoMT5Jr3JIO9TABz7fVaTAVrT9LKR/Tij BMj30JKm6iabeZBDBg4Ah3ivT9Oico1DZayOdR5LU8BKtzjf66MpUlsWNRCoJUGoyf/bLv97ty06jN WrbNC6iuR/3om98bPgz8ILT9sSzWgv6N+1v6FrXRzDhXNTG6YVSI9p9t/XK3i/kNeospvF/GKXvkMq WaztOQJCReoxY0q5+FUtal1FF+dUWYCvkFuKMaPJhgWrMbDpXotFe2+L5LXHuhb2HqrCzxMA9HP8Xh NTPHy1BN/371OJ9pmEfPL97qwABcmJfvJVB++O0DONrHN8jIf9G2Bji/YBMg== 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-20230405_090759_971534_5A50047C X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 0e4fa69a2415..70915beb513c 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,17 @@ mmsys: syscon@14000000 { #clock-cells = <1>; }; + smi_common: smi@14002000 { + compatible = "mediatek,mt8365-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>; From patchwork Wed Apr 5 08:06:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201388 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 A9AC4C761AF for ; Wed, 5 Apr 2023 08:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=2T9BX7IPIbBFF1A/npk7oRg71rOYFFUQkI03AGc6hu4=; b=v/2HuricC+G8Of Hg20H58gZvgbKDjvJXW1bEX+ukNo/c6co3ZoHOhpP7OoA/GQA58SpYc3trocxttrZggKN/usRciWh C1hNkFhoR7EXzJq73lDhV1SAppgdlx536yWOKTHefBSGDSeT/c9aT651FC296M6vybYB79PmQ5MMB ZUneopmCAFUfVa1eq2eLk8A03QwEbotJl5SiH4dljc3ukrGkVVn7u42rJGomtsIg4PoYHqiMVOTE7 /WvEDKKSIE2rnLiD9Op7Gg6c56gYwG8RY2c2NBfXEVtOofxXTczP4dcwzqRvc9ehy2nGCZ40KPRBL pooXHwnRhfe/w2WHmd1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjylo-003phu-1v; Wed, 05 Apr 2023 08:45:32 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjylm-003pgN-0K for linux-arm-kernel@bombadil.infradead.org; Wed, 05 Apr 2023 08:45:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=E8wkncoEW3UcSZNKmP1QjzM0HpYGIsR05ILVR35YRK0=; b=DwgZwuUNII/80sNyeKNFkl4OQI KfddZh/+xXvi4EIxKCu51bkGwNvgB44gVPz/tD2y3QoktnPqdW5gaO5sdM+Da/8kDPnX/mvVb6FuL v/M4OlWwciioF1F3KwRjf2Dc/AXl/cqDlrBa0EZHu3PM0kPjmmq8UwgNqQjtv8KjaOpng5UwRnJHJ RlqpboysPU9/u/3nRYDBCceGljywQJl9R7pvW69xeazYAD8znJ2IsO281OW65A6n3092hr4qOAOrj HQo8o8imeKF5SffroW1k274saVz4y/dsiFOFUYYbGuXP762BzG4AdIBgAC1LvOwpPj0B6LujVLQim oJZyigOw==; Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBT-009pUV-2a for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:08 +0000 Received: by mail-wm1-x334.google.com with SMTP id hg25-20020a05600c539900b003f05a99a841so3517703wmb.3 for ; Wed, 05 Apr 2023 01:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682076; 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=E8wkncoEW3UcSZNKmP1QjzM0HpYGIsR05ILVR35YRK0=; b=CSOBRqhTmPBUzsDZEaT7hholheXVaNotdlc0AvXTHADQUFBxE8YPydRe3cgXPcRWXr 9jiE4XazeTmr05+108byJinD02Aa+rU4nNlA3kDdP7NOLR++2MmDi4unXU63/AT8Rc0+ 2wU0ElK+iBhhVk2P2ITCOdS7vHrvo27RJuXCnTJSWhC7AZX/bTDFRqTqFytD4zKki4Go k6/mGa+PHe4q3lsOeCN+HHY8PDib8MAIhP2TvA17y3d5HDcQRdCRNw8+SJEuaBpJaGa2 UE2jWwbhmw3uus8k26LwBnF7JFLmLNnACsjvjnQ4NlvwaaRpZyQVQ2cKrTZzoDHZjlUM gcUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682076; 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=E8wkncoEW3UcSZNKmP1QjzM0HpYGIsR05ILVR35YRK0=; b=1hdrmMzePU539RBU3Fvh3K/G8Dz4id6S/slQ/EXLk0/ji9r4PD9cHcCSMZHqe/vhCZ k3FvVpw4kAihGwlo3EOh62yy5RCzxfvzf3yFQyD/H4aB0lJoqBEu822YlmRSkp+q9mFi DQHctQyDMtqZiDZ3yGQNwveAzxt3aSvANLkq5Zi1qnTyWEysTk2znGbG4OTon0Fsljn8 cuNf5hNQdxT6FZ0YUHIc7gxivIxUwPug3gp/3CELTp0oAp3evvgdm9eBUFbwt9iVr/UJ OIWCdyt8Tho28QRoO8y/RLGxLwWFC+9y0fXy8e9LM1rJ3JxzVY2uC1BJocMwAFIbkANu l/sw== X-Gm-Message-State: AAQBX9c8qO5Ovq+TXH4JWxbtIIZ8d0Nnl/uFEpbqe6h4XlPzv/RoW/tA eOCggbPzL274qulZi9HsejPBBifDgw0Loxc8Rgg= X-Google-Smtp-Source: AKy350Z+woD8WDWtBtXgo35l62NNOLL6b+qZotySU5zCVUgIvzbiH8gCcU7fYavFDXSkx2LBVAWZag== X-Received: by 2002:a1c:7406:0:b0:3ee:18e:a1ef with SMTP id p6-20020a1c7406000000b003ee018ea1efmr3693282wmc.1.1680682076428; Wed, 05 Apr 2023 01:07:56 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:56 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:50 +0200 Subject: [PATCH v2 08/10] arm64: dts: mediatek: add larb support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-8-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=2919; i=amergnat@baylibre.com; h=from:subject:message-id; bh=/eg96dGEgFTbseacSYltO+tu8R5mtjKMtqf32ClmdXM=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxT/kwfmQuz1cs8/FnyVaH3Vl63Ko2+7dIkEyJ6 oStPF+6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUwAKCRArRkmdfjHURaFTD/ 0RNpVWhe/E8a4yB9QePEcr5olvPNzP3WhMyM1F/PksjGuSEXpt/e5dcoZJZLoLUsN/jOvbONV5xKEl KSFuokyVaghFvBCI0qqr5iIXTKFuK/VRsGXDBLzONwE9VT4q3SarN8bjOJrOvqcbaKDXwWa80pCjYy PKb4dV55LexdhZsY+xGoUI3iRmkDkZfvrJVl0VE0THp0SAVyo0UYv/JCuicesxWKovTBcr6K7s1z9L rxqoupOnOvql6rDslMWoLwG3UZao2A21/7e3Py2zRZYfu652An8ro1JxGGHevN4rXXZDfezP1m1QAn J5MmpETamxmHyKXZR6YeD0R0iUNKk0wmOsrIn5eaxgtLipUojxkukDx7sqxv7Nc66QrR5ZeCU130XZ VX0Zsh/whM+7ZZ/11MnOOBVXfJ6jKPuRzLpNmuP2uckGqtIltv9c0DppsfwpFzJnItOusOUouPRrMj dfNZNjKE8TgbbSrlMzOOviKXQKpRwd63Xgc2fsxdDB8cRAJbmW9xhLjZ43/ftpiVWwt8wdufT3FACB LEePTYUSnQz6ECDUNLVqG7qtAlhQzjyPqGdEnKVhGljex1/+2WMONMdc/zvsRfW9oVEndPxAfiBKV2 ywnePbS+JWGDpudxFZjeWYmJHfo0KCUXNRdA+PErSPF2xD5N+f/sm25fiUAA== 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-20230405_090800_091932_DB5D9F3A X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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. Reviewed-by: AngeloGioacchino Del Regno 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 70915beb513c..07a7267f338e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -724,12 +724,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 Wed Apr 5 08:06:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201390 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 ACC70C76188 for ; Wed, 5 Apr 2023 08:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=YZXNA+Eu3etCrrsdANe3SFyIEBo17FFKoyLTH5kdh/U=; b=12O8GZENp106oc Z9xNiJiKe39vtO1x09m7ROq4kUSIyqvAnVbk7SBWsKclD7JLyP4v3jjbW2QWpdZcDcBVgzRS9SK08 udMgznQvGTKfYrd+662g4BQPBPzo+6txMZVtcP626MXOiuk2P+ytB30oAiu6B4jNo7cvlrTCE8Cqj tFbBz/eVKpgb4MfLH/tnGRSJlaKSG0n/ARIW+0cqxPTKSLs/WqcAJVjP6Co2Kl93xCtd5LafKlCIt SnS04pLSAv5XI0Mv5DmVr6vPRIj6wlbXWpl82mzKw4RtDtuavdz2XQNa8AmXxYKANk9YoUFSbtssV fxozkfJbonM5QRWL898w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyls-003pkE-10; Wed, 05 Apr 2023 08:45:36 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjylo-003pgN-0F for linux-arm-kernel@bombadil.infradead.org; Wed, 05 Apr 2023 08:45:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=Ty5wIc3Z81+kG82VSRnC8Apz5DxLYwgxvYQ6Q3KABLA=; b=Omxm0qIem5E0YyDs8aBhIL3knw CDpCW7gsliSSLfy69+WFkmiGvyPGqPPhg/S4dxKqAn75QLZCjLSlkJiH9qdBX9rv/Cpna7iKaTBTl FHBQ/qkbBt9xQjMyH2wdUUav1KfhCf4f6J4afDpoNXYJL9CEVBZLqACNPxqK3oxH3RuEDSerc7xT+ Ygc6uIwDeVeTsqw4xAwYjHuBiUa9hWywRGtfwAmNHt68KzOMd6G6qX+DZN4+iFILpgRvOn5RzpjlK o44BZ20VfzxTqdlFrw2KSrFiuu6DDO7vNj1T3K8d43y7eMjCNme7tzCUTK/Cnol86FP/Xw4delGXc BMXgwBYA==; Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBT-009pUX-26 for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:04 +0000 Received: by mail-wm1-x336.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so21461458wms.1 for ; Wed, 05 Apr 2023 01:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682077; 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=Ty5wIc3Z81+kG82VSRnC8Apz5DxLYwgxvYQ6Q3KABLA=; b=2ZcQ8cMXUT+tCWIFKid8JjEtPLeTZHzhuLk1lgXVnCOJL5Pq9A0rkIz2UOfpxW+cq+ haLAYAXlqgvCXrHAjIYZBAO4XEYQVNLkAx7BbF3N7yX2zduhEga7kzLuQhskSuiiJF4G pDFnhNGA8d/sCNsx90s0A/yO7kIPWoF1cPFmn19O9xIgWHh+amnglJ6Yjdev0F9Os2gp OvAzvli60SdLPcVbyLyuuBNxKGfpApuQTpdJjdOrkjBhGDSrABdlWLM9A/ci3BQYwfjk 4H381LhK2Jz2QgJcM6V+HdfoLhRW5V8IoFPl+52XFjUYnJZT/7EqegVJufLgP1CCZrSr GNcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682077; 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=Ty5wIc3Z81+kG82VSRnC8Apz5DxLYwgxvYQ6Q3KABLA=; b=OTPWZFzimLzmM6nkKXLEWeytBBntameioC1rpzxfJWdcGZZJJ1ORZqI58+ToMtH4Uu Lb0csp6NR4ADFQbpTuU3lFEzHHouPPe8SzMpgJOXgsMVrpt9tIs1y7LG2RPbjGZWdk0n hLe06waQfzTbb7qzPhKfllIeJm5riEpQCMx3OvWIjMqXjwNNNjHdhxBurP0aJ6iRq+u8 1ngY7tUpZVxAx03xLyaK40ZoHphceW3l4V9rdz7heIUIYdQiTl/acvN3iH5hUx684JGv +vBN+5peR9byYUqZLfJ6VtrBweDe4mbtk0aqyqEkaxEtAU3BBmeB+K1hzwuT0TIYmKPY AUpA== X-Gm-Message-State: AAQBX9dTo+nKEe7A0exDPS+xSx9pyEiiHQVNwmNf+QgRFQWNd4Ti4VOv 2SpshuUuoYwrltZMl06Qoejaw8wF+Ak3TBAZq38= X-Google-Smtp-Source: AKy350a+/HP4eT7mepbSgPrh3ZZezmR5cZh/uTdCLsA4vjYdPPommSHW67PUEHi6efoBDBMoS7tOMw== X-Received: by 2002:a05:600c:2243:b0:3ee:4dc0:d4f6 with SMTP id a3-20020a05600c224300b003ee4dc0d4f6mr4055873wmm.17.1680682077364; Wed, 05 Apr 2023 01:07:57 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:57 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:51 +0200 Subject: [PATCH v2 09/10] arm64: dts: mediatek: add iommu support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-9-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=DnJEBHRsbqHL6qyjSRQDzaDxfH+izMrFh6xvaojG8T4=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxTzSSOyVlKk+pu5ucK5KBC6oSvjigLIQZ1wJEe BFoarqKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUwAKCRArRkmdfjHUReefEA CfZ6XqBVopXdvlrSr7JRl9epjtctr2LktwRUlcWmP666YL+2klZ5biMdhZNpTSKTCwranyUGVnHHnj 78LH1as+UKfp0rtoNTws+8LyzHzB2uLZx/DhnCKCVOW5JTwxNA3HId41CcgsrH7C/fT9oRb4wrm9QM h/Wy4RrilonigDtaYbWWVOyROij0gCpwB/PusTwS+0L0hjaax+NdsIfla9MebFpK5/jduofNoFQoaZ w4RHjH+2nihAqFNO575K9U3t0srSnCfOxtXNU+iCXtusNe3f7x15auC3gc3NWw4qcfXiDjvVbqLHVO tgBxpi+OQro/i3m8cK+5GmxdMhG6MtdWHddIZ5zRUIBisLJ9eWhEZm2KbJZxf3YOqm3jzTDHAk66r9 Vy3QvFXsAphJLFYxYhFNpZm3K4sASMGTsZpHaiis2BAgjszh7QSAL1iNhWgs7/59wKv4SyuWek8QBp TAF8h9Z9odOHxYT/cQNWe90YK2K2eo/3WTZ+QpmoSSHBPoAT/nK09l+r0OC+qNT3ZZNRBFlgtRHHrI F6NYlqyeWo7YGZBhAg9SkAkP4EEgfd1ZbMYboaLN+F2YuzoBOZH0OzZ3JCGA73LFohbHNhfzqribm+ o/Ti5VqGbE5NtUXy/aWXjbgpkQipcK8M11/UtFvd3b0uzijxE0TcD/w3g8SQ== 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-20230405_090759_939552_FCC3ED8F X-CRM114-Status: GOOD ( 11.19 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 07a7267f338e..6260744f4be5 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>; From patchwork Wed Apr 5 08:06:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201389 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 89013C7619A for ; Wed, 5 Apr 2023 08:46:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=9iwv2bSP6YSuB9Lr7t1uKpV7xiWxPd6L1K5AtKtcmTo=; b=auK5gXbR/UQ63W aaHPR0OF1Zv7cynut981FHgmhrAmq9M60rsq2FI56pdogNG6LNZDvfCKuHEmirfYLsFm6ltO/eLMK gFLwcqvd/iCuEZSrd+BAP4DypnAmjvEbRq3wEib+njzqiL9w+t5IQ8PxPOylA0vMrkUUJd+IpLPqa epQ+MP99qR+dIZiABclNLvsUvAGV2R5w4cj/1KdwnqxjYrYI8u0qnwr3MrfEOkA47xn/wG2ajnpu1 uQnfVDja0KSRntbulnppKgKyfwO1BNP3k5b1vrGdhz65JnqhOLjsCkmGp4rd8Q9QRjFa0y+uJm4uC kCGhEwrlqF8+09loW6Ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjylw-003pnH-2R; Wed, 05 Apr 2023 08:45:40 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjylv-003plo-0e for linux-arm-kernel@bombadil.infradead.org; Wed, 05 Apr 2023 08:45:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=33253isHt4S+J+nSLFy8mmWQtMLkRh8HjGdIrP7lEuQ=; b=EdzJrOHp8iwUVIzfzNQIL8QfHV A6qaBfUs2YFpFM0NJ06obT8HCGjSffDDcuEfOToOWKkgabymaKV2h2aoq2nuWCKiJIW68uanLFuJ+ OyzczeGrxVdqUlQA3YHZqD9E7/N5JNZcC6FSzoI+8n0rZTLA/CL6gKm7A/Qf9CDjI9K0X4wCOVuOT NusursPraI+dTGreU7G5YNBMLco1dZvLwCs5t3tTYFnbohstfdDwiJ+EGlz/SyFH3cfLdu4F0hlnb Y2GBnB98mtY4enJfL3brZiA5QTDTtaBvg1nuB4Ke3RfsW7ZN2ICR84fyQNlsgqCOMuWQNKiR1Xq2I xgqGd2ZQ==; Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBV-009pUa-1M for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:08 +0000 Received: by mail-wm1-x329.google.com with SMTP id v6-20020a05600c470600b003f034269c96so11208706wmo.4 for ; Wed, 05 Apr 2023 01:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682078; 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=33253isHt4S+J+nSLFy8mmWQtMLkRh8HjGdIrP7lEuQ=; b=Yc0/OBGpl7E8efDzxB5jgr2ofIfukmILIBfP2QyerHUtDy5nkPLJ3RoLd5pgQS9eZP eXgMfqiWxFlb3SGYMfy7+KO33PVHgc5o+iTysoWqWRKVqLAHoUZYn56XnIsnIDxwQspD VPZUEktSxHQVUb5SvQnC82cCQue8ELO5rxTkBGzTqhjeleM6aqQFk3q0jtggEjqYGNog s2exPDJI4a7khjCU3mqDzSM1BWyOYA2LXjlUFbZFbuLsDRvC3VcNywbTmoxBqSAXwlR8 uCD7I5dAJNY4TcHBU+MwdrAycwdtxDIypzdNqmiQ8FQaP/ZE5C2/GLT+lc0qVy1rZYHh zMcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682078; 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=33253isHt4S+J+nSLFy8mmWQtMLkRh8HjGdIrP7lEuQ=; b=X8pMTqlfVAh9EBK/5j6V2oFmFdI21RwF+uGZZgSshAmKRh7L5w3INjRuHrVYFbeaJh 9z2juSZ1WV+TvEMMyhE/nQa+9U5JqjHGspJpz5bHMzB55d7FXLjWdfEnXTiL0gGy7bf7 Cxhr90qFL28rHlY0eM6enbfZQSVY8UEG3DSEq0Dd9dIT5y/i1iCsEdkW0UHSAgqbQJgq EMgKQz0HSz5Xold9Fmy+DaIU4kRIzLSxc2uriJCTbTPjZp0kb+Y6cO8P0YKtW7zD90ko emcoIEScLlN2tYPPi9YSCjXO3inSdosEgU9+n0OZDb4B4H0xD4P/vhfQrA0+OQ+OQNg7 G4OA== X-Gm-Message-State: AAQBX9d9ET3IPcTu7j4nQrEC6HPVlBe8DNSVLVRD9KdcLK0/94Dfboe1 4Sc+AJ82tNLqObk414Qtavfid1cY2r5eaCwkcgQ= X-Google-Smtp-Source: AKy350a6vYxum9a+B7CUUnBSWwVcA/VkgqgawFsnIiacY7QtYMO9m0nHPcUziXUysydrFPVUfZdi4Q== X-Received: by 2002:a7b:c5c1:0:b0:3ef:67fc:ff02 with SMTP id n1-20020a7bc5c1000000b003ef67fcff02mr4088941wmk.7.1680682078427; Wed, 05 Apr 2023 01:07:58 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d4-20020a05600c3ac400b003ee8a1bc220sm1378395wms.1.2023.04.05.01.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:58 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Apr 2023 10:06:52 +0200 Subject: [PATCH v2 10/10] memory: mtk-smi: mt8365: Add SMI Support MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v2-10-60d5fa00e4e5@baylibre.com> References: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> In-Reply-To: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski 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=1318; i=amergnat@baylibre.com; h=from:subject:message-id; bh=z26cWVr1UM3WDlPLOHdYFNM2IHS6opWfJrlRsd4fTCY=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxTsz6MktT8KmhJmOCte7lvIAMRb5YfYP6mGtBz Tuody/mJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUwAKCRArRkmdfjHURW48EA CY1vLd79NTra4MIV+COGshV23I/tjs0l86iK561zWyv6IFf6I6eV4l5XJo9t0pM+H35/79rGeCNZw9 Ru96C6/1sPUSEK7MccPSyavM/1pMv0VY9DbyFYsoKmcPcNjrAWpiCMTNYhkN/NpMNOPPTRHcBn5Ts9 lB2jkZkcwEX+aVYIoJY9Nn3lAUyLFs2G4EX5ut430Q52qgF/6tLgXNg9htaYK3BsL4hJkD/jQ0BJaJ ezvB8rnPno5pS5W90Bi/MM8R/bCKZn5JQsjw2CGPPEmHFBksYCMrg+1eaQSEvqJlgNYSA8LeDQ87V1 tKmPavZBUH+5zTRA0boN4bNO6d5e4+CQk8xEoPPQZwFmdtuxyJHhLzad+okWzOyfk7vVd8Rh+oIXQO MC1Dz2eRp/sV1QlHsZqJoPLP3wHgTeQG2w5iY6EIGQE50CXQXQ0JAbk0PaZq7FgTXK+bGwVk6Wk8cc HVxN57HMFJxvd3gZJaFKPak98NrK0jEA4XAZVF9SftZmO/7dCn7t85UsVSBqck4IkVr0ZW8BFm81vB qcgUoLW4uo+NI+9Zfzp059IUV+jdZieNKI1rryphymiuGNSTPH6u9F32VoIjcDVfY8CAX5HvSIrIvH CDxM9Aw0ddm8mRxjyK8nevYIlQcbu9RvAlkTtiwjR23FqNevGEdAtFNb2rGg== 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-20230405_090801_773152_7C34E452 X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add MT8365 SMI common support. Signed-off-by: Alexandre Mergnat Reviewed-by: Yong Wu --- drivers/memory/mtk-smi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c index 5a9754442bc7..477b5d1ffd46 100644 --- a/drivers/memory/mtk-smi.c +++ b/drivers/memory/mtk-smi.c @@ -713,6 +713,12 @@ static const struct mtk_smi_common_plat mtk_smi_sub_common_mt8195 = { .has_gals = true, }; +static const struct mtk_smi_common_plat mtk_smi_common_mt8365 = { + .type = MTK_SMI_GEN2, + .has_gals = true, + .bus_sel = F_MMU1_LARB(2) | F_MMU1_LARB(4), +}; + static const struct of_device_id mtk_smi_common_of_ids[] = { {.compatible = "mediatek,mt2701-smi-common", .data = &mtk_smi_common_gen1}, {.compatible = "mediatek,mt2712-smi-common", .data = &mtk_smi_common_gen2}, @@ -728,6 +734,7 @@ static const struct of_device_id mtk_smi_common_of_ids[] = { {.compatible = "mediatek,mt8195-smi-common-vdo", .data = &mtk_smi_common_mt8195_vdo}, {.compatible = "mediatek,mt8195-smi-common-vpp", .data = &mtk_smi_common_mt8195_vpp}, {.compatible = "mediatek,mt8195-smi-sub-common", .data = &mtk_smi_sub_common_mt8195}, + {.compatible = "mediatek,mt8365-smi-common", .data = &mtk_smi_common_mt8365}, {} };