Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6300045rwb; Mon, 5 Dec 2022 10:19:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf43Wcc7hKVH5v8TsPJ2pwRc1+PfvMbvTlx3BhpOgxF49BmyKwUPe9rukWqfupqefSaJ13fO X-Received: by 2002:a17:906:7ad0:b0:7c0:f9eb:61fd with SMTP id k16-20020a1709067ad000b007c0f9eb61fdmr3769656ejo.562.1670264355478; Mon, 05 Dec 2022 10:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670264355; cv=none; d=google.com; s=arc-20160816; b=uVHyQG4WswGrUdkUdlWFfZ1RZlKUExD9Ky3uDQLlc817viI9xNF6Kz00P4013lIi56 atLJmUDuCZac01V4gbEDjy1qbI9Yh8WtTuR1wY9Ik67M2Vb0WTSEG1FUyuz5Co9eWl5x JxSiOie/wvVpDrIbjqPIjh/M3l4dlRAJUyjKGe7woLj/XQzEecyfKCzCIBqUoleOOMXu SJURhNBF57tBLob/IiSNCwBmqnVpD3mO7m7Dc+Zrva46B1AAdsnmBfRbLuVNIADfM38+ P+irBgJ7Ia6xxwW1pFAjrqLu69duydhBN2rDxTMTXWkywDBtqIzuRIUlWvW6gmDbaE+T ugRQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qjD5jvfs1Q2x/cdcxaQ+cfzZKHiqKwOk2YSAqbwKlVo=; b=R7qtcm58POF+SuXpdytWD6zp0yxSHV9YgJq3Wg9e2Nq3Zl1w5aP2ucA/S7y9PkAS+E TtONtEl1OISjPxY47AbZ6AZubl+YlF3ywHBc5QN1Q1rwfL3f7HRnhUyLLA5FI63JD4Qf NIM185RBZl/W3FjkMuQwJCWT1ju5e7tv05omQdi/+kC6zinIWnxD4PIxcIoZbGVApqRn M39uKg0SB5EwC6mx5DlFOItp2L3oTLCda53iHv0mYZd5PYVbWX1V+ZbbR/TTZk3Qmzo9 Oo0NrOBCSEH98QT3EFEDgM8+EgR4tRAoDTgCfiu3eF2Htvu6MuYW2w7S/fPstfGuXLIi DtcA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wy1-20020a170906fe0100b007269ef1872esi11219939ejb.897.2022.12.05.10.18.55; Mon, 05 Dec 2022 10:19:15 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231837AbiLERzx (ORCPT + 81 others); Mon, 5 Dec 2022 12:55:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbiLERz3 (ORCPT ); Mon, 5 Dec 2022 12:55:29 -0500 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D0941AD; Mon, 5 Dec 2022 09:54:32 -0800 (PST) Received: by mail-oi1-f171.google.com with SMTP id l127so13917887oia.8; Mon, 05 Dec 2022 09:54:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qjD5jvfs1Q2x/cdcxaQ+cfzZKHiqKwOk2YSAqbwKlVo=; b=X12WQ97Y1cgdbJd+Eq81q+PZMhgnH2VWJ7k8nas1LVX7HtErvLPJmbZnbKfPvHgyaZ /P7eBRWTHI3zClC0vfSSSEy4rs1C7JoMTBE0Uc9Na9kipWBZzjkBJoyrI5UuXtaQfPU+ JppG1awGmtr8B9T4xceJPpgsv4x520zIxWfsV37RPEYj3xowGnK3++CSXr9CtnZY/MiI Q7l1kTfKzpkSxjIEnGb8PvNQMKOabTE/B2vIs4aAJpMp6bKB80pONIn/uh1BSsRxUamT Nz47oUWRALat8n1bVZfbJvMSZRMtcio5ttxtBUX8U70OJ8rrniJ1kVNpXazpsF6umkJl +kXQ== X-Gm-Message-State: ANoB5pmwX1kNReqCmNg6lXSW/lWmTeTutk9gS98uenkkZ6hc4iTWkbX+ WfQBByfpzj5RXGOIkpyHUQ== X-Received: by 2002:a05:6808:1246:b0:354:4b35:2809 with SMTP id o6-20020a056808124600b003544b352809mr40266726oiv.256.1670262871784; Mon, 05 Dec 2022 09:54:31 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m6-20020a056870a40600b0012d939eb0bfsm9448668oal.34.2022.12.05.09.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 09:54:31 -0800 (PST) Received: (nullmailer pid 2143933 invoked by uid 1000); Mon, 05 Dec 2022 17:54:30 -0000 Date: Mon, 5 Dec 2022 11:54:30 -0600 From: Rob Herring To: Yunfei Dong Cc: Chen-Yu Tsai , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Tiffany Lin , Mauro Carvalho Chehab , Matthias Brugger , Hsin-Yi Wang , Daniel Vetter , Steve Cho , 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, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v4,1/3] media: dt-bindings: media: mediatek: vcodec: adapt to the 'clock-names' of different platforms Message-ID: <20221205175430.GA2136513-robh@kernel.org> References: <20221202034450.3808-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221202034450.3808-1-yunfei.dong@mediatek.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Fri, Dec 02, 2022 at 11:44:48AM +0800, Yunfei Dong wrote: > mt8195 and mt8192 have different clock numbers, separate 'clock-names' > according to compatible name. > > Signed-off-by: Yunfei Dong > --- > compared with v3: > - rewrite clock-names according to different platforms. > > Reference series: > [1]: v5 of this series is presend by Allen-KH Cheng. > message-id: 20221128143832.25584-4-allen-kh.cheng@mediatek.com > --- > .../media/mediatek,vcodec-subdev-decoder.yaml | 41 ++++++++++++++++--- > 1 file changed, 35 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml > index 7c5b4a91c59b..a08b2c814f40 100644 > --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml > +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml > @@ -110,15 +110,12 @@ patternProperties: > Refer to bindings/iommu/mediatek,iommu.yaml. > > clocks: > + minItems: 1 Why 1? Looks like it should be 4 or 5 clocks. > maxItems: 5 > > clock-names: > - items: > - - const: sel > - - const: soc-vdec > - - const: soc-lat > - - const: vdec > - - const: top > + minItems: 1 > + maxItems: 5 > > assigned-clocks: > maxItems: 1 > @@ -159,6 +156,38 @@ then: > required: > - interrupts > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - mediatek,mt8192-vcodec-dec > + then: > + properties: > + clock-names: > + items: > + - const: sel > + - const: soc-vdec > + - const: soc-lat > + - const: vdec > + - const: top > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - mediatek,mt8195-vcodec-dec > + then: > + properties: > + clock-names: > + items: > + - const: sel > + - const: vdec > + - const: lat > + - const: top > + > additionalProperties: false > > examples: > -- > 2.18.0 > >