[PATCH v12 01/10] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder

From: Kyrie Wu

Date: Tue Nov 17 2026 - 03:59:10 EST


Add compatible for video decoder on MT8189 platform. Compared with
former ICs, the MT8189 decoder use iommu to instead of smmu, and
use scp architecture, the frequency is only 406MHZ, and cannot reach
more than 700MHZ. It uses two clocks named soc-vdec and vdec. At the
same time, the decoder supports the vp9 decoding protocol for the first
time in single IC.

Signed-off-by: Kyrie Wu <kyrie.wu@xxxxxxxxxxxx>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
---
.../media/mediatek,vcodec-subdev-decoder.yaml | 24 +++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml
index c06d8a8a6..ae102a44e 100644
--- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml
+++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml
@@ -75,6 +75,7 @@ properties:
- mediatek,mt8192-vcodec-dec
- mediatek,mt8186-vcodec-dec
- mediatek,mt8188-vcodec-dec
+ - mediatek,mt8189-vcodec-dec
- mediatek,mt8195-vcodec-dec
- mediatek,mt8196-vcodec-dec

@@ -137,11 +138,11 @@ patternProperties:
Refer to bindings/iommu/mediatek,iommu.yaml.

clocks:
- minItems: 4
+ minItems: 1
maxItems: 5

clock-names:
- minItems: 4
+ minItems: 1
maxItems: 5

assigned-clocks:
@@ -184,6 +185,25 @@ then:
- interrupts

allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: mediatek,mt8189-vcodec-dec
+
+ then:
+ patternProperties:
+ '^video-codec@[0-9a-f]+$':
+ properties:
+ clocks:
+ minItems: 2
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: soc-vdec
+ - const: vdec
+
- if:
properties:
compatible:
--
2.51.0.windows.2