Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6535078rwb; Mon, 5 Dec 2022 13:53:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ktWQirKCQ+7e42QuYSIRF4U2fd+gtwkftG1vVM9jRPViHVda1EkfLMMoBuuuheKLc6jN+ X-Received: by 2002:a63:2226:0:b0:478:54e2:ecb1 with SMTP id i38-20020a632226000000b0047854e2ecb1mr26154999pgi.550.1670277201969; Mon, 05 Dec 2022 13:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670277201; cv=none; d=google.com; s=arc-20160816; b=qrCJ1qLrYVg/xr1Yp30EqQHaWucWzCndAI+W1ocoph9kqGYtDYnuLTV5CUc9wwKCFE tU1ssdKKe4ZrPoMWknaheINIM3dBH8wvLCieQ0s0CV9q67OIG3Lu8EPP9ujYKNOP1Eyd m42fVfPptVXugCGN6em7Q6AFz1ECYj4O0EVJnIU8YuOs9ndUTZMjaFME8XcGjAiifGOs ISudrKX+dJbM+eDoVp7k/LrzEKfmfOtq3NiDcMNYTm+ybUXKJIugyfeidtJaUvoqnCqj sd/X6/stMv4Mh7iefaODjQpvEaXYhRROKiYxlzUjZj47cSnHJRRgxW4WkBqJl9T4CPxC 1V2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Po/Vnp740e9T+tDgfbAWj+RPcPol9ZJzo1R1BoQoilk=; b=rE6HfxXx/y6akq6F9SEL9zekbUC5gUyukU/5HMzMplW44Il1prY/e+GF6LhkTKtvfv 24oV2X/EU/8xUvm7y2b58UuuBYbHrL9OgUPY9QYVgM79GuoDSD7jmE086Pj3I8OvXS4n rWotyvut5+GGpxqQjbd86mxSBdwDTcALRe1lJypRLHqrLTjRdEf8GwMMOMISeYohpOJV xEqsa/lx9lt03zpXO+R4yNEXDBs1QOHx+gGNlAelGRbGIzVLnEbYSFfPNQfwkjS12hfS YS7Ux3o8rVHl+MRWKJi1BNhoT3y+rjd3PHcS91luknTv5Lsi3wr8l6wK2YDReJemhtJv KpTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lRQUJmwn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170903120d00b00189b7f50e78si12036300plh.134.2022.12.05.13.53.11; Mon, 05 Dec 2022 13:53:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lRQUJmwn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233146AbiLEVcR (ORCPT + 81 others); Mon, 5 Dec 2022 16:32:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232543AbiLEVcP (ORCPT ); Mon, 5 Dec 2022 16:32:15 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0B642BB09; Mon, 5 Dec 2022 13:32:14 -0800 (PST) Received: from notapiano (unknown [IPv6:2804:14c:1a9:3b3c::1000]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7E9CA66015B4; Mon, 5 Dec 2022 21:32:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1670275933; bh=50/6QIo85oB6JxRj95P+uB219lfikFqskeQx/8eOvno=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lRQUJmwna1Fd3WRydn/u93hKBrfttIOdTcafin+jSSCYjr8s1GC7M6p2HGiatKbtM dw3/omlPJCPUvvIgvS1mZkuutCWS18K758oZj6pZrK96KiwBrh6PwsBhwsS6x8WRCZ D/ZviTmlAkrpSKOigl4ACIML7N9J6ZGh3CkfXhuMDK2mQa37es2OIctUDX5itDZT+m neu34try3QNXbu4wn3s9rqq7sE/HkJagVPpvFShgr97iqqxw4NfM0evX5yysOwVWFU /tHa61VDvgghxpot4Q/5Q1TbgR4WHQZPJBtA1C1RFFEjnjCVpsTxLiyOiQ0t99oyby //suG3cbYJkKw== Date: Mon, 5 Dec 2022 18:32:04 -0300 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Allen-KH Cheng Cc: Mauro Carvalho Chehab , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Project_Global_Chrome_Upstream_Group@mediatek.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, yunfei.dong@mediatek.com Subject: Re: [PATCH v5 1/3] media: dt-bindings: media: mediatek: Rename child node names for decoder Message-ID: <20221205213204.ftnarhtsk33pprq3@notapiano> References: <20221128143832.25584-1-allen-kh.cheng@mediatek.com> <20221128143832.25584-2-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221128143832.25584-2-allen-kh.cheng@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 28, 2022 at 10:38:30PM +0800, Allen-KH Cheng wrote: > In order to make the names of the child nodes more generic, we rename > "vcodec-lat" and "vcodec-core" to "video-codec" for decoder in > patternProperties and example. > > Signed-off-by: Allen-KH Cheng > --- > .../media/mediatek,vcodec-subdev-decoder.yaml | 60 ++----------------- > 1 file changed, 4 insertions(+), 56 deletions(-) > > diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml > index c4f20acdc1f8..695402041e04 100644 > --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml > +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml > @@ -91,12 +91,13 @@ properties: > > # Required child node: > patternProperties: > - '^vcodec-lat@[0-9a-f]+$': > + '^video-codec@[0-9a-f]+$': > type: object > > properties: > compatible: > enum: > + - mediatek,mtk-vcodec-core > - mediatek,mtk-vcodec-lat > - mediatek,mtk-vcodec-lat-soc > > @@ -145,59 +146,6 @@ patternProperties: > > additionalProperties: false > > - '^vcodec-core@[0-9a-f]+$': > - type: object > - > - properties: > - compatible: > - const: mediatek,mtk-vcodec-core > - > - reg: > - maxItems: 1 > - > - interrupts: > - maxItems: 1 > - > - iommus: > - minItems: 1 > - maxItems: 32 > - description: | > - List of the hardware port in respective IOMMU block for current Socs. > - Refer to bindings/iommu/mediatek,iommu.yaml. > - > - clocks: > - maxItems: 5 > - > - clock-names: > - items: > - - const: sel > - - const: soc-vdec > - - const: soc-lat > - - const: vdec > - - const: top > - > - assigned-clocks: > - maxItems: 1 > - > - assigned-clock-parents: > - maxItems: 1 > - > - power-domains: > - maxItems: 1 > - > - required: > - - compatible > - - reg > - - interrupts Looks like interrupts was required for vcodec-core, but it isn't for the generic video-codec node. Which seems correct, given that the vcodec-lat-soc doesn't have an interrupt [1]. So I guess this is just the generic video-codec node in the binding being too generic for some cases. Ideally we would override interrupts to be required based on which subnode we're dealing with (for lat and core, but not lat-soc), but given these are subnodes matched through patternProperties, I'm not sure that would be possible. [1] https://lore.kernel.org/all/20221202034450.3808-3-yunfei.dong@mediatek.com/ Thanks, N?colas > - - iommus > - - clocks > - - clock-names > - - assigned-clocks > - - assigned-clock-parents > - - power-domains > - > - additionalProperties: false > -