From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6DB9A606A32C for ; Wed, 2 Dec 2026 23:29:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ifxQ3OzD; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EtfAmw2u DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=k1/U/w9Bbhy/v57LeRnV9RVrPM5ynxWQJ8xvC1Gcak0=; b=ifxQ3OzDOmoDahU6TBHU/UblJC 8ultvGXaUN0wMYYUsXM8AM0JMF34tmlR74mfJ0YPDBuUC/TbVjmdLgtVVKj40KMP4RiWyKKpvy/Ar YZBbqulgwkoxauHH7/5Fko/JunfrS3Xnr2MunWaXheV5sCDpX/Z1LdaO84OCFpo8utTnMpqtPe4rx fO9ac5b0PWIBbPPXJV0zZDX71Bm0P53S3qAhFFHJkE+WgvTgFlbSD0sWdiosZm5CFhG4Avi4zQAnE MRZCo/rPbhPeN1pNHi3fQX1D5wLwhif2F9tV+wHqWk3jOWei4IKGdvs5b9khgHhMRs+dhVN3IcSxq QOYhzyyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYtlm-0000000CzrD-0UHy; Wed, 02 Dec 2026 23:29:50 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYtlk-0000000Czqz-2AIT; Wed, 02 Dec 2026 23:29:48 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id A578D600CB; Wed, 2 Dec 2026 23:29:47 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261128095014.3128536-2-kyrie.wu@mediatek.com> X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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