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: 79486 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp132180vqo; Wed, 5 Apr 2023 01:09:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZgehxBurS9N8yEw2fwXyUpPQtglhZK3jnWGCUshVKmKDWnwBgugpK7Wm19v5fth0L1GKgY X-Received: by 2002:a17:907:7e95:b0:932:f88c:c2ff with SMTP id qb21-20020a1709077e9500b00932f88cc2ffmr2003109ejc.34.1680682146040; Wed, 05 Apr 2023 01:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682146; cv=none; d=google.com; s=arc-20160816; b=TMQ0+09UUK17ErYZTa+8SFiTT2dVQ1HcZwihC1ruWjJQQI/LUTbGr+g8F0Q+8jDaOR q/yuKKorl4sQHPT6GCgUwTNSGn4xwWlWk7VJLsWoVJ6t8oSr26W49R/0lg0HTPdXtdIe 5q6TwR5HOeUftI/ArbdOSyHXWIadK2kcbWjxlto1ESoSuubayeq2r/KXDQFnKXEr+pE+ 6Y1PlZRGYuYG8oXM3HAblyhmozjDTwp23/mv5FuMgxs4nKYVHL6IsKYPMzNP0iOOmd4/ KcgvwghouaIACvCmzw1XbW8/efvm5Mof5jBfoYwg7SEwIGrrld4MrGtApAU/dXizSwRR Dvmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=yJjfak4UG2kt7LD+AoFzMT7Gsf1sr+ZsaQfW8YlBLvI=; b=tv7yDWwUFD6my4goaLtEOxEmKhC9CJNoz17o3VeAlHC4gasrOad6ruSQBh8ED9NSxA f24xWj/aDl7BLkyxze3e6nzpE42AIGdsLafK5Y4lGOVfns1VVFDpSQ0VRRSeXNBryMAO KfnWxqp4e3jjMxveOmkQuKmu97YY8xoX+csN1BjLNvNTpun3gYxf/B/k+WKWUPYE0z3u kFF0BthLKYj09ObLyHM7LyC6aalU+wnBTem2EgEVjWhxscDDr2sfkymXK6I+pBUux7ot BG+rxRg7Jbfp7532bUNwq5xwNvJDx2wkot6sYx4tsaT0rvtztDHBWCqc4q+AXIKOsAmU E1Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=OCkUFW+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a17090628d200b008ccf9fd2186si7318970ejd.867.2023.04.05.01.08.42; Wed, 05 Apr 2023 01:09:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=OCkUFW+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237344AbjDEIIA (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237319AbjDEIHx (ORCPT ); Wed, 5 Apr 2023 04:07:53 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A37449F1 for ; Wed, 5 Apr 2023 01:07:51 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id n19so20385925wms.0 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=VIGmEMpHdL1I5qA+ifPS7inQpF9m7XSgU75zzPpHedRTQ/7Lz/SGXveoWhf7giaTu6 DiyIlBUl2wgJhJ8eMx48+BQc+l754n1VkEuB9LNy2MPg+Q3zy2NJsK9T0mFmmLMKBL0t eUbipXO5krbviYxcZGDEX6hHiFMFD7dsKVv+LWBvtT6HL4zDWaEgzq5rafVAZHSFNI0r hpEBDQJSf+EC/UFB9oKe278U+Y7NhJsrncTETr8F1jr02ij4aoFwrAwV5Z9eHM/mvywH 8ueJo7TEVL7sOD2RaycvjaMKJ79Ma6GEFvPi/fEy6HJBFuQ8us/9nDK5ntK0j2Khh0+3 ANng== X-Gm-Message-State: AAQBX9f6togoG7cRQ3bF0OjX4McWiRRhQ1cI7RG/YX8EvNzkDhSVqweq k3b7k1FBnbRFQze6cd1j6E99fg== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762322961979774740?= X-GMAIL-MSGID: =?utf-8?q?1762322961979774740?= 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: 79485 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp132146vqo; Wed, 5 Apr 2023 01:09:00 -0700 (PDT) X-Google-Smtp-Source: AKy350aHB02ayq3Jz085w18Z5KTlFt/TE92qmd02uzbc/Pe8SoBpZZP62vOFtAbl8zcFH5qEnOxH X-Received: by 2002:a17:906:ce21:b0:939:e870:2b37 with SMTP id sd1-20020a170906ce2100b00939e8702b37mr1851214ejb.70.1680682140633; Wed, 05 Apr 2023 01:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682140; cv=none; d=google.com; s=arc-20160816; b=YnD1wa/UfJwPiPbwKENHxBSpBom0JWM8ECgdXXeRk5WFybYI651FM0YEEFqIRUFycu FpqCH/0OWRAPPnLYQcd+wVOfnDmAXSVf6iulHYZHvS/fqpD/LE62h1Ygkv3aT/5bDGa9 091mmMQtbhRcLscjYBRSrMuWCwek7hpPWBXPj13mRLibWklHiUT2ut4+FfvXAyIhlOam DN+V0Nx4UyxfChvFMKJuVv4HPVHS6e+FPmRtuDlsTGGdqu20X0+PKbe+98OyYOvo9z/j gPPGzIahp2yVXkH1oRZnwiKi2qHk63dWNAAp+LP6Klga3IH92wTtUtdTSC+G6KMkEVdM tjLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=9gvRZGzZ81MG5/Kz7opKkMvHNkqBqpdFUorIdo7o5i0=; b=gRaGl896UOhjSoBz5YxmI87o1lY73i9aGSwSJdaBpbwelFRRPbd692E7+6JWhozfeX k4nmpGsxIBgeXKhoToiPjWrRP+8HMPmc2DOut2muM/FBoTUBylvsaPhFKSNTi7nQZsGI b12sSgMtAGx+crQxNNgjwjz9DDQ5c2kSzV6cw0PpPCfyqivxQYOBhsiW8tIVLXs2SuQw NlU2ns0ePCzs3oUZNIs3Mfiq4IXQEs5tvbGYaC7HACt8bhppmix/tC2XHuKCgg4yzxhG m2IwIRSzrcLS8JSFqhODX3DUJnHC04Yg/uZWNYO8qD3qv5aty9scJbLF9T+xDi874ZfW RDFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Vh+ARxw+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot7-20020a170906ccc700b00923c54e9ad0si10994746ejb.585.2023.04.05.01.08.36; Wed, 05 Apr 2023 01:09:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Vh+ARxw+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237337AbjDEIH6 (ORCPT + 99 others); Wed, 5 Apr 2023 04:07:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237310AbjDEIHx (ORCPT ); Wed, 5 Apr 2023 04:07:53 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3357A4EC5 for ; Wed, 5 Apr 2023 01:07:52 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id he13so755703wmb.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=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=ITR3AAmuJqL2rRyJ4h2qk1/an3lXx32/RfXmeVHh69cWx5jmwIairlY0LGzUd8oMia xp49JPtZr90FofTScL98NmyNV2ImPHNBIdNA38XuK5oS+rBF2oDSlGzdeARLHg1a4Och GD1FKYyQWrZ0nToDS5mTR3Tm7lZlR/KxYSi+2kcpVKnhVTUVs6uAb30fOsZCwgRcAInS g+OkwIn0Wz33kpimFMAlJaJGDDONGczt8ogI5GXBk7lgr6nlIGlWXQE/F3ttWgHlUzXx C8Vu2G5aFsp2sWMka5Om8g5jrMR0V6o6V7/swzfvQ4tDQ9wqcHbzYJCmCvdMyAU0lNpR SX9g== X-Gm-Message-State: AAQBX9drDEQ7DqumrZ0J5SVS/hgha9z6uq1mZjSdOFFr+RZgF+QVisb0 7l9BA8F7QOW5Ka5X/Csszh2ehw== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762322956263971917?= X-GMAIL-MSGID: =?utf-8?q?1762322956263971917?= 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: 79492 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp136443vqo; Wed, 5 Apr 2023 01:19:12 -0700 (PDT) X-Google-Smtp-Source: AKy350YTgND938Gk135AG1kqXLAaXIL7WRuHQDGv1MLlqwe2TQQg9nPYn6Nn6KbjAWIonvPuwuvu X-Received: by 2002:a05:6402:33c:b0:500:50f6:dd34 with SMTP id q28-20020a056402033c00b0050050f6dd34mr1242859edw.1.1680682752484; Wed, 05 Apr 2023 01:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682752; cv=none; d=google.com; s=arc-20160816; b=BZrqjA8TJx27d179NjvMqKH2SoCl6/JbFqHcadRgTd/ThEIUR+xPHVYg0JBjROoSDr 78wAT4AM9cvnvdUa4kYPgaUxy4fgubQBt+tDeoXEvERCOwkg8CJZhrIjGKAfOiX0nc8Y HRxv6zja/nJShkNnWQuhCvNHNarwA5in0tB+wyZ+ULqxEgTDL15X0AObe8zjOfiEquwY 0TdrUpbQmEVMjYGtQlRVNhHgNGW2o3KBnmZDagj/XYINOhKi1Cx0HqfEz5KUrA6V0qFN tpt1us/Jt7J0J8rgp4I4dbNeLKc/QAuj/6FvcYCcg0QxXNn/D2pI4LbAXDZJYeld6t8Y RYvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Jxn+TRsbL2lgiHIWio+0AzhmetW3gojePjlFvN063GE=; b=RlvjtsKC6GcLABZ2vxHdUrlLJqSljfh3mraihZW7n7cjxRiSaX7YJJARaULoieEDV8 u5MyrfxUF88w3IZ7mszUfGkwdPY0U1mQqb9MCaB5Cwq40yeSOVI0MHsJUGl/dRl2BUvj sW3+iDpEcPzY4W7eQDnudOHtjz3+WNQdEfRPmFg8c4hHRwoUQ5hI7RD+U6c8/bK9lZqF wNg9Gyx/JeuXNP7H2r1FC/FxH8OPzbToD8d2xLZQT7qv6d6gZp0M8Y5fzvRAuwQForO7 65VARzGRyh543D6whq5A/KlFYP+5BASz4+TAZfOwy3oTZq84lcyCSEgFt3nF3IOVovcu Ss5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=2v2Okzuu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz5-20020a170906cd0500b009332fc900b7si1893932ejb.425.2023.04.05.01.18.48; Wed, 05 Apr 2023 01:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=2v2Okzuu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237358AbjDEIID (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237324AbjDEIHy (ORCPT ); Wed, 5 Apr 2023 04:07:54 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28C6E30ED for ; Wed, 5 Apr 2023 01:07:53 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id l10-20020a05600c1d0a00b003f04bd3691eso6548269wms.5 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=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=jA0mTLXCX/10WidrMnPMOt/6ktt/T+JiummzUHYxfgoMlYEvGarRgLuC4ZMVA742bL iu1negxRDWtez8Gn0nlVMOuL36i0LEe5u7ctRsbqCgqJNsPdZxOHxi86sOg4+Hv0+ELR +USTOVpFQwgMD7YTW0+zQ3wsjpvWntcU2ywcMrQuijqz6kpnYYAOiShgzJP6JEVTAjIq 5TR7CFeyPGRJXntG4vpNyLvnpbpMG2OQW05qnBlqY5nzwXgkRex4NElI6arCaYz6XRZx YWS3yEJkizXhtnwJEHDX4SUUZ41meJkax598btqyCxz8TxdzdXCLKM37nhML2QbkLUMD rS6A== X-Gm-Message-State: AAQBX9cpqLcqbw4yA8L6jjULUO6/YVnnwLIxT9zJ/LHXfAxRnNWxTmgR nZhzxlnRrJONg+AyFuOMY6xGvg== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323597815065463?= X-GMAIL-MSGID: =?utf-8?q?1762323597815065463?= 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: 79497 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp138585vqo; Wed, 5 Apr 2023 01:24:26 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/5vaA6W4Ccz2Wdpg9HetaG0L2wBC12IN+12C61gdmztlFfUYsPbDahkH604+D+uihx47N X-Received: by 2002:a17:906:138a:b0:920:7a99:dcd4 with SMTP id f10-20020a170906138a00b009207a99dcd4mr2220281ejc.62.1680683066317; Wed, 05 Apr 2023 01:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683066; cv=none; d=google.com; s=arc-20160816; b=RVCM7A+2Cws3LECK1ciuCF6Uil05TSrv0vDRfXnz4pJsCeFUZqwywj/Jk/U0RAHVtF J8cmaR48f+p2viyTgvlYKFhbkKWeaxnONAYVkkefytcI4yFI1D5L4eYelmf2qAd3jjAd ePi0oQcH4zA5/NEx9MeOae/TKiUfOUH/kEtHT9ZbRi/o1w4REukEOGl/Kw37LMHJ13kP UX5UIZ/V8hrX6gkMTgV82+kk5jrOlg/v0+I2+Z0kAQF+n+p7d0AIxPNbTmZ6DM0jQvcR JRIA5e8g7BR7rueWDKNnEz8rKLJmY8HLEzVfGJn5Fc7HgMpmgjbJ6kQITpN1un28z+Rq rb2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=YHYOqnIdeZEQQSsG6kV/waTEgcH9AADMsfaYGJviNTM=; b=F6JsX3Buoh6co6AV1qJmIToVSYSQor40Mp3XuEQkkCBTVT2GUL54kmXfaJjUxWeUZj kT1t5GpdbKiu4Yhb31FlHu6nc7DONRbrMGe7rrAr5ZwbqwcENBf2zXxqBKNB1YRXkv+Y TRPKFvuhCx+n0muwifSP16GuRTynk7z+tgasS9EUeWyM7d5VHBOubxlpdgBnk1vHiwna vtjTj8jVD2f5sNl/osOVHEvX2Ffdjdjew74N7X0FE4x5lXBPElbxzFtYpyTIJ5TWecKW jUcPerI01iG18JJWnt9HjTxBkbtA2y+3chZvHAS8RX79HCsBLqIDu5sErQwpp+B9qOwz 2UNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=NJfcutid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt22-20020a170906fa9600b008bc108463e1si221399ejb.98.2023.04.05.01.24.02; Wed, 05 Apr 2023 01:24:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=NJfcutid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237369AbjDEIIH (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237329AbjDEIHz (ORCPT ); Wed, 5 Apr 2023 04:07:55 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 080CC46AC for ; Wed, 5 Apr 2023 01:07:54 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id j18-20020a05600c1c1200b003ee5157346cso23185026wms.1 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=vbPszsmzVRdRfVTq5ndAUByEbVVSqJx5LTo/32vNPH17EJSpSzvNxUgswufmIbPD4H aV9eH+16YRMYkvv+TC148jDKqUFJB2AoM8s2FQlHPr1hH9rPxbd/ZoMIzTXKExeAHrAl al2i3wZ9UG70R3msiUKAJi6pwhhpaEHVE1SC18r+CZXe+/UOoMmS+v16Aa5PTEbUtkuv XMT0KSC3pp6IRwNPBwje8BZV3aBluTKQUIsktmUytwIaQbvaIeZM1Nkl+F+YQeKcW4aR ZgtF/RWXlDTfHyg7hPQy6X4kgjlGVQpovpstMWMnNKHvXbquIRLpVAmi95CjZNmVLbQw BjLA== X-Gm-Message-State: AAQBX9fUUlCXEN/FG6zNrTfDIR90T7CEaZJP5YeyebCG9C7TLdQNjwvZ zrOwbTu0g+1SvwqYHCMsgL1S6w== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323926910192135?= X-GMAIL-MSGID: =?utf-8?q?1762323926910192135?= 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: 79490 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp136316vqo; Wed, 5 Apr 2023 01:18:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aihFlhjcmLEEbB8EcRySZy2LTn7uoH3NOH/ZYDseoAr4uIxQGG8cpqJ4dFesevjBCoEZyU X-Received: by 2002:a05:6402:524e:b0:500:2a9d:1870 with SMTP id t14-20020a056402524e00b005002a9d1870mr774779edd.13.1680682733990; Wed, 05 Apr 2023 01:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682733; cv=none; d=google.com; s=arc-20160816; b=KudNZoVhJcdsH/xf0vmxmnChA8EnGajk28y68yDWssN3xk/MwhRS/eUT2QNPCOrHKH Pd1/dU6/mFqPA8FcTs0thjwMtl3iTWAIV68FBAlYQiXyYR057Sr+C5FrPzn66UNeKak4 1TlM/zVYi4ggvw7c8AkEMD0pKtnrVc5V8zx+iBWVjUrj/wqXx+SriHHsaJS/w3pH1kcc yF4V0unvAPhh/Y+lPNTnjsFE6q55rFhPCIEoWw3D3NUpQPeynBi0lKQ0b4ardAjDrU6o pUAxom8WStAE/uKDtA7EBldCA9W76QyxyTd80zW4krYSfurqxoeTldfSHwFnFrXv/KTO FwUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=70JWiI3ir/yodHMirtpCr960hDJucp8ZmgOAZyHHfjo=; b=zCio6T6uPjCZ0ZjCs0TvNV++wwHsnB/zRqKMBZwfFEGbbBiBkiznynasrRwuIFHjlQ j0fwNyT1wy61C7c263uPn/bl5rj86Wa9QZJ+KJrGViRwQD0GYagCceLBYJDJJnerF8cH 0PZgxL/2w5+Rh6rHkoMapNYzYEqY4hKunjtLJWOKuZCmWxTWeyt9GqaRYHqc9TInSKMP GYruNrVSe+MKqI9vTr9JswZB66pha/94uWcxkN6N3dene5tthWEYrm+W+ctHXDnFAXyW LcCFHLrC1Pim8nVTXocFHjKbrT33gPkDjIT7DvM+p/Rr4mzOh2tr2GJGI55rixbKLMgV +1GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=UIeNa8V4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by28-20020a0564021b1c00b0050047ebcafesi59976edb.496.2023.04.05.01.18.29; Wed, 05 Apr 2023 01:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=UIeNa8V4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237322AbjDEIIK (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237333AbjDEIH4 (ORCPT ); Wed, 5 Apr 2023 04:07:56 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 264FE46B7 for ; Wed, 5 Apr 2023 01:07:55 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id l15-20020a05600c4f0f00b003ef6d684102so17874124wmq.3 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=GXhDP7tUoQpAQAZ6/Me04D5ljpdvXChEIMQ5tQf8GJHELy7hg+ID6c2BG6gMwOdhYo 74qEBmF4EgK1FIJO0LjEvhPM0O8zKYumyAsd1ladjjf11yw/vtqGZBbGCXlvmWE+oK+h c5paT4xfpcgZvSk04+CLXCZfdpNVssE1O7wPopobjX6N8x0m013XDKibBotgL6F9b5fL R+JXtYaE2X7KuFBZTe1qUEFTonllMrQN3bLH05v0UjlyD6Y9VHwSa4lQEM8/euOWV9iB VmjGLV3fNIWxvyVfdFy8vbAcsXrI6E4KPuOYItNibMTFZTarHQJsrqkCEZFRJwjycvpt g1ug== X-Gm-Message-State: AAQBX9eW11+ZjkSLLRU+85N/anA7SHhYew/hyApC9MndryeMO05M4a8m SfXBvmYEJOXA80DBHRj3Mx4wjQ== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323578426112396?= X-GMAIL-MSGID: =?utf-8?q?1762323578426112396?= 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: 79496 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp138309vqo; Wed, 5 Apr 2023 01:23:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKcRNld3a3teJziqAQdexT+iIvTuBCjX8y80dVBKmscy/YW7hzF4lX6Mhjq/g1Wv+J5Tmm X-Received: by 2002:a17:906:4894:b0:947:d757:d822 with SMTP id v20-20020a170906489400b00947d757d822mr1879086ejq.68.1680683022666; Wed, 05 Apr 2023 01:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683022; cv=none; d=google.com; s=arc-20160816; b=Cv8HF8UHS80t5OY8kFqdpz+tw89iPZ6VmCuotkanOcObmbi9dhp2jHRJcC43HB91bZ k6LSl4hnjZd3KFfVijhKh5xlh8kW4lLvdS8n811xsyHwEvID3urWNDRw0jZtz7ev9zII tgl+Xfm0iw8aIcK/or+SCQ/lw4Qe3012AuDqqFq0EQFeh+jmcd/UZ4O5Pp8LodGLA83I 3fAhl/6D+GHW6XmOcQLl9/gkCBB3Nz8YtVvq7yzGb6837ZALfH5D4hIRfOlBhNiSd4ho kXTe0+3qQK+5xvhRkMQtHC54rwTSaolzfReE+ECYZZwkzpv53JBhy6btnsmywlTOz9H8 1SRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=3KFcOYEAi46ZIl7QCtzcN5XD6VlwA2hJvytxtJEenkQ=; b=SriV4nRRcIQvt9EJH8vxEbXlShIgdskM43RlMMn5Al5OkLGmDtHeB7jy8KM+43MXXK jSu1UedQSCWQb6DPPFNgVOCXBS8vbxDVLVDFbNVwsKypGah4s+M1LUS5SSMc42+JmZlW BNpGnWyTqrJ3crcAuxwh0OzKggZS6Ki0Hxs72MHCPcPPRrI4vKvm3I1fMHWdiPXqH4ox tBH7Y88Di9vFM4HyX4AT8gLjAmMS07FpOJFWSjFfiuv7BKn1ISzok3y+72YYnw2ExRK3 seyLWea/FbokhDFhZqLA1+NM3whhzrOpb/5PhsZRCodXfUl1PCltFsQFN8BF/NOUTsGV +Jow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=vC37SPRu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ld5-20020a1709079c0500b00931f078ce63si485520ejc.278.2023.04.05.01.23.18; Wed, 05 Apr 2023 01:23:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=vC37SPRu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237398AbjDEIIO (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237294AbjDEIH5 (ORCPT ); Wed, 5 Apr 2023 04:07:57 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2993E4ECB for ; Wed, 5 Apr 2023 01:07:56 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id o32so20364566wms.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=pQjv4JslI1LYZR4EFai9WMShoT/txhzFBxNvV0B8hlBD3lgp5ap5ePjVHKFMLgziiI 3Z8wHqxcOJXM36tEMkf8U8C/mZ9Tf5xN+KPFuTrirEdXslrSk5JONuYRAFQXA9nR+uWU EUCs5HmyOLRGR/sifIQXVGw8OsVNrr+U8FUI2+KO7EZnqOSYhf4zH7LCutb5DTK7xLGp Tg0nnQ0GlhytewSvdOW8O0xhy2JUJc+qzjMuqZW4FZctiLnfAukiMgrwid8fU1wodYl9 2TZeS32VyIs7qkakBvJQNResRMW4/eoC4rWB3/rw/FKhkwNgFsFcX1sDmKqky8bO4S6k oXrQ== X-Gm-Message-State: AAQBX9ckkLUciJHbgDrFRmatl5SQylcc/2qVfuXCgR+GThFj73SSjUCB 8RfVKqTNALzSQIK7gNllYLCe7g== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323881278126463?= X-GMAIL-MSGID: =?utf-8?q?1762323881278126463?= 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: 79487 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp132308vqo; Wed, 5 Apr 2023 01:09:26 -0700 (PDT) X-Google-Smtp-Source: AKy350azKqcVv+EbIYOHR8aYCIFsb3n5473imPrZIDTv+aqknW5IfmRdqZ2m3ELcLIS+2/DWAtpO X-Received: by 2002:a17:907:75d9:b0:932:2874:cc5 with SMTP id jl25-20020a17090775d900b0093228740cc5mr1881269ejc.16.1680682166280; Wed, 05 Apr 2023 01:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682166; cv=none; d=google.com; s=arc-20160816; b=E4Yv7oDTD1Eqs0wMNZfbqfTQ5cyCckYyUStm4T0MPnNTjKstExlyvN4AJbk/mYJh5B yhZP6LwbgMj9LRnzf7hG5U4W/mdD5xV/gY02QkkmgYG0/LLcNCwReAtWLvTAItKu4BDa LxnqpuvCKhnmagh9PzPC/Wne7QPaY1Z73hNvm4JtbqJ4Xcx5nouJKq/IickQNoZwU7yJ dsgZwDSLQHFB19Bsuq3d94a3vDSALtVfqUGJYDDrPzhc4m9OAW/hVvg82jZpn4AIfo4o 40O+E9n6oFHJ8d5UvFjQ/E7/i5uNGON8sCYlT56VD0o4D6aHc69vUDtG84B3Kv9SpPjR Cq+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=tORp1I37+JIRNlLfmuNLwniBkIh0XbsRy1El1Qwfh5w=; b=q2eg8x+KZD7tjG86EgMVoXHRysp5ND3N1UYITaQ4weoFR1kkdjjH75pXd4jhOp8u1q 9he3XmOsuat2wMI+pVqA1lI4baLRDGBCTAggO+V20tKI6A70PX+VMIuZ/Pqjsf2YHh7I jvx3gyzKJcTvD3rvlwzOQa5dW1ax0rAm39Jgom1vq08sY1XX8LSZTQrYb+VwSc3CcPwH 84QyKzwVD37QDO9eQKQwv/UBL/suIMbJUZm2cOeV0QhsDNe+WRwLSoP4E+YTPBz5KNoC BMy3Pj9ZGQ3meODvclMiF9NsLkiOBb7yX4EpTyhFzSIoXpkaFenLcGCJ6BrxowoFcVdP vUZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=eeP894lK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pv4-20020a170907208400b0093ad46081fdsi3383039ejb.6.2023.04.05.01.09.02; Wed, 05 Apr 2023 01:09:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=eeP894lK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237394AbjDEIIM (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236950AbjDEIH5 (ORCPT ); Wed, 5 Apr 2023 04:07:57 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6A1E95 for ; Wed, 5 Apr 2023 01:07:55 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id n9-20020a05600c4f8900b003f05f617f3cso2303154wmq.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=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=ehjcBzYexDAOHBiwEKMVvVRvaeB/5qWNuB2wETI43GeeLnFUMEKpXQLuZ+gKiI0rmE DwVED1NJaU7HXHPiGPbBPwewPfVx/8apUZNV3iojYs2au09ZrcibQuYbP1Km3UKzrXls bvn0vQYST/KA0texd5f1nWNPoNq5WlRh+toCQoft/eso+VMp6tu9VClkO9RYhJ97FVVX t5i3RZsoo+Un0LnmZgh8QKrFh4dvDsVdA4975653MGPRewFISNcFLcclEshG5vGMpISd zLZGyJ5sJsWx8vlznym/2PCA19Eicjg9liog6g6nf3Gpak9xcUsb5PGdqY/yhCLSIDrt zqag== X-Gm-Message-State: AAQBX9dSuaw3rQ292nSqncEEe1sHK+eunOK/mDJRevTcXTfXLZWKjRwV ReHqQsjm4HnPD1Qv7iW8USCPQA== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762322982911652427?= X-GMAIL-MSGID: =?utf-8?q?1762322982911652427?= 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: 79499 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp140596vqo; Wed, 5 Apr 2023 01:29:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ank3cA4vcn7mPLuLQJeNQmyxtHM5/2WrgpnblyNygaqWHpGGAN2xtoWVdJ5JAFZXQcAEfL X-Received: by 2002:a17:907:9723:b0:92f:8324:e3b7 with SMTP id jg35-20020a170907972300b0092f8324e3b7mr970721ejc.37.1680683369150; Wed, 05 Apr 2023 01:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683369; cv=none; d=google.com; s=arc-20160816; b=djdP+b/39cEW618RRXcd/L5lsjPq0J3sShA6HN3A13NYtlw/+V2nwu3a/J3DU4B9zh bbbD6bmkaQK1mICeQmDrQoy1xwnrfCQTESorO7CFqVTvX5+ziwfvkjC/UszmtvF9dOXJ 0mB0aI5Jqk28/oGoZBZs1FoidaYejogaWeqUyf7laNOnnT7IzN9cDNiHRk5gXsgDQSH8 VWuJZLIDRvcRoqrvTKd/++XZ3nyHq/lHTFeGnKN0bVGeCzW0F4NAW1FhAKuTuU1kuEjJ o/mL2PgWpP19qxbCDThFmKABFVLDa5QXhjpROd35mMuK8ja8U41kdkRAVpobChyyFYmw qZ4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=E8wkncoEW3UcSZNKmP1QjzM0HpYGIsR05ILVR35YRK0=; b=rWgmFrUfSGR3ymCU7wO7peeaxZRG4FOHHR8q2fAz65TOuZLCKirzIv/0MPrjDWfV3j uobxvtzpWvkJQ3jnzcK1/LqcTvqcWlVfjQIJ2ad2upZr1mAH3y/8hx5QrJjOCFMRFciR jXn27DGJp0TlGmwUuSbhSilJh8Bg2hilt+6uoy3HuQXK7ccpFBNrxM2EEM5QDpIoQpoX C4A7LGAoMfmXqPokfTNISpTlqDh3gAvT6/il7fYuBSHS6ajJWYOceNzMUJsv5WjhM+wU fU/CHn0MBRqCPeodcwyipel7hAIwLCA1tiCnwLkA6EDFMCNb/eI3DNRxx1+n4P+mLouG IryA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=CSOBRqhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ko26-20020a170907987a00b009299f251a20si852897ejc.152.2023.04.05.01.29.05; Wed, 05 Apr 2023 01:29:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=CSOBRqhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237414AbjDEIIR (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237335AbjDEIH6 (ORCPT ); Wed, 5 Apr 2023 04:07:58 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7864C1F for ; Wed, 5 Apr 2023 01:07:56 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so21461429wms.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=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=Tlhjr90oYgbCErigty4pkp9laQj4FItiIeMOKQC6ClYDhZiwj15e7AQkCU4sB+VfKu ryvNgjAeCzUKB/PG+d4YkkXsGuXbbDmqyulBP6n6rAZOC16er+pCAF9YWZlHYnuNf71H frY2KjAwl4jhK3hXEl9t8oOne/aPcfVkMW5CLuV4j0FH3QOI+K5O3vhY6M6LEtMEZMRF XbnRFRRpJowz6CTZ/SeM3TXgW1qrVd5dsxhAOP9TlGWUlHR2lFlsliXx+yHjocJYiUC6 lstRtlmpwMd+gBg9yzqzkzkzVsmVr7DAJyaH/fKZQqheCfTQ9m7pze9R9aIgmAlg+bJd nF+w== X-Gm-Message-State: AAQBX9f5MrwmvoP2hweeHuSiWc5AvCfJPwCVJe932Zhnx5mjmt021SKA FGUjwvKpcisO0MbgvXPxQGIn5A== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762324244456843657?= X-GMAIL-MSGID: =?utf-8?q?1762324244456843657?= 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: 79491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp136432vqo; Wed, 5 Apr 2023 01:19:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YdcNmVZ6uHCWGa5qgAZmPDjgyddFtu7Lt8QszT8vloWwWVKghmug7ix0H80xawJHGC7JrB X-Received: by 2002:a17:906:a20a:b0:947:76b4:f243 with SMTP id r10-20020a170906a20a00b0094776b4f243mr2168066ejy.39.1680682750609; Wed, 05 Apr 2023 01:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682750; cv=none; d=google.com; s=arc-20160816; b=kye89XM8Fqi4P3UTZSAwqsrTvcegzxil5odQazUdorVSe0oA6bRPPMNGNLaTy2fpEw 1j1W1KkmQxgmCbqW1fEBXO974wN+sr0B9N4PhsKir30kxk8MmTGLth8lphWmgGNoIlCf zh3K+2ZcOymNOHheS1mpwkikysu3eko/zc+YvRq05WpbY8V7WbjFnAZOICrMVPY+fhgD cD1uaEhfRHtIK+kNkD25kGpf70kz0vPyj9duH0m3cxRgepVUcsTA8Fw5c6+bvvJhyj1n zkxNpMybKqRX4xyRjglxnd8MpOkDicF9IZOqcCp8IzscSfKA7f+K8qAfZl9FudLcl8Xx Cz2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Ty5wIc3Z81+kG82VSRnC8Apz5DxLYwgxvYQ6Q3KABLA=; b=S5Fi8cFRTGJkCePGyC9F+CJJ74JMuUFaql3kLqLoAgev+bn898G6Yt1yv3P/3EG4/W rBu4PwadFFMd6ydV1z3IORmRZdXlTXKl3tCTbySMRFO8TL2iiCs+yYScmKakcPabLNU5 fiEhF0oOW3VIkPRjyC04Y5olPSamB/0MiPgFgs/DF8vMWs92ULesZkGm9A4KtWqrUnpV FZSkf2mu32uAUMx494py2dHg7i0Ixtx693HfNRM6X4I1rodS4QzzuTg2b3WdTTaNZZiF 4LoAYWqkI1Sv9o9AMkHZlAFYxIvx52jNU2KLwG2yfiPrGs4gmgP221hANCRqMZXcxAS2 8w0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=2ZcQ8cMX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id re28-20020a170906d8dc00b0092bf128c4e5si8743272ejb.192.2023.04.05.01.18.46; Wed, 05 Apr 2023 01:19:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=2ZcQ8cMX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237364AbjDEIIU (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237341AbjDEIIA (ORCPT ); Wed, 5 Apr 2023 04:08:00 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD7F8197 for ; Wed, 5 Apr 2023 01:07:57 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id v14-20020a05600c470e00b003f06520825fso525624wmo.0 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=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=JzH3wM5lAKReDF/4GS2mkbfR7ZXagDPtlZjmv/KrCZkJR+EDrwp4HUdtIpk1s7U4c9 YfeYMdGVV9+RS6YGSjzXhuO6KRuOUan9BaFQcUHMfQecRlLSZErI/8iEeIoSyOLxw0+V bS7YDO+eS6h2A5VTKOmYwQeqFZqwq3vTp6Ze0N03887HEe8vb36lETxJwqrir3BuEEin lfyArSuRfNHoJMXa9ZU6ZZM244Titz4znCoSELVBJGGGjk5NWCfRrpS7ZdeNf1Ol50mZ fbM5WSgaewspzaCrdjwq+XfHVbeEiaNFgmK2A6MTyVNvzjoZzt6ExLxEGq3dVYYaeFNY I9FA== X-Gm-Message-State: AAQBX9eB/13g2wyqYdNMlwVqkioJOijTZZSNBFKrZQmsNkqcn+wMyEaz yZ5nGCoYNHXi1PcV3wZfjRe/HA== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323596115206702?= X-GMAIL-MSGID: =?utf-8?q?1762323596115206702?= 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: 79488 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp134487vqo; Wed, 5 Apr 2023 01:14:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZGHuZAz7tpngfT0hMes/bBG4muMEDrcgI8yROIJQ7c1I2NhQMKcMi/K7NS2QlBUK/uBX7J X-Received: by 2002:aa7:c796:0:b0:500:2cc6:36da with SMTP id n22-20020aa7c796000000b005002cc636damr1294361eds.19.1680682481837; Wed, 05 Apr 2023 01:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680682481; cv=none; d=google.com; s=arc-20160816; b=IRD4TpMU4nFC0KAyXq2/Zwn9nPOwnpHn5tW6xCFyqTPwRbuTQ1SduXSnN/7+0Sc5Yb fvoi6U7HhJbibT9rn0JnoCWQd8eGwdoO1YWH0oLiOFSlELhEnJyNs85Y8eNcUjOb2T6J o1B7vN4lEcRyskEKq6Z67F5YdmZverLIAqaLuw/9URRruAbhc6J3DPO0CLm5RGhhSReV gFbzs7w7NsbyRyoE6YaOydO0lhMJ2YON94dXvqPNtnLQvd/efRQvjQhO2733mhRkFTbr l4YQf6dxNDrbninQnUYRX/1HpnixIglAb9DJAfOTWUA55gkZNRY2kuzT0DMEECok7LX/ xkaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=33253isHt4S+J+nSLFy8mmWQtMLkRh8HjGdIrP7lEuQ=; b=V65meTV4S+6BiZrJjdCksdPbH1hHZiYFFq8+hG1GvpIGO6rDg6SCoceQ9fZXQGH03L TBCexMKjC/tcimKKX+cYUU6du675ugFWekA/SRMwpI2sWExuGy9RJWCLg5BCS6IIaXCM O6Z5AmKfYpOXwSW4DbmBk2kewhcGth2jLgo2BDu5qnzbLBZxUs0ZHy6rTDB+H57xwH5e K9FTN2D8cL+AERMV06GmiklmDmrl6BLiFQoeX2sbxJNzhdwrgJuNMq5litbDzvwJ/s9e TRRR2wzVc8Cb+3/dcm7BbyzWx4ptGWFVa8I2xsELtUhAuLnZg4z4DTtCHbdR7XUadSB3 wBbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="Yc0/OBGp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca4-20020aa7cd64000000b004fd29e6e5a2si611463edb.490.2023.04.05.01.14.17; Wed, 05 Apr 2023 01:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="Yc0/OBGp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237442AbjDEII2 (ORCPT + 99 others); Wed, 5 Apr 2023 04:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237377AbjDEIIJ (ORCPT ); Wed, 5 Apr 2023 04:08:09 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 193D01BC6 for ; Wed, 5 Apr 2023 01:07:59 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id d11-20020a05600c3acb00b003ef6e6754c5so17742890wms.5 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=eA+k3TaqlCT/Xq1rY2Z3a6fhrOKLbrH5mzVPMePXq2YEqzDuvabFfNBQH35UqvfSUU Jt1SrV6BsL0hTnEbGLZQ8rdQdf0klGAylhwXaJgk+Zhtaar2EDQLS/kMOVMGA25XZJv4 Ckz2BQpClPrjetIlCqTS2dX9IVipOb/39g0fJzKKyS7Qgw/s5J6ZKn5Cwm5StTvLuKKp X8NmgXdqnxexKSvtCrSJXhboWWEGLE79gYYAEp0DPxSzIOImVcq0NcKbeN5xU9GBBtvU J9v2JMBPrlyVfcHdr1JeVOOFTa/IAOXJRfdEfXUq+6izazGKiTJJGxsdaFLom0ptGb9W fDfw== X-Gm-Message-State: AAQBX9c0agLc6atfncxxBGqGsHaHqWou+D9s532NNaU22aaeSCw0iwN9 NCsOrypytOIK+vfU6pcBpfhTUQ== 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-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762323314341429803?= X-GMAIL-MSGID: =?utf-8?q?1762323314341429803?= 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}, {} };