Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2234438pxb; Mon, 12 Apr 2021 18:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyapHmgcsYjXMKPqHTvoJh0HcfxPOkG/gBhLuSDCkQ0Rz+sELt52dmgxkPXAVAxI+qUbDaP X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr31476720edc.22.1618278964192; Mon, 12 Apr 2021 18:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618278964; cv=none; d=google.com; s=arc-20160816; b=bitJjiwpGFSc7k5JyAxAFaBpUFphynLChH0QWrA0UD0/klaZBg+KbmhikjKYnvOPT6 FNklf2PfJd1U41/y33fkilrDOPQne5BpnGyd8HPz9UzJJFr63V0J9eod8asaIunqSj7n Qf7DMXeGcr61fqnG/CiUS4ncZZbftV9YVDr8ED+3o6HJwHy+Db/d1gRo8fLXYdY3SJYC nGvijxb7rdVgIv0tvswfp6FD6t6CZ2ZITVdCyJsv7yzItoUfyVddFbGnk3xL2glVl6CE HVYmuF0cvdI7JQeivQKXaklse2RaRrQglNUVBsDfrZcJ0Oa3IWcLSR/dPM1FiiJdM6zj SR6g== 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=wKarHttKlfKC/nKJJW3qv/KTvVf3UZgUk/ogs5llQ/Q=; b=PFtZZEm5lV5ehAUHYs1dOCVT/wEyOGltEWznsJIUM7nBpq2Au0TQoEbXHh1kCxtWuO C9xzd9KRyE6TDrIi2gHw46BpX96eaVp6TPkJ0hsRkcESu/DuQpambxJn3i/o56B6mweg 5pGfEwkIagoEO1SR5a7SaR6+P2z4BKLP+Hy/F7RPVlWbEiKwVYZxWN2AdTOq4xVxHCpI aV9zIlMzsYHluYael72nNwu+PCtIG70zMZ1+ikqjfc54P12+o6MNoNiJqklOxgAI9/1A LUXQDKAqaJ7Atb4smtxQ8Guhm8zWljVdtPYnfQ7phEtFy7MpU+JO2ZYANl2xJWSqhxGe t0Ag== 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 b13si9375930ede.383.2021.04.12.18.55.40; Mon, 12 Apr 2021 18:56:04 -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 S241351AbhDLMqn (ORCPT + 99 others); Mon, 12 Apr 2021 08:46:43 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33919 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S239992AbhDLMqg (ORCPT ); Mon, 12 Apr 2021 08:46:36 -0400 X-UUID: 6feca018001e43a1b81ede7cb9650847-20210412 X-UUID: 6feca018001e43a1b81ede7cb9650847-20210412 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 1224037321; Mon, 12 Apr 2021 20:46:14 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Apr 2021 20:46:09 +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; Mon, 12 Apr 2021 20:46:07 +0800 From: Irui Wang To: Alexandre Courbot , Hans Verkuil , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger CC: Tiffany Lin , Fritz Koenig , Tzung-Bi Shih , Maoguang Meng , Longfei Wang , Yunfei Dong , Irui Wang , , , , , , , Subject: [PATCH v3,2/6] dt-bindings: media: mtk-vcodec: Add dma-ranges property Date: Mon, 12 Apr 2021 20:45:51 +0800 Message-ID: <20210412124555.26897-3-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210412124555.26897-1-irui.wang@mediatek.com> References: <20210412124555.26897-1-irui.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 7A245EEF486F4D984B2C3822463F9071D1DE909E28870D326F70B646EA8206E62000: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 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.25.1