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

From: Kyrie Wu (吴晗)

Date: Fri Oct 16 2026 - 02:44:35 EST


On Mon, 2026-10-12 at 11:39 +0200, Krzysztof Kozlowski wrote:
> On Sat, Oct 10, 2026 at 04:36:07PM +0800, Kyrie Wu wrote:
> > 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.
> >
> > Signed-off-by: Kyrie Wu <kyrie.wu@xxxxxxxxxxxx>
> > Acked-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
> > ---
> >  .../media/mediatek,vcodec-subdev-decoder.yaml | 49
> > ++++++++++++++++++-
> >  1 file changed, 48 insertions(+), 1 deletion(-)
>
>
> Honestly, I see random approach your patches visible in how
> inconsistently you use subject prefixes.
>
> Where did you describe REASON to drop the tag?
>
>
> >
> > diff --git
> > a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-
> > decoder.yaml
> > b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-
> > decoder.yaml
> > index d1d209cb..d8f25ccd 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,48 @@ 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
> > +
>
> Missing constraints for clocks
>
> > +            clock-names:
> > +              items:
> > +                - const: sel
> > +                - const: vdec
> > +                - const: lat
> > +                - const: top
>
> Best regards,
> Krzysztof
>
Hi Krzysztof,

I did not explain why mediatek,scp was removed from the
common required list. MT8196 uses mediatek,vcp, while the older SoCs
still require mediatek,scp. I will describe this explicitly in the v9
commit message.

I will also change the subject to:

media: dt-bindings: mediatek,vcodec-subdev-decoder: Add MT8196

and constrain the MT8196 child-node clocks array to exactly four
entries by adding maxItems: 4, matching the four clock-names.

Thank you for the review.

Best regards,
Kyrie