From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEF1060A6F56 for ; Tue, 17 Nov 2026 03:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=17pHCGSe; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=BPQCCKaP DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=y/+Bpss1hGvvZDBDgOq2LoN3fOzOPN2o3oWifkvjo9M=; b=17pHCGSeQbDGq3lUmpPw3zYzKh Svt2nbaGsWChLPCOxzqCJUxlRqP1m1hnWpvR+M5OcLCT2iWg4+0CGeDLM9LEH6ZjitY9OvtMAHRP7 /7gHrOXK1+4KndvVtwhz8zOUfoJ+D4SKID0k07IR+tUq/QigSBE3d4X3rSajgrEICkKpdB4xgf3Cw pO1NyYsRiCh7yE8hjdF4krnUnLaLDDPBVTzPMX/h7g4ktWUZ1Z7mXRRMtB7JD/X6xgPvgbvZQ38ks 6hFq7a7HmA52B0D9t2+pL92TK3IHsf0w8LQyju9UT4YKHiW2FVky9lFkFsAtEzA98b4ltN3QH2upK iPnuz3YQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xT9tn-00000004TzM-02By; Tue, 17 Nov 2026 03:30:23 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xT9tb-00000004TgO-3fuw; Tue, 17 Nov 2026 03:30:13 +0000 X-UUID: 30a43bc4e23711f1acbe4559397dec65-20261116 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=y/+Bpss1hGvvZDBDgOq2LoN3fOzOPN2o3oWifkvjo9M=; b=BPQCCKaPdAB+UcWR9hsxDOaoU/T05lJqOJ6oh00F0f1TUReE7FFavZypTrUsviqq7wXoMBABcwiaMFuw066Y2FLTsETTbSYH7XIXxCqkL/vwicG2xiO+VbGL2fLCE+d8LGGEGZT0Sk+xodtKZSYCB+yokUCLpp2mjRDNlvWRLqA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.21,REQID:b43536f3-4c46-4a4f-9fd5-f5f12767d62f,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:b0318ac,CLOUDID:5682d552-04ef-4094-bd73-078046ac4d80,B ulkID:nil,BulkQuantity:0,SF:81|82|102|836|865|888|898,TC:-5,Content:0|15|5 0|99,EDM:-3,IP:nil,URL:0,File:130,RT:0,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0 ,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 30a43bc4e23711f1acbe4559397dec65-20261116 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1953467338; Mon, 16 Nov 2026 20:30:09 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 17 Nov 2026 11:30:06 +0800 Received: from gcnsap21.gcn.mediatek.inc (10.17.81.22) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Tue, 17 Nov 2026 11:30:05 +0800 From: Kyrie Wu To: Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Kyrie Wu , Nicolas Dufresne , Ricardo Ribalda , Kees Cook , Hans Verkuil , Fei Shao , Haoxiang Li , Chen-Yu Tsai , Laurent Pinchart , Tomasz Figa , Philipp Zabel , Benjamin Gaignard , Qianfeng Rong , Irui Wang , Jacopo Mondi , Fan Wu , , , , , CC: Sakari Ailus Subject: [PATCH v9 08/14] media: dt-bindings: mediatek,vcodec-subdev-decoder: Add MT8196 Date: Tue, 17 Nov 2026 11:29:44 +0800 Message-ID: <20261117032950.1425556-9-kyrie.wu@mediatek.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261117032950.1425556-1-kyrie.wu@mediatek.com> References: <20261117032950.1425556-1-kyrie.wu@mediatek.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261116_193011_973879_7A9C81C5 X-CRM114-Status: GOOD ( 12.20 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Compared to previous ICs, the MT8196 supports a 10-bit decoder and has a decoding capability of 4K@120fps. It also supports 36-bit DRAM IOVA address and Video Power Control to optimize bandwidth and voltage usage. MT8196 uses VCP to run the decoder firmware, so require mediatek,vcp for MT8196 and move the mediatek,scp requirement into the condition for the existing SoCs. Signed-off-by: Kyrie Wu Acked-by: Nicolas Dufresne --- .../media/mediatek,vcodec-subdev-decoder.yaml | 52 ++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml index d1d209cbb..c06d8a8a6 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml @@ -76,6 +76,7 @@ properties: - mediatek,mt8186-vcodec-dec - mediatek,mt8188-vcodec-dec - mediatek,mt8195-vcodec-dec + - mediatek,mt8196-vcodec-dec reg: minItems: 1 @@ -96,6 +97,11 @@ properties: The node of system control processor (SCP), using the remoteproc & rpmsg framework. + mediatek,vcp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the Video Companion Processor (VCP) that runs the + video decoder firmware. + "#address-cells": const: 2 @@ -163,7 +169,6 @@ required: - compatible - reg - iommus - - mediatek,scp - ranges if: @@ -179,6 +184,51 @@ then: - interrupts allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8196-vcodec-dec + + then: + required: + - mediatek,vcp + + properties: + mediatek,scp: false + + patternProperties: + '^video-codec@[0-9a-f]+$': + properties: + compatible: + enum: + - mediatek,mtk-vcodec-core + - mediatek,mtk-vcodec-lat + + clocks: + maxItems: 4 + + clock-names: + items: + - const: sel + - const: vdec + - const: lat + - const: top + + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8192-vcodec-dec + - mediatek,mt8186-vcodec-dec + - mediatek,mt8188-vcodec-dec + - mediatek,mt8195-vcodec-dec + + then: + required: + - mediatek,scp + - if: properties: compatible: -- 2.51.0.windows.2