Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1393372pxj; Fri, 21 May 2021 13:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5wQTQs9xnqGgNyPzMRFxJA0orQF+fLMB1hWfM70XUyyvk5Jx70h7BWXkwoeRpqxV0gxlV X-Received: by 2002:a92:cf0f:: with SMTP id c15mr563273ilo.288.1621627706112; Fri, 21 May 2021 13:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627706; cv=none; d=google.com; s=arc-20160816; b=eI/YPi9pHPiKtGuKYNM4qz3d6CHXc/lF1can1FomC2ThX0kNu64B/R08NPYH7YWQNL l7Y4jwse+2ONVe8gnGmNG1h0LbV43Rlmd0w2f39UKUEF+noxjhN+cUVj4Aj3Zo6olFsc WKtd9ykYQtPQuKxa4O8YJf1KUCynUGlKQStYPhvsF8G7NUw3xmlZHmjBvv8DH07RGgTE 41aCVkcJV8F/Dp+/OfzfeMLnz9fzJWCu4v72XRatPPqwpM8Y3Z53i6g9yM84Hu3yNYb5 vMY+JEwxCoiLCp5Vt6wBDiELCSEoK0otuXfxo3WopfUuxLyRvlJRgtdkNuFNW9SeuGh+ b5Uw== 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=BlvR7tig+6LUutZ7PG2uXMe9EMBXxiU0bY4qwrBHTWY=; b=mpSJprJmkdfm+DU7rc4yWWX34wilAc7hLwETEg2eIxltFFZbHgbJ7LbZd/8Z4JGDFT Osp7DRenMsW8THZ4l11JyFytm8Fc59Ii2ZxcVTwkm4R4ShuajHHQB12QzvedtAR55F81 rjh4UKTJJVYtQZRd9LfEdfgepP9U30f0v2HBBM2EQuesHtHq5YVS2KkFawa1ZLaC5gfc eBNSMSpoXunXiCvAdEaL5Mwd7Cff2ehw0nb9yrJjwGvYwHN7zQihzelnmQHtY82Jtona Wkzi9Z1/7gpmsUXhfoF335AZlFfRxFgpZ9Evg+ZC16tYPEWz1/WH++n6weO9BmS0Rnii pKmA== 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 o8si6931675ilu.133.2021.05.21.13.08.13; Fri, 21 May 2021 13:08:26 -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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234796AbhEUHDb (ORCPT + 99 others); Fri, 21 May 2021 03:03:31 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50841 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234713AbhEUHD0 (ORCPT ); Fri, 21 May 2021 03:03:26 -0400 X-UUID: 565b37de30d34d1f916e9ea26bc263d2-20210521 X-UUID: 565b37de30d34d1f916e9ea26bc263d2-20210521 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 7200639; Fri, 21 May 2021 15:02:00 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 May 2021 15:01:57 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 21 May 2021 15:01:56 +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 , Yong Wu CC: Yunfei Dong , Fritz Koenig , Tzung-Bi Shih , Irui Wang , , , , , , , Subject: [PATCH v4,2/6] dt-bindings: media: mtk-vcodec: Add dma-ranges property Date: Fri, 21 May 2021 15:01:35 +0800 Message-ID: <20210521070139.20644-3-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210521070139.20644-1-irui.wang@mediatek.com> References: <20210521070139.20644-1-irui.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 06db6837cefd..b7801e3c354a 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.yaml 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