From patchwork Tue Apr 6 11:32:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12184947 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 A5F54C433B4 for ; Tue, 6 Apr 2021 11:35:36 +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 1CFA061399 for ; Tue, 6 Apr 2021 11:35:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1CFA061399 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=bHZ5PiU4FdColjisyXD4vhxs6mxAKbKScBR/H9O69yk=; b=Owu1ePQe5lboYfNBLpjmEWuru 5qBQkzHCIKGVoXSgUWnlIKA4eHW/llEA470kjN24DuxwIamu9PKZbCwoKZwmW9OocgnKRhioBDP7J 5OT1egLh5BGOlxTW9mJIpo+YG0Sy12CdpJxbIkhGwg40yDeNSUa9bGIcO7G7Ce6Icl6hTwIY/gRdl HUbz0FKlrca2xJFKfY+HNQvHeU8fficCWC/jjZ+21q6hTxwbj5Cp+uUqozIC94CWE6EhLkoWvhAfY MY9icIiWF+mH6p9eejPi7Ir2MpAuDGUXiimuKPJygQdglrpx4a+xkdCD5c8mkepqQucUo3s7ag+Er Yw1Uwl94A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTjx9-002KiY-Ci; Tue, 06 Apr 2021 11:33:03 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTjwu-002KeQ-SO for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 11:32:51 +0000 Received: by mail-wr1-x429.google.com with SMTP id f12so7857154wro.0 for ; Tue, 06 Apr 2021 04:32:48 -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=B78AvIQPTuA3l0I3nLNmMUo3amV0ILeS2vy0UzeA6L4=; b=u7n2cx+mCvs3EGNR7IWh8V5vzcykWoEiaHrhDlO06ILrrjUaIARIpvQLLN3JdyT/e4 ijVXmdy+hAXuVHS+L9sQpakwXA/PGvbj46pkt3v/e2MhUCf5+dYmfQOu3yg4WvPx6LfB nSXlJRH9X4SVt7SwWo6AWSyO9zl5w0HwdzNV/lhNpbxwZxkjLQXQA578nqIZ4bp6sddo JsK5qzsMQCqwo4FqsmcPWxXac+lwL4bh1gA3PTgfss9HleFf5pcdVkFyOeOBv2NibOp3 kbs48/bh+PPICnHJAjd4ad6WuXUcyemElFGwhvdIAgnetJAM4V0IqPEgR7lyZXOzX6J2 m6RQ== 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=B78AvIQPTuA3l0I3nLNmMUo3amV0ILeS2vy0UzeA6L4=; b=rqLtSQ3E2DQvJPMy2y8KuduKuyhAKhYnY84Ra3tH5aMZOb46dQLxeCswqnKGI+XJW3 NmAcMmF9WjUgMt01JGC8v+cyRO4HbryP5kJ6hiOxxQvlj4br/Xbb0gBZ4JMg+F4LivGx CPiw2fNV2rKSLivGg82s458Q0j6fe9halrlK0RCVML8/fHFSRkylqGGtKkVkYiXcS1xM VIpyqL0iVkkMDvT+VkU8Y/rYgMiYho0jNJ/+jK4lVuYrpAqz3MODZ6wcfUzZkSlOTZ0l 7aItk3nsb0ZhljAk06g3pir83WOrxsllWyNcNoCjMpYxZf2fyP9TBMpCpWVa8AjXOTYV 1HbQ== X-Gm-Message-State: AOAM533xXerwxYTRQII6pZLoNsKQvoyL+wz2dFHbg2YHiZOyGR90WIY+ ok45yRcX0zxHPdq3AE/X9JGnAQ== X-Google-Smtp-Source: ABdhPJxY199dcKmICZi49GxfShfRAikMdicOk2ggDqvXYLtcCRH1yvdjM9A1IJTgiSOGnHW+aOF4/A== X-Received: by 2002:a05:6000:544:: with SMTP id b4mr5641500wrf.352.1617708768363; Tue, 06 Apr 2021 04:32:48 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id j6sm2424229wmq.16.2021.04.06.04.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 04:32:47 -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 v2 2/3] =?utf-8?q?=F0=9F=93=A4_arm64=3A_dts=3A_mediatek=3A_m?= =?utf-8?q?t8167=3A_add_iommu_node?= Date: Tue, 6 Apr 2021 13:32:41 +0200 Message-Id: <20210406113243.2665847-2-fparent@baylibre.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210406113243.2665847-1-fparent@baylibre.com> References: <20210406113243.2665847-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_123248_972312_CA1FBAEA X-CRM114-Status: GOOD ( 11.51 ) 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 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>; + }; }; };