From patchwork Thu Aug 3 09:40: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: 13061 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1041259vqx; Thu, 3 Aug 2023 03:14:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8ZbC7kOZ2DEXDMYBEIAw6I5P8kZ3FpVacA0a8blabLHZqYfRCXQAt5j2Ljuf0wNAfamPP X-Received: by 2002:a9d:67ca:0:b0:6b9:4b45:42ca with SMTP id c10-20020a9d67ca000000b006b94b4542camr16807165otn.25.1691057643757; Thu, 03 Aug 2023 03:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691057643; cv=none; d=google.com; s=arc-20160816; b=0n8kHSMZJ0ar4jpMP4OhUlf8nHVmMNxbcArzFDHYhSyE9ZwDN808p7ED0f3dtb0/xb 5DdTYrFPZYaGEU5Sm0U+B/fM0ZmbJHJlaeaUQdlDBdyj0sqrLmX+g3NFIGW5dtDWQ8he zK8HhxCxfasxIBilWmyZb7/WKJP3eoHzShX7UsYIMkKhG1aXlD42WovQXdZbpqfI/v0o dP+LjsCCe3qcJMXul8f1VSJH0FwsOS+WL1HEjQRkSxj1Cg9i4LRYUWgUHWwkCZrBi+XS +YlBHCh/PZY/FbmtwQPDhctPremE/ZNrmPMNQrHMafI1m7uJycDqIsciepeGyAEqm6UK BfNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=sseiNID2mFn2S7P2x+yMHTlRQJAUMSTuNVqWrP1bH80=; fh=BOObgak1TgpItHQ9B3ZjvZxLN7OMXZn5Va0KKl0kPbo=; b=Sz8iD+TFx+bMN5sQsCWnBgD3GBMZ4iFCsDnksb1NNnzQOKTUGDMJ2JBprIhHWbAn8g pKJkjQya7aR7Z+yjihNsAoiuZF/NC5zHB7X7utgRS5mO8mnu07z1EjiabwsotsjaSWNy TtQQ7gavpJDkQDnS63sAmJBlsucIOft/s5H8jZStXeUgVrj3eWNFLkLoX16svaPJgJuu zBu+C4sfbUpvRXWqDmrDjULUe8nYXVKSLz428yWZaIdA8cfTN1/appXSt/McHQR81DeL I3m++p2SWjU1cDEMyhE2/rNMoVtLceOmzQ5XbUOqmMkyRqKcio7DT04oXwprjtvBKwHQ iTkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=vu2dzM6D; 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 l187-20020a6391c4000000b00564acb691e0si81616pge.643.2023.08.03.03.13.50; Thu, 03 Aug 2023 03:14:03 -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.20221208.gappssmtp.com header.s=20221208 header.b=vu2dzM6D; 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 S233008AbjHCJlK (ORCPT + 99 others); Thu, 3 Aug 2023 05:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjHCJlI (ORCPT ); Thu, 3 Aug 2023 05:41:08 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F24EFF for ; Thu, 3 Aug 2023 02:41:06 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so11029861fa.2 for ; Thu, 03 Aug 2023 02:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691055664; x=1691660464; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=sseiNID2mFn2S7P2x+yMHTlRQJAUMSTuNVqWrP1bH80=; b=vu2dzM6DiQJkpP7TSuy5CtCtYhr8cqJsopUQDuINQzY/BtLxodpyAblWUdxocBnNbZ eZ5CAc/Spj5Z1CBm22Gqd2rqPTmimDIN8juND2f9ZHm9rCE0pMLXplFxz0Jwma4FzHd8 lo6Ox5pTA35/tyIQkQOptYC+wWLWAdi704h59bPTj3ZBzx55bBzmAN7VKWAzP0mdLq3q 6eH2Sdge/oMKd5QS0cUVbUsjVQBH0dZMZtgs/Ybqnujawu9APNIPN+zzEKVsAExSorNz j842kfRtyDPmf2U04FriAdOfhjSbULV0dof6jKs/AY+/ryY4mh8J8Dn8rXsGeHX5E5F4 LTGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691055664; x=1691660464; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sseiNID2mFn2S7P2x+yMHTlRQJAUMSTuNVqWrP1bH80=; b=g4muoVqCYqxnjTAqW9GCb5hlcZqLVRsd3KOtji7Hd4zX0P9v+LH5XGTgPWBtO0rExu pLJLVTyRRSv9xO6L6Y0ezv9NCvtk8209GzNhhTrTQ/IljuuzbzbvmpxeVj1kpeAm6zPP IvhIIj9ZhMrlsaHSQQ8gw9v7CrcLJ5o3NibiEwY4ER7V1tcDor7mLARGYE/gaSzowulQ QAM22PpGR8DEOD4X3egcLVZBnnEanoQbNLhYrOW09JhPkJzn8jli0+gDNRpyveiu/M4w hYHetPEh6LE0B9peVXwJZHH0KOrDaAQRByMbB7g2K0U33Y16m9oOnJV+CrUYiK8U+nN7 ieqA== X-Gm-Message-State: ABy/qLY5wQYGBokcHWRDudCIaC3eJAABTFNimJYjDe5pF0m4+uagCuuI dHFvoo5JE/JFQmYYKvzTZZKRMg== X-Received: by 2002:a2e:904e:0:b0:2b9:f1ad:9503 with SMTP id n14-20020a2e904e000000b002b9f1ad9503mr7522055ljg.35.1691055664232; Thu, 03 Aug 2023 02:41:04 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id n1-20020a05600c4f8100b003fe15ac0934sm13294994wmq.1.2023.08.03.02.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 02:41:03 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v4 0/7] Add IOMMU support to MT8365 SoC Date: Thu, 03 Aug 2023 11:40:52 +0200 Message-Id: <20230207-iommu-support-v4-0-84798657c410@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACR2y2QC/33NQQ6CMBAF0KuQrq2ZDi2CK+9hXJR2kCZASQskx nB3Jy6Nupr8n/w3T5EpBcriXDxFoi3kECcO+lAI19vpTjJ4zgIBS0A4yRDHcZV5neeYFmmoQmi wIo0keNPaTLJNdnI9r6Z1GLjsQ15ierx/bIrP9Re3KQlSd+Bq1XmDTl1a+xhCm+jo4ihujG34F 0AGKvCmswCkyXwByr9AyUBzItVYr6k2/gPY9/0FRyquITQBAAA= To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Conor Dooley Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2227; i=amergnat@baylibre.com; h=from:subject:message-id; bh=yZFKpxEAgoFXK21BVC5n/b/uttfBdSKKotZf8NGdugk=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBky3YuX+JjoVLFCsQWxXLGRHRjB61ZGtFVnHw77kgv HsW17yOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZMt2LgAKCRArRkmdfjHURdCjEA C7y0S7+D71eFlqs75Fj6lKAJx/TOBotk4xhpBaSKuOosKp00Ze31oraeDnmobH5A1W67BMtR4ZuYuJ 2+9NB0UGXXBu0uuQN7+dxlo9XkP4Tn05X1vGd6jhv4I8no8N9WEg6O48UZ5neScVkjzn4Gtm7rh3CR PlIOmL614oC5Dv0K01HNvtpw3qOMOinVKDEYJga6pKlfiM6+Lp2mzyvD/w/wwbO0lGjyYABiPE+yRv tSVBxRjFnrFhwel+Oq4sK+8xS7/BPyJT+wTpJRIqzj73Qrq0ALIPC6N3WNTdbMWhqyzOv7ySM4R6Xu 9E3mDrdKJyEp6D3Gl8B29SXX+vQkhEWEFbxPQwA5aFPmGvmp5QGIUxxDy9zbB44OD04GM67PVpkh00 5DYzJH0HoOFUUqNviZBA/IDN+mUfpiLYiopuz6MVBqpglBRX/EAcpvzQxLLhI5GePT+9N7GVf5taWo mRnInpx+/s/9PfTbZSeQgO7vARSMch6mY40O3z0WtCSZeNMM3Yarlvk0sY1yFtv+V5jAMDG9G48R9o Y7j3yMhKUGGJ+4JFPT62w51ogXBYnZUAK6DXEIWmdg9G2fmgXulvYp3Or+P5HwN+Kab1SaoqT3GlSn JKyMHH3XgVRV+gMB03fANT06F/QPubVsCpXkOe16Z85cfc8SuHawzrybECBQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773202460124554449 X-GMAIL-MSGID: 1773202460124554449 This commits are based on the Fabien Parent work. The purpose of this series is to add the following HWs / IPs support for the MT8365 SoC: - System Power Manager - MultiMedia Memory Management Unit "M4U" (IOMMU) - Smart Multimedia Interface "SMI" - Local arbiter "LARB" This serie depends to another one which add power support for MT8365 SoC [1]. Regards, Alex [1]: https://lore.kernel.org/linux-arm-kernel/20230713150414.891893-1-msp@baylibre.com/ Signed-off-by: Alexandre Mergnat --- Changes in v4: - Rebase to v6.5-rc1. - Link to v3: https://lore.kernel.org/r/20230207-iommu-support-v3-0-97e19ad4e85d@baylibre.com Changes in v3: - SMI driver support and bindings patches have been removed from this series and sent it in another one which should be merged before this one. - "dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365" - "dt-bindings: memory-controllers: mediatek,smi-common: add mt8365" - "memory: mtk-smi: mt8365: Add SMI Support" - Link to v2: https://lore.kernel.org/r/20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com Changes in v2: - Split power domain patch (3) in 4 patches to explain in the commit messages the added subsystems. - Add an independent "mediatek,mt8365-smi-common" compatible to have its own LARB bus select. - Link to v1: https://lore.kernel.org/r/20230207-iommu-support-v1-0-4f0c81fd52c1@baylibre.com --- Alexandre Mergnat (7): arm64: dts: mediatek: add mmsys support for mt8365 SoC arm64: dts: mediatek: add camsys support for mt8365 SoC arm64: dts: mediatek: add apu support for mt8365 SoC arm64: dts: mediatek: add power domain support for mt8365 SoC arm64: dts: mediatek: add smi support for mt8365 SoC arm64: dts: mediatek: add larb support for mt8365 SoC arm64: dts: mediatek: add iommu support for mt8365 SoC arch/arm64/boot/dts/mediatek/mt8365.dtsi | 210 +++++++++++++++++++++++++++++++ 1 file changed, 210 insertions(+) --- base-commit: 29c81bf767230d53c3ca8c1ef19e4fde1b30c8bc change-id: 20230207-iommu-support-5e620926e42e Best regards,