From patchwork Wed Apr 5 08:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13201338 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C007FC7619A for ; Wed, 5 Apr 2023 08:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JHLVitvumtWoHgtQoaP+RpKrDIHkGMA1BLsqMzD7BNo=; b=xfYaKGHnWLh0ME QZZUVD8Q02ndcglSsH3/rbM7p64RVnpctNY7J1W2e/IaW3t1KEnO0U+GdJbhO3OtR0ro9iCqNgZgu Q9IMnnsxsDW2fKpm+e7fLwo7vzFk7BaR8pesfPjDPRqh7KVcvFSHD7NWHIEatLlYnhbUqhu1RTJyv QIjP6YMIdSdxcc8Cl8UItQgkM1qxDvN5MAx3FmrAg+WBRXpqxM5uJDg7XGUOk5NaGwj962E/M1Ptg SrY2EKAF/FJe2Z3DGehOTcSXK3VaW6pjPwLgK64N5R7wKxIRao0+E4LyLkDQpaHHtRdNC21wZD6oU VpVoCYQNDg/lXrn+LDjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBq-003j9Q-0F; Wed, 05 Apr 2023 08:08:22 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjyBf-003iuS-2Q for linux-arm-kernel@lists.infradead.org; Wed, 05 Apr 2023 08:08:16 +0000 Received: by mail-wm1-x332.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so21461258wms.1 for ; Wed, 05 Apr 2023 01:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680682068; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=hcK2E3trf1X3fQu2pfYafCoNlkzzMbic53P9GU9YSjg=; b=QH6GLIo9yx62qG0tuORpKBwGUzWxhT0CHl/Rn852+qO3xDg0uj5D7j37JDs87xEZHk cS8W+HvI4yqTHzBhZh5NfSu2cG13pUUNh4g8c6Yz1iw73iG0sb1drqZJTpVJSAfGWPkh 3CmYMuSj3zbJecpst5FwiKE+IrNmutBUk03pp7/M5poTeLu8V6Y0I4kYJyuue/nO1evC 58mM1Cq4O4JoRoyqp831DK3qUxVng0nsmuLQkGjOuakQMcnY9VD5hvZiJt+VwmtdiSYw AyDHF5V7G3nUiqscdTmci3IFQfn0U4ww+ALaMQ2GYUvkzQSZ4FJFi8f8WjUtEkEv0WW0 WTfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680682068; 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=hcK2E3trf1X3fQu2pfYafCoNlkzzMbic53P9GU9YSjg=; b=rp1VCVBQkJt7CkDJnvQXSl0mWpVAvUx1vLFD4WNMlmUzzb9IwlFbMOJdH6ptIFFFAK DASFPSiC62/BTEbcP/hFuMe9z48jLRVUOsUpBhAaCa4cSgNjcF5MdP2/rgtFCAhtkkSX zwEHBHOk4Bs0zC+u1RxN2BkfZaeBEvtrY3HlxtxphYMk/tJ7n2kZb3akEq0wNBXpNUPu eP4JV6/B0f+T+CIcuJPINGdfb77NR2mZH1MhYt6Fs+cBzPXsSkFxhrP625fspKlpQjc0 BhG2wnmMZVRdrgJBjW8QQUs3A1Tf0zrYe7ea0HSImMqrVxm92m53SeWfdzDFfFywntsd J0FQ== X-Gm-Message-State: AAQBX9c0lHu5KGdhhRrGQgiu6RseDJoGiN83VkQdRfMoo9q9cw4DizhQ 35xf8TALcDdq99Ob8oHMPsbc4BZHH/HUAxc4U+E= X-Google-Smtp-Source: AKy350blkAH8sowKFtZnLwupT5xq0atAtHaN/FP2kuzZTraWnNrbQeAcuKZIoSgMD4p/C7FxIeKQWA== X-Received: by 2002:a7b:cb50:0:b0:3ee:6d88:774a with SMTP id v16-20020a7bcb50000000b003ee6d88774amr1092045wmj.14.1680682068474; Wed, 05 Apr 2023 01:07:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 01:07:47 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v2 00/10] Add IOMMU support to MT8365 SoC Date: Wed, 05 Apr 2023 10:06:42 +0200 Message-Id: <20230207-iommu-support-v2-0-60d5fa00e4e5@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABIsLWQC/3WNzQqDMBCEX0X23C3JVu3Pqe9RekjiWhc0kUQFk bx7Q+89Dd/AN3NA4iic4FEdEHmTJMEXoFMFbjD+wyhdYSBFF0XqihKmacW0znOICzbckrpTyzU xFMeaxGij8W4oll/HsZSDpCXE/fex6RKvf3ObRoV1r9xN911DTj+t2Uexkc8uTPDOOX8BWaq0b 7IAAAA= 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=2098; i=amergnat@baylibre.com; h=from:subject:message-id; bh=7OqtyGysS4GG8JoZFWoQINnDDmOHA1NIaDmgqK4G2u0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkLSxSEfi6DpmkrTcfu8EAkLqx/FnCXgucH61zc8uS LoOkNnWJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC0sUgAKCRArRkmdfjHURcG1D/ 426AWvKMTLV61TfBg9mt3vins/UspbZm0eGa5/SA7HHPiR/3xrwvx3nwlSB9dO+P1kBWRUk2eK9H2H mAJWhCKzy3mFgG4vQDXxr2K4zgWgVlWVNpRl88aPjnAm5U5c56JkltJk43xrGtSv+oMjQ1TcYPACEO zrDX0Qs/KvBCMLOuQmT/Ss6+LxR+E/Ahr1CsaxT/63SiThhstX6kW6XbXmvnEqcFVQyX0mQwu01jNm DUOZBGrRER9nEHO0lRiGTSWhlZGaHaLoG1tTGdoljjzjSZMiHBKlcxkRi0ib5Vedw2eR1bA4DDFZED nw45G8gjgcRfpwMx36RHMuirOpnvgpf6B/bg8ohFXBb+xZ6H0EBec8+/R8EHayB4RKycF7O+6vHxHY KwMx0P8RYx6ddhAmFXIfOPQW+yqzZ9CbXqCgJ0HjejLnTJvpyc01t1YO3l/ItWBsa1RpGF65qluVoz YW3PoLVUAia90XP6pefaM+rGWd8/hUnj/dXpvkj7r4by3stW01dk0KG6NtjJ3c6pzmGs3BVap/jFda OwybXhoePVi5ojezT3iNUic9mivieyOGGubj6z78TYLS5OGgFehz+7G0mqQgipamhghQIYPXhMIle1 cw7yN1TBdDFD6mZkFYTmNZ6o84FNUOHjYs/Z0+wdA8OlCUCo5ldOgDYDcXkw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230405_010811_861680_D97D8C8C X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 series depends to two others which add power support for MT8365 SoC [1] [2]. Regards, Alex [1]: https://lore.kernel.org/all/20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com/ [2]: https://lore.kernel.org/lkml/20230105170735.1637416-1-msp@baylibre.com/ Signed-off-by: Alexandre Mergnat --- 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 (10): dt-bindings: memory-controllers: mediatek,smi-common: add mt8365 dt-bindings: memory-controllers: mediatek,smi-larb: add mt8365 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 memory: mtk-smi: mt8365: Add SMI Support .../memory-controllers/mediatek,smi-common.yaml | 2 + .../memory-controllers/mediatek,smi-larb.yaml | 4 + arch/arm64/boot/dts/mediatek/mt8365.dtsi | 210 +++++++++++++++++++++ drivers/memory/mtk-smi.c | 7 + 4 files changed, 223 insertions(+) --- base-commit: 1db7fc94e6e116f43f7bf3adb33407f21bc29fd9 change-id: 20230207-iommu-support-5e620926e42e Best regards,