From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796254187; b=dxhN38E6VMLQ7POC/elUTlte9Gd2858O+RTe7qyIEOSzmjZ1IWh/S1uxJUi3VIBO1v71 srs6s9240pZxGDUsqXiYwjG+4P99w5ByFOK94DRbqt8YzuEJ4/qXIS63pgblaOtloCscD 6ElUCpyeYEnb5yJNa+Gl+83XbMPX53Z/t+4DQHSgiHdk7QntfYhp0zLCvwqzdvPTVClyH Pxf7lB7vbkVdlF5Bwgqqo9i/2SSOwINIkGycO/BSat7NtUKbJ0DPABlucJRNsQbBPZQif tG6IImzy/LxxIcCj0N+q174ET/9Y6i7Qq8zIQznnLmxz5RU6POEiDKnlUpbwJHpeHkw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796254187; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=k1/U/w9Bbhy/v57LeRnV9RVrPM5ynxWQJ8xvC1Gcak0=; b=qU3Kv4Jmx675Z8/hIRv6k1xda8Jg0LhgAN4ER+kCGfi+uXGcnD08f3dLIhVjNitVRsoI ACcujv3zd2eKrUYtMCXDefBJ80wdZKZUYLWkk9KIHPG74+UhuLBwrt5rknUSlq0+SiucM ScEk+kbngMP+oS3XEUWwW8wyXHnoqnaDg9ocmcCCjqbsRGA4MDQ27le2nGDbG3B34hHHS gz1emmlFKz4bRQ/+eQafIFfg1qlDsiIDI/fGPTmzSX0mJ+NOU9MiubCr4nZMQU8xHtGmC MzFoGf09zUZCwC3SXhI9DPpfdRRLDk857VO0y7LCQT6nhrvbwIwnm4drznrX22ZpRuA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EtfAmw2u; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB89B606A322; Wed, 2 Dec 2026 23:29:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EtfAmw2u Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EA7D1F00896; Wed, 2 Dec 2026 23:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796254187; bh=k1/U/w9Bbhy/v57LeRnV9RVrPM5ynxWQJ8xvC1Gcak0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=EtfAmw2uQVSQh/s3ybEpd4esOH+12qRhVBp6g7gfcxQ8vi3mFh6pHvHXwNunqQIxD XynDJd2/J2bWmjEY9bxYAhowiOUiRLUMxFoazieuOEYtuAmCztZ8DVE3cVnb2pNa4Z lGa0JDkgBMkIcC6vgYLlE36/+iaWdm0ZYd2vBcEbrjQAlZRazvJ0lsLGmtGumEHEwL YcGbARoEr/x2fvEteIKHOZRUmo3NJfHj85MSiR492WOrt9zM54gUUcozAI6vxibGI1 xyHaJUJhomYZVt7xIqUCSYf7spCT37t6/v59j1j3tALU/+Is+57kuOYA37v7DydU9p QQ2Q2kbXVL4xA== Date: Wed, 2 Dec 2026 17:29:41 -0600 From: Rob Herring To: Kyrie Wu Cc: Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Mauro Carvalho Chehab , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Nicolas Dufresne , Nathan Hebert , Arnd Bergmann , Irui Wang , George Sun , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Neil Armstrong , Andrzej Pietrasiewicz , Yilong Zhou Subject: Re: [PATCH v13 01/10] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder Message-ID: <20261202232941.GA2039525-robh@kernel.org> References: <20261128095014.3128536-1-kyrie.wu@mediatek.com> <20261128095014.3128536-2-kyrie.wu@mediatek.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261128095014.3128536-2-kyrie.wu@mediatek.com> On Sat, Nov 28, 2026 at 05:50:05PM +0800, Kyrie Wu wrote: > 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 > Reviewed-by: AngeloGioacchino Del Regno > Reviewed-by: Nicolas Dufresne > --- > .../media/mediatek,vcodec-subdev-decoder.yaml | 38 ++++++++++++++++++- > 1 file changed, 37 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 90722552d..5e8a9e11d 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,mt8192-vcodec-dec > - mediatek,mt8186-vcodec-dec > - mediatek,mt8188-vcodec-dec > + - mediatek,mt8189-vcodec-dec > - mediatek,mt8195-vcodec-dec > - mediatek,mt8196-vcodec-dec > > @@ -138,7 +139,7 @@ patternProperties: > Refer to bindings/iommu/mediatek,iommu.yaml. > > clocks: > - minItems: 4 > + minItems: 2 > maxItems: 5 > > clock-names: > @@ -163,6 +164,11 @@ patternProperties: > - const: lat > - const: top > > + - description: MT8189 clocks > + items: > + - const: soc-vdec > + - const: vdec > + > assigned-clocks: > maxItems: 1 > > @@ -202,6 +208,35 @@ required: > - ranges > > allOf: If this was based on my fix, there is no 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 Why define the names twice? > + > + else: > + patternProperties: > + '^video-codec@[0-9a-f]+$': > + properties: > + clocks: > + minItems: 4 > + > + clock-names: > + minItems: 4 In my fix, I didn't try to maintain this complex if/then schema, so why are you adding it back? Rob