From patchwork Tue Apr 6 11:36:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12185001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99FADC433ED for ; Tue, 6 Apr 2021 11:48:20 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F14C6613A3 for ; Tue, 6 Apr 2021 11:48:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F14C6613A3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=ynAeUq1EG1b7cbfbzxlBORlOyUHiZdZyAZTD/aCj2/0=; b=AX+2xSi4ToOo7KP1TkBHnyvJY 9kDOXtnnL9QZzkqwycD46urn74+kpvcpAF4Pe8wqYhH8+kKTLdj+Rb5Bu9p0s0QjtYDYjge91XvEw mJNtoO6/uJq3uym+Pqyb2Wn5rs3NCadI2/lvRRpjD5p26ixfvWDFvoRyq0Wjz+hizyMTuAtwZiXdn bpG5tLuFXBd8dX2koHl9fEztW4ImEKjQtr827lAP6m4wZGHCBaNMsMfiA3gkTdSsS32SY/cdiOWCr N6Lq/X7WGSxQv3PwEg34D27nw7CXBwHxEZAB52XdiO5/rOERlijdGnkPHv+2OdMOCtmmpbNFKBpJo BSdSkxodg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTk9e-002QHF-3f; Tue, 06 Apr 2021 11:45:58 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTk0Z-002Mvx-EM for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 11:36:41 +0000 Received: by mail-wr1-x433.google.com with SMTP id b9so5966034wrs.1 for ; Tue, 06 Apr 2021 04:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8P1R0vOoYt+iRLp92hKy4ER47sIrroX6pk17J519zYo=; b=0K2AIi2IQdb5pGIrrn10xuntiCkPk55XqsYL3mys4hDU3VKZhQpfOosx/g3+Klx4uV TFsbFZzrR8pxinBxmTvvH5PxCBheqHQjMHi9EsUm7ljXSQTzDBqOEl2K8B9VOMIoG6lj c4H43xx9TlG4zuUvpaB4K6rISFfpI63gYH71NBXpvFaXobCA4EXYbvM2JvWABLzGfV1D q8Yfk++i/VJaDIDgBMNlZSa/nJcNtV3e3uPG+l+iB5xEKHR6RvvNz3doJxq1j3PBfawo rWGyO1YcBurBAB2RQSR5xgXFuEKiKAlDaczu1vEK2v08g4NxatP2qCkCVmgvyQ5rjEpR c/Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8P1R0vOoYt+iRLp92hKy4ER47sIrroX6pk17J519zYo=; b=cC9Efev9XOZ9l6aKyiy/rm4bYGYdj0rU+4XhajU52JfAZGJOovZc32rOBVk57MMa4r VLmAOCxGESTbPbxtyfta2RCTYb0nm/x7ExEVcQcNTtAq8TzasCjC6BM91gSdc7Qh0nVT sES6F5sryR6P1aDM6nGnPqENaBdRiE35IsWw4TcZsMjssu/hyJtliuEsGJuP+Igrrulv qS1zXHf6jYduMhoaG0d/M1bbwxv92Jh5HSwBTV+BaR1x2YDkPDu8Z0XBGHO8HwkE/ikH ZNaruZdFhrMaijTSXZqdNRtx7/mL1n2ZqmavlB91NLSfvbuWlEKgZJLhr/qMCwGyO0j1 s1TA== X-Gm-Message-State: AOAM533rG0qqOBdn+Hu+RTehRMRD45GUWCAZ5YoA5Rr1oUeg4BAxsi16 Ut3VxR0ho9lXyZKbcONAf2XMUg== X-Google-Smtp-Source: ABdhPJy5ttjZp/FzT2SOjuTcZRTy3ru48FPTj495+Gc5ocBZ/liZRPJ1hrEFxiPl5jG/QXOc+E+91g== X-Received: by 2002:adf:fb91:: with SMTP id a17mr34993104wrr.118.1617708994692; Tue, 06 Apr 2021 04:36:34 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id k3sm11880735wrc.67.2021.04.06.04.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 04:36:34 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] arm64: dts: mediatek: mt8167: add iommu node Date: Tue, 6 Apr 2021 13:36:29 +0200 Message-Id: <20210406113631.2675029-2-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210406113631.2675029-1-fparent@baylibre.com> References: <20210406113631.2675029-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_123636_233309_311F8E0E X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add node for the MT8167's IOMMU. Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.12-next/dts64-2 V3: * Removed unicode character in commit summary V2: * Remove unneeded cell-index property arch/arm64/boot/dts/mediatek/mt8167.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index bbddd4b22d3e..9029051624a6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -170,5 +170,13 @@ larb2: larb@16010000 { clock-names = "apb", "smi"; power-domains = <&spm MT8167_POWER_DOMAIN_VDEC>; }; + + iommu: m4u@10203000 { + compatible = "mediatek,mt8167-m4u"; + reg = <0 0x10203000 0 0x1000>; + mediatek,larbs = <&larb0 &larb1 &larb2>; + interrupts = ; + #iommu-cells = <1>; + }; }; };