Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1548103pxb; Tue, 17 Aug 2021 14:46:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3t6k23Le9YuhpEUY24AkyFbfXMLsqUKEoELpXzn9O5ZaCrE8yIFWkK5DOdxYmvK2raroj X-Received: by 2002:a5e:c609:: with SMTP id f9mr4344533iok.127.1629236798908; Tue, 17 Aug 2021 14:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629236798; cv=none; d=google.com; s=arc-20160816; b=sloyZCm3tzMmt51a51FU7DQEc7p55FGwm4lRAkq5FTYvG2lNwfhk/FRTJRG0S6SHce i9ur4n+HTbRGsa0TjD85RBsegagEm0eQV1fuwpRLq8qUY+nTTwYtAYEoI/mK2E6zmiZN /TzzOhkccCIYRMPuinueGdxHWMTp1G98XeDk77FI1PbIHiiJMowKiRi5Un0o8kzuCQql lTGxvvGF4z/b+5uqPVK7gV+1Wb41GjmA9PNfur+uJnokO3PIQd/QHqGjnmsBG4pqCrTc enE2js3SKlNHG4pTZs66dWTAnjxi8GCH+Z8+1ogWxxGd7OkKSRTHIngBrT8WJu5xzbze Oz7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=tJbXJaO1S8CDBHolXnG0pNdqRsTOC5L9HS9uoBlFyko=; b=QGahEHQIS4erO8GsD3otz9Bslb5sJjtbB6fmtmWjun9+RYLbvHz+ImwP2einylFUGj Ac7cX4j2AeAcbaAWHx0XbJAvsstc/aVMVJ0y5xIB79YqhusMyWVSBR+FasO1BRNxuRVC Wv4xc3dwVDlrWEyLELr6NYVAly7R5FeTexSiMpwCBTUVuQk/oBbr4+HSIzx470Bblzew /4W19x2ezSeun82jEB91Q7+azsdqUbEX1GapjdIWFsfoNl7aWMW6fapsoVUH4KqNUYfS kQgTsi5yvLXDbYfitAQtQo8UnFUNNhJ2EwwpSchyoFz3VT29K+J92W5CVR0NlA7rZWqp e15Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t7si3539235ilf.11.2021.08.17.14.46.25; Tue, 17 Aug 2021 14:46:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234944AbhHQVpa (ORCPT + 99 others); Tue, 17 Aug 2021 17:45:30 -0400 Received: from mail-oo1-f48.google.com ([209.85.161.48]:36527 "EHLO mail-oo1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbhHQVp2 (ORCPT ); Tue, 17 Aug 2021 17:45:28 -0400 Received: by mail-oo1-f48.google.com with SMTP id z3-20020a4a98430000b029025f4693434bso86496ooi.3; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tJbXJaO1S8CDBHolXnG0pNdqRsTOC5L9HS9uoBlFyko=; b=k4SWAI+kjtMnXyp7vowkA0BhesRPDL2TRMJgIjC7GfUWAGbT3cHoPZPX9sX+Sgr8R4 Ijxpf0uliEUw2FTdfW06jCXbnWcA3U6BUzApCrE8aoCuZxoUew4heJrRh156dZICCpIa zxG1SHIMh91RAxu76/DqZGwZz1oZegir45JZVTND69AZkRtn1yZLag8AJ+8nwa1IYj31 ThaCToHk+8vhH+HS00iABQOqyee4VIqlrVFkcwlkqnLUAsbUkASa8wNsBq8N8/hZ1iO9 BYH89I6QLNO6vERCxZaFl7bxsEzvcgFR2czEN6ZgqgTK5gD6chG3oYIqRooBj1BsZFuo PEzA== X-Gm-Message-State: AOAM531PVtPia8MjNkIUxYS757YdbcIj+n/6uXbv7ZnAhanDbQ4xJF1l jRyo8JSZ9VNNnbTHuJZ/dA== X-Received: by 2002:a05:6820:61b:: with SMTP id e27mr4117053oow.68.1629236695061; Tue, 17 Aug 2021 14:44:55 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k16sm668797oor.16.2021.08.17.14.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 14:44:54 -0700 (PDT) Received: (nullmailer pid 894487 invoked by uid 1000); Tue, 17 Aug 2021 21:44:53 -0000 Date: Tue, 17 Aug 2021 16:44:53 -0500 From: Rob Herring To: Yong Wu Cc: anan.sun@mediatek.com, Matthias Brugger , Nicolas Boichat , linux-arm-kernel@lists.infradead.org, chao.hao@mediatek.com, Krzysztof Kozlowski , Evan Green , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, srv_heupstream@mediatek.com, Rob Herring , Robin Murphy , devicetree@vger.kernel.org, Will Deacon , linux-mediatek@lists.infradead.org, Joerg Roedel , Tomasz Figa , Tomasz Figa Subject: Re: [PATCH v2 02/29] dt-bindings: mediatek: mt8195: Add binding for infra IOMMU Message-ID: References: <20210813065324.29220-1-yong.wu@mediatek.com> <20210813065324.29220-3-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210813065324.29220-3-yong.wu@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Aug 2021 14:52:57 +0800, Yong Wu wrote: > In mt8195, we have a new IOMMU that is for INFRA IOMMU. its masters > mainly are PCIe and USB. Different with MM IOMMU, all these masters > connect with IOMMU directly, there is no mediatek,larbs property for > infra IOMMU. > > Another thing is about PCIe ports. currently the function > "of_iommu_configure_dev_id" only support the id number is 1, But our > PCIe have two ports, one is for reading and the other is for writing. > see more about the PCIe patch in this patchset. Thus, I only list > the reading id here and add the other id in our driver. > > Signed-off-by: Yong Wu > Acked-by: Krzysztof Kozlowski > --- > Change note: use "contains" commented from Rob. > --- > .../bindings/iommu/mediatek,iommu.yaml | 13 ++++++++++++- > .../dt-bindings/memory/mt8195-memory-port.h | 18 ++++++++++++++++++ > include/dt-bindings/memory/mtk-memory-port.h | 2 ++ > 3 files changed, 32 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring