From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=210.61.82.184 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794886217; b=AmEVwMuiwVD9jsWAsp8VxdNB8KIlZSDHy4TFrWifGmNUEkQ8+mHFI85Z1bsFBO0CSqvY KwWuApdwPV1yxPrNqLRMDt3ztwrRXHL1z7BYZFxavaY1/To3jf09wVqbHzvecnpq/l596 gR3EcXzGrckbVs1a3IBPRo7ao9Uz9mz3sbZnVteEuRGq7IKNNuSl3r44R9YNrhncVt0A6 11/j/tAoLKLCbRaIYIREHpjUcPvlAjvUx4J5ijJOdj84w4BHYVQNCSYBMj8B4YOFYuSHK BS0Waw2JBZFXCiUyCzQPcxYbgwugAbFyBZZzPx6j/LCRwS6rZwCc942lkQLv7q5ZtoQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794886217; h=DMARC-Filter:X-UUID:DKIM-Signature:X-CID-P-RULE:X-CID-O-INFO: X-CID-META:X-CID-BVR:X-CID-BAS:X-CID-FACTOR:X-CID-RHF:X-UUID:Received: Received:Received:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: Content-Type:X-MTK; bh=y/+Bpss1hGvvZDBDgOq2LoN3fOzOPN2o3oWifkvjo9M=; b=RwVbJ0me/mmIK/SJVuymbT9zUHLfBO8ubmgvCbxICNpEfdO09fLVq/1LCsrQgVRAYxfz OqCJ30vlyx06RdCDa6BxLuYPjHB6mv8gWRbZEQfLvjcphY0nmnyk0JgKxzhI6omgHujt4 ENgNxIh7/479ukYse7evL2+Z7wBgrWFoatKY4v+3+VY2+/+WzMbBdKK+dO4EET316Siub N9qskT0pzHlSaIyO2I7k8vRXin2CtHgnZbthzuQeJb3pAlOYbHgcAQPyK2mAZvlJx0mHl Y+Bz0CEcyczPEjdhOVy4nfRf2RS6m2Q5PCVDWnCMIih3GLKtGt+1nJw/ddkr83W/sRQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=BPQCCKaP; arc=none smtp.remote-ip=210.61.82.184 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 2ADE4606A88D; Tue, 17 Nov 2026 03:30:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2ADE4606A88D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.a=rsa-sha256 header.s=dk header.b=BPQCCKaP X-UUID: 2fd468cce23711f18dc8c9802ae25ab1-20261117 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:1370006e-a171-41c8-ad18-d2dfa2f00823,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:879b6466-4b51-4c95-bb1b-80ac6aad9c96,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: 2fd468cce23711f18dc8c9802ae25ab1-20261117 Received: from mtkmbs09n2.mediatek.inc [(172.21.101.94)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 425237074; Tue, 17 Nov 2026 11:30:07 +0800 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N 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