[PATCH v9 08/14] media: dt-bindings: mediatek,vcodec-subdev-decoder: Add MT8196

From: Kyrie Wu

Date: Mon Nov 16 2026 - 22:31:14 EST


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 <kyrie.wu@xxxxxxxxxxxx>
Acked-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
---
.../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