Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1578109pxj; Fri, 4 Jun 2021 19:31:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQDe5uGNnvJVnzJ0jzuK/+XHhCGmUkbU/h9SLI/b0aiYUNst9mTiChnF3mpT56L9IZxnhp X-Received: by 2002:aa7:ce05:: with SMTP id d5mr7769521edv.325.1622860310301; Fri, 04 Jun 2021 19:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622860310; cv=none; d=google.com; s=arc-20160816; b=oc0KTeGzdHV8bHB7/GhoEczHNzXRVL9znH08bUJKgCXqS55urYoCjdFwgHtEvJx98s CzQOACD/tPXVYPpmCzp6k7wI0lLzqBSnibGymDiHH4twbdxk/mkoy8Cg3iBRyjEAakp8 5lYzgpGJ5XpR6itXULvKYbW8O5FfMfJMPsgmYCsHL3mX4OXEKwxRTH1ZGPKZ0YS/8YDA VPr5hqI1wvvChXhdhxytq+1jAxWgVzfUyVe8P7dXZfQNMu+NEE757hzw3P7Sm8zVW4Ia b7EF5w7/hvK1jpwgGOSEZMmJtCmjmQDM91D+fJjRIC1K2qvQpigXdLFGFJSfpVweXxyg i3HQ== 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=UO0FjOndtzXnC5GVKIoABzmWOB0oOSZ0V8lVb+dWMpU=; b=AE6km+YUveFdWjglu+tES9I1D+iShvWJIjRj43aBrf/2QyM1umDxZew09RVPHDCRne ZqwU61Smwapjfl8M1YxkkaAZRU8KN5VEA63FofghQRDpUinVT4IwSFMr2gjXDOvQjhy/ Pz4bjHWHh1qtI08dvf9+4Yt6HX2p2Vb/H5kdxTZ1aEZnXJq1CTxAK8IjGjaq0hGtRC6h jeboKpQSs6zRtcut4ypr2zL3YtHylNaSyvYAcUnXpTmyIcoQdoBbPnPcTsw1fNK4Om5Y 4EY4Q1ckOYin2KWfTAjcHms43QiNAEvPeAi3pW39zmwHWE/tl9d7CsGMv+Ezm3iaL9ju HJ4Q== 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 t12si7508809edc.33.2021.06.04.19.31.27; Fri, 04 Jun 2021 19:31:50 -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 S231572AbhFECbU (ORCPT + 99 others); Fri, 4 Jun 2021 22:31:20 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35062 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231527AbhFECbS (ORCPT ); Fri, 4 Jun 2021 22:31:18 -0400 X-UUID: 761653e3f0e64fec9bae36c74c11f6d4-20210605 X-UUID: 761653e3f0e64fec9bae36c74c11f6d4-20210605 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 77907895; Sat, 05 Jun 2021 10:29:30 +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; Sat, 5 Jun 2021 10:29:28 +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; Sat, 5 Jun 2021 10:29:27 +0800 From: Irui Wang To: Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Yong Wu CC: Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , Fritz Koenig , Irui Wang , , , , , , , Subject: [PATCH v5,2/6] dt-bindings: media: mtk-vcodec: Add dma-ranges property Date: Sat, 5 Jun 2021 10:29:14 +0800 Message-ID: <20210605022918.4213-3-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210605022918.4213-1-irui.wang@mediatek.com> References: <20210605022918.4213-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. This is optional and only needed in mt8192, the dma ranges should not cross 4G/8G/12G. 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. Acked-by: Rob Herring Signed-off-by: Irui Wang --- Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt index 06db6837cefd..5bb9e6e191b7 100644 --- a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt +++ b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt @@ -22,6 +22,7 @@ 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 the dma address range space that the codec hw access. 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