From patchwork Wed May 18 10:18:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12853481 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 77105C433EF for ; Wed, 18 May 2022 10:19:38 +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:MIME-Version:Message-Id:Date:Subject:Cc :To: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=v8FQ3PXjgVOrtYRFwOgDAX5jGHLTMq+9tmt3PzWW0C4=; b=OQ55nVLcNBlJs2 KL8sahx05twgkXavZxGLTCff++k7vgPqI5XwuE2LdJPPyT0RUetnVrMhT0jZbSoQpTu/WbicapJXU g+UpsE+FMvA0TclMP7/D2cBOkTBIZBndPDZbqXT8PJi9vVeGgy5hKUBNIVpBFLnYnbe8g3M2wIYHa 7MNdx5EMU6R9HbbXxG6/T6HhpIjqJI05nX7A53lW1xBIi5bNeMs3BwjFnTjIaCyXwMmKqPgNSN9ef jl4Ll0bia4fnWZRPs5BoyB6wAqhQaPHncvvahtqdcen5YkAhL7eviU1Xkn0hUKFKS2iOSG3bEM7iY BLQzC/+m0RpPjSBZ36RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrGmD-001Kdm-HQ; Wed, 18 May 2022 10:19:33 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrGlf-001KJe-9A; Wed, 18 May 2022 10:19:00 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id A12CE1F44731 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652869135; bh=nKnOPTIEN0EbBFSaHy2hGzvCCWuj78poKEvBKjZdAHk=; h=From:To:Cc:Subject:Date:From; b=N+XWz9rRMooTdMVY6+mlIBtFOhwHIhDOlM0I1ZLWGN8ikDxp7XGhCeCpbusH1VXw4 31cCBXGrzwVL1I/xIhHLSlstg/qMgYdbJfwqhEKtf5KJdtnl48PBAptn/C5nsvTAcc KWsAepBYq0m9JvZ6ylDhw+KnLdQt5KvCUY9up/uoRDRIw0Q9oAMkh227wRETX2vbA/ UEptfRiDItuZA87087ne+pTaBanGqeNC5LpTJpwBK0gJNJGXa0MgtoKPefrHnajF9R EPH2uy+t9iwbAJYoiiUmaPZNGTVvyCocQDfZBPm4SN38eICl44aCFjaPftFKaYyXcA E3mGcx4Z9HvCA== From: AngeloGioacchino Del Regno To: yong.wu@mediatek.com Cc: joro@8bytes.org, will@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, paul.bouchara@somainline.org, AngeloGioacchino Del Regno Subject: [PATCH v2 0/2] MediaTek Helio X10 MT6795 - M4U/IOMMU Support Date: Wed, 18 May 2022 12:18:47 +0200 Message-Id: <20220518101849.46804-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220518_031859_591039_622806F9 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org In an effort to give some love to the apparently forgotten MT6795 SoC, I am upstreaming more components that are necessary to support platforms powered by this one apart from a simple boot to serial console. This series introduces support for the IOMMUs found on this SoC. Tested on a MT6795 Sony Xperia M5 (codename "Holly") smartphone. Changes in v2: - Rebased on top of https://patchwork.kernel.org/project/linux-mediatek/list/?series=642681 AngeloGioacchino Del Regno (2): dt-bindings: mediatek: Add bindings for MT6795 M4U iommu: mtk_iommu: Add support for MT6795 Helio X10 M4Us .../bindings/iommu/mediatek,iommu.yaml | 4 + drivers/iommu/mtk_iommu.c | 17 +++- include/dt-bindings/memory/mt6795-larb-port.h | 96 +++++++++++++++++++ 3 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/memory/mt6795-larb-port.h