Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1044639pxf; Fri, 12 Mar 2021 00:00:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+cm8Cw5iOrICwPoQGtApnPd6UA0e50JoFiggpT47veUUISqJJ48r0Wo8ACMHQnuUxPl7a X-Received: by 2002:a17:906:3552:: with SMTP id s18mr7288931eja.497.1615536040279; Fri, 12 Mar 2021 00:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615536040; cv=none; d=google.com; s=arc-20160816; b=AolEvQO3NdJPeL9ovyQUfD8MVC+stB+eKywWOC14vO2EDX3UlF8T2wBvHlr2weEsbl ttuSEylvxtBcKZ5NzmDya6Icev2BD6KSTfBRWxsazJMjLNB5bcQUUt9BHwJ4y7BFxLdr 1OwdSiiAyC0USk4j/mgWMrdE6UGTCIxSwlAPsRntPTumU/hiVAkaKQSD3fYvB9kbAXmm k5WqKtS0VLSCOwwHxc4mDMGG7X/22vh69WdkhOWMjIPEprXhxzAoR/uJjnvtknSlbJVy eEuhXglWOxE8Ky1vddbtZ7S0y/Nn7QHjLQkZwZxwBdo8ACHxsDkYC9vRKnGPB34ivW2g sU8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=tZzr0q6S/hd8iHDd12ujSiJvF/f8TlKoFaIboca3mG0=; b=FHaK0Yx4S9/QKB6MvKhGgajLPHCwDYD56pLqjyG35F9+mGdXlzxLJ1aeoQ62lpgrm3 y7xd4jhzyKbDK7hb3RHTZvTcCz7jenCwOCi5cyGKACGhGFriMlS2qJULy0Rq86YCbpHJ iT9nNTFV4yqYOA7miqkYJpViao6MDNmIt+/Ka8uEQPeeoxvRwhrORCX1jNWCvmTXqvPn Z8rxPD2dXwJR7ot9oN5HW/q6cqKla2v428D/TdcHjM3TwGy3PA2zs4dbCAtSv3to+Rz7 c+aspSCsLvNyUERit4DOGNxaQ2tcVgJD7UiDO9kmMh94ZFcmDIzyue030DCAiL1UuN7y 5SAA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si3835928eda.350.2021.03.12.00.00.15; Fri, 12 Mar 2021 00:00:40 -0800 (PST) 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbhCLH4d (ORCPT + 99 others); Fri, 12 Mar 2021 02:56:33 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:56494 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231636AbhCLHz7 (ORCPT ); Fri, 12 Mar 2021 02:55:59 -0500 X-UUID: f95d19139dce4867aaa4b18b3d554191-20210312 X-UUID: f95d19139dce4867aaa4b18b3d554191-20210312 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2076225860; Fri, 12 Mar 2021 15:55:50 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Mar 2021 15:55:48 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 12 Mar 2021 15:55:47 +0800 From: Irui Wang To: Alexandre Courbot , Hans Verkuil , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , CC: Irui Wang , , , , , , Subject: [PATCH v2,1/5] dt-bindings: media: mtk-vcodec: Add dma-ranges property Date: Fri, 12 Mar 2021 15:55:38 +0800 Message-ID: <20210312075542.5503-2-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210312075542.5503-1-irui.wang@mediatek.com> References: <20210312075542.5503-1-irui.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 9AD2604808B236AB1281924F3F7EB318735AA395EF3B3D65D1674ABD64299D6D2000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mt8192 iommu support 0~16GB iova. We separate it to four banks: 0~4G; 4G~8G; 8G~12G; 12G~16G. The "dma-ranges" could be used to adjust the bank we locate. If we don't set this property. The default range always is 0~4G. Here we don't have actual bus/parent concept here. And the iova requirement is for our HW. Thus put the property in our node. Signed-off-by: Irui Wang --- Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt index 8318f0ed492d..d852683d3e6f 100644 --- a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt +++ b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt @@ -22,6 +22,8 @@ Required properties: - iommus : should point to the respective IOMMU block with master port as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt for details. +- dma-ranges : describes how the physical address space of the IOMMU maps + to memory. One of the two following nodes: - mediatek,vpu : the node of the video processor unit, if using VPU. - mediatek,scp : the node of the SCP unit, if using SCP. -- 2.18.0