Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp736350ybh; Wed, 15 Jul 2020 13:54:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfNSJUw42/q0TivMfeLDd5mDIvjvrBhN90GcxC6XdRSEq5DNge5hP+OL28IjtcUSkteYjz X-Received: by 2002:a05:6402:1a42:: with SMTP id bf2mr1398436edb.292.1594846448562; Wed, 15 Jul 2020 13:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594846448; cv=none; d=google.com; s=arc-20160816; b=w6nV5EJ/0qreaZSBIViqhL3TETOC/+mJInH5sbBpOl3SEPT9OLatzkbWPfuu9OUiBu oSX4vML18VMH/CD8Nn/dkupjNccpsS4Khu4pBTIN97gjkNkQ4YWId45l9mCVo6wHhdLk L+/9X6U4QDM6E27tuAs98LTg3Xvrq+1mMpdsKFM4iKNsMABqV9OKgZhUahdILjvE0x7w F7tYuvsyv4yUu0WQ3Xiq3DSZQCVRGh+6bPE+JMHUWmW6Mg+JdjA5jD3IEbvunQHUkjXg uID3Lh6bWEAVDkHPFowlANDKmgMyxVqYtENt8/p44VnrqzYTQyzdr7lgwd34ChdgIG9A 7ncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=q9ACE8nvrxYAkV7UmkgZ6sY12qZMuGAXz/YkNp21cP8=; b=LZJ10nJyxCBxjPtd+YM17lmR3HD9+eK6vxOo+Alh0of+F8VBDblPDLT3ulnKV+eTxl b9kRsxot1F5ovj48zjhTAMnWT7hze05exYLXy1MEXi98c9CrMwE+vrJLW8n7AdZlLXJU eU9c8adLGtGcGkP2CzlABldijdB+WlEShu0EZnHZQ73bCDEP9QNX4eCXr5LNTvR6L1IX NFbI0QduLU5njTdyBGSX8x6iP1UgOD36b9XYj+++6CDM3tBcaCgPXGHXHKJmoUrsB8eN ZUeDsm0kMGNC2HoCm/NQam54pCJfqfSz7zvUrnypza1S532/A5CPp6fyr+7thmrtEkRK uaQQ== 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 u6si1984485edy.584.2020.07.15.13.53.45; Wed, 15 Jul 2020 13:54:08 -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 S1726970AbgGOUvX (ORCPT + 99 others); Wed, 15 Jul 2020 16:51:23 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40700 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgGOUvX (ORCPT ); Wed, 15 Jul 2020 16:51:23 -0400 Received: by mail-io1-f66.google.com with SMTP id l17so3728614iok.7; Wed, 15 Jul 2020 13:51:22 -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=q9ACE8nvrxYAkV7UmkgZ6sY12qZMuGAXz/YkNp21cP8=; b=LpBQtXg04ocu1/Q8mGVkib+W0iU7MtYouSSSgQ/34Boyh+bpLQ7p/GovdOggOwulsU vhE6CIKFThZx+KzEpBGD3cSlpOeMrBXSF3AK8FcId3FyNiFZIFww/RDZ32ra1r5pLVj3 2PTRvBMJw2wyfVU51b14qX3xBIIRB8hwROwQq4QxQypIRV52Dq1pvHXRBX/XgQmXBEAp E5Pnfgd5Af078PGV7G5pZxAXt5dI5iYN/QIUBahTc/8EsAWVHf/WISeduP3npOhJUpQp LyA/nMH0jgL8LVOwLaGKkUsprr884+CoOCLgpz82HpZeyGeUXXXYlozhltIXoK41oOnB Hf4Q== X-Gm-Message-State: AOAM531xyvCulBgRrh5OYmx9dZ3QXvy9FynsAXHx4Kch5v3DlNEkbWhf iJYcL+Aglj4ys0Pb7cZvdFXp5ctCrg== X-Received: by 2002:a6b:4409:: with SMTP id r9mr1160938ioa.158.1594846282053; Wed, 15 Jul 2020 13:51:22 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id s18sm1576592ilj.63.2020.07.15.13.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:51:21 -0700 (PDT) Received: (nullmailer pid 795410 invoked by uid 1000); Wed, 15 Jul 2020 20:51:20 -0000 Date: Wed, 15 Jul 2020 14:51:20 -0600 From: Rob Herring To: Miles Chen Cc: Joerg Roedel , Matthias Brugger , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, Yong Wu , Chao Hao , Yingjoe Chen Subject: Re: [PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle Message-ID: <20200715205120.GA778876@bogus> References: <20200702093721.6063-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702093721.6063-1-miles.chen@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 05:37:17PM +0800, Miles Chen wrote: > Add a description for mediatek,infracfg. We can check if 4GB mode > is enable by reading it instead of checking the unexported > symbol "max_pfn". > > This is a step towards building mtk_iommu as a kernel module. You determined this before without DT, so it is an OS problem and shouldn't need a DT update. I'd assume there's only one instance of the node mediatek,infracfg points to, so just search for it if you want to get the info from DT. > > Cc: Yong Wu > Signed-off-by: Miles Chen > --- > Documentation/devicetree/bindings/iommu/mediatek,iommu.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > index ce59a505f5a4..a7881deabcca 100644 > --- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > +++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > @@ -74,6 +74,8 @@ Required properties: > - mediatek,larbs : List of phandle to the local arbiters in the current Socs. > Refer to bindings/memory-controllers/mediatek,smi-larb.txt. It must sort > according to the local arbiter index, like larb0, larb1, larb2... > +- mediatek,infracfg: a phandle to infracfg. It is used to confirm if 4GB mode is set. > + It is an optional property, add it when the SoC have 4g mode. > - iommu-cells : must be 1. This is the mtk_m4u_id according to the HW. > Specifies the mtk_m4u_id as defined in > dt-binding/memory/mt2701-larb-port.h for mt2701, mt7623 > -- > 2.18.0