Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp114783pxb; Wed, 3 Feb 2021 00:45:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa77AZclz+O3CF5V/efCdLkt/NidlOe/tQz9ETCx8z05+LBk88j/FuOZHNkXDLgERIOrZF X-Received: by 2002:a17:906:5ac8:: with SMTP id x8mr2124197ejs.347.1612341928317; Wed, 03 Feb 2021 00:45:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612341928; cv=none; d=google.com; s=arc-20160816; b=p/gIGNHE0gYg8nDy2kwf/8baFcS9lzNFTfRVkdKpAljtBgSc1tn+igSWuZbmB8WxzQ QZt3lw3J6T4avipXb/j67qHT4FsbED6hI9wWAw5FOWGi/QM4sgrff1dp0nAA+plGAUZe h4L7SCU6pnCs0uQkvTR5Sl1pp79A0f1CU0TmctcYTIdLzw9+ouu471RAL03ypmbfkTzn yqeruTn9BpPHlRCluivWjaWJg+HMBprGpR6cFrsbnamRVX1ERo8DtZu1c81oKryqKktT buam/bFb6k6xEN+tE5nG/tQ4tAc3GsZs4ZRf01ycIzE9dV7Xll8cTp+s99cjhu3fUMkD +yOw== 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=Oh8dBybziMD3WDZom0rCIF4v3enaLeK1GP+zbL+I1Po=; b=XpYFN9tmahGJ9Pz7JC4Am64WIIJ04KwJ1ZIX8TN5eohlXQFQlxGZlU4KvaSOwlZBIs DpckdUys1qZugi+zSmQOa7GXMHj4wVSgVPQa1D0Jirr5HpGZ30NS+HLC5UQ7hV5xxlwi b9zUI8Q00NK+VYvrDYwl83rT8JcRBjk48L3YkLtpy4kpxj/DJN5W9D+oRZ4Y32xykkHS 6bxZRz4Kx1XAvgrS1PC0mASJeekqBirljZeSEFvIU0FgPDmNDrQ3cPdxe+g24zOVP+3l Iy3hMxBrLOc6W6w3e9Bqus6S8aFeF9PbYtSIanBCEsyWAhLeXp6E4SZXI3gCDGwsG+XL dnzA== 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 pk20si919809ejb.103.2021.02.03.00.45.03; Wed, 03 Feb 2021 00:45:28 -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 S232991AbhBCIkT (ORCPT + 99 others); Wed, 3 Feb 2021 03:40:19 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:53953 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232949AbhBCIjb (ORCPT ); Wed, 3 Feb 2021 03:39:31 -0500 X-UUID: d86ab703ba6c4f02b062ab686072fe31-20210203 X-UUID: d86ab703ba6c4f02b062ab686072fe31-20210203 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] 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 1878262360; Wed, 03 Feb 2021 16:38:47 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Feb 2021 16:38:03 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 3 Feb 2021 16:38:03 +0800 From: Irui Wang To: Alexandre Courbot , Hans Verkuil , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Fritz Koenig , Tzung-Bi Shih CC: Maoguang Meng , Longfei Wang , Yunfei Dong , Irui Wang , , , , , , Subject: [PATCH 3/5] dt-bindings: media: mtk-vcodec: Add binding for MT8192 VENC Date: Wed, 3 Feb 2021 16:37:50 +0800 Message-ID: <20210203083752.12586-4-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210203083752.12586-1-irui.wang@mediatek.com> References: <20210203083752.12586-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 Updates binding document for mt8192 encoder driver. Signed-off-by: Irui Wang --- .../bindings/media/mediatek-vcodec.txt | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt index e4644f8caee9..c7fac557006f 100644 --- a/Documentation/devicetree/bindings/media/mediatek-vcodec.txt +++ b/Documentation/devicetree/bindings/media/mediatek-vcodec.txt @@ -9,6 +9,7 @@ Required properties: "mediatek,mt8173-vcodec-avc-enc" for mt8173 avc encoder. "mediatek,mt8183-vcodec-enc" for MT8183 encoder. "mediatek,mt8173-vcodec-dec" for MT8173 decoder. + "mediatek,mt8192-vcodec-enc" for MT8192 encoder. - reg : Physical base address of the video codec registers and length of memory mapped region. - interrupts : interrupt number to the cpu. @@ -128,3 +129,28 @@ vcodec_enc_lt: vcodec@19002000 { assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL_370P5>; }; + +vcodec_enc: vcodec@0x17020000 { + compatible = "mediatek,mt8192-vcodec-enc"; + reg = <0 0x17020000 0 0x2000>; + iommus = <&iommu0 M4U_PORT_L7_VENC_RCPU>, + <&iommu0 M4U_PORT_L7_VENC_REC>, + <&iommu0 M4U_PORT_L7_VENC_BSDMA>, + <&iommu0 M4U_PORT_L7_VENC_SV_COMV>, + <&iommu0 M4U_PORT_L7_VENC_RD_COMV>, + <&iommu0 M4U_PORT_L7_VENC_CUR_LUMA>, + <&iommu0 M4U_PORT_L7_VENC_CUR_CHROMA>, + <&iommu0 M4U_PORT_L7_VENC_REF_LUMA>, + <&iommu0 M4U_PORT_L7_VENC_REF_CHROMA>, + <&iommu0 M4U_PORT_L7_VENC_SUB_R_LUMA>, + <&iommu0 M4U_PORT_L7_VENC_SUB_W_LUMA>; + interrupts = ; + dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>; + mediatek,scp = <&scp>; + power-domains = <&scpsys MT8192_POWER_DOMAIN_VENC>; + clocks = <&vencsys CLK_VENC_SET1_VENC>; + clock-names = "venc-set1"; + assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D4>; +}; + -- 2.25.1