Message ID | 20221201121525.30777-1-yunfei.dong@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp232199wrr; Thu, 1 Dec 2022 04:30:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf48Kxi3gW42xeuxsTIid5upFQ7zZj0WRPubvb2BSaYhJUu3fMLcwylDSo49uE6r9SKvX0dQ X-Received: by 2002:a63:5d58:0:b0:476:ffc7:f7b with SMTP id o24-20020a635d58000000b00476ffc70f7bmr41201438pgm.271.1669897814486; Thu, 01 Dec 2022 04:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669897814; cv=none; d=google.com; s=arc-20160816; b=Yzbv9gCkyeGIPXYvI8i3YhZ5hlg0YrHALkgMoPoaP6u/oPgliLhasn4J6iHxcG1gAn q3m0kYKdgTnhamHir93X6fMv1mKpm4KtdLTq9oP1llQEW9ezo16QqFcK76gn5VV84NJE IYdn92PxzPfMD+9MFSlaam/1fvwtCoxkRppfgYx5zw1zHP3lPrqW/MnR8fU/gwvjQK6p 3TksLx56JsfhAH1IQVGNLWeSlUUVk3uMyD5hBofxApNpmn0yiqqG95PEGzd9H++VnkVe bS48tsWR+h0dqNn3tAuveyT0PzeBetk0qRUfxtAIJDCGouy90Dr7d+S5TS8EWZjLXQv/ eouQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zwCnPW0NbYvNEoaTQBbhYwyaePWVmhmcxuF1yC02UB0=; b=fLjOnAqjW9E1QGsU8DLr3mPAuFJReLo5vSwA0EDsv8muney/VXBCxnPtc5nzEnncCL xmpiipKvqufY2v95lQ6gCbT6Zbj1Wz5P2ZsPRpZq6bM0SGb5IKp5CdYp81GJfpIJ417m BguJRDtD4CW2zPyWBQf0hf8OGowKqFBQZz8+/Xy9cAba5Q5nZQX91JUSsTpRChGnecD1 EK4fxDCi3XZpILB3CV2s629XTdpNLyRotqGhBaXaqPO9nN/EykyIkzCgFbHE4rVrZ3Ye kKWoVXbARtXeTPzHqCjMcfK+KUFEWbS2lhdreNadONXScFZUSqm+3VNswzPf8ZUrN0Qo Ivow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IbIBAuYc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 140-20020a621692000000b0056ae8f6df38si4222119pfw.180.2022.12.01.04.30.00; Thu, 01 Dec 2022 04:30:14 -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=@mediatek.com header.s=dk header.b=IbIBAuYc; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbiLAMPn (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Thu, 1 Dec 2022 07:15:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbiLAMPk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Dec 2022 07:15:40 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB94A3234; Thu, 1 Dec 2022 04:15:33 -0800 (PST) X-UUID: 0561e8f6b4514d44a45d504d8f1b01a9-20221201 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=zwCnPW0NbYvNEoaTQBbhYwyaePWVmhmcxuF1yC02UB0=; b=IbIBAuYc9TMXt0jzHOuWkAtpaNd9kchUYcOAxNmspN7IYCN77khC0puJuuz6aI9JCoLFoHJ/9sJKQhmBWUAZetyGe2H/b8Tj+0bibO9a3vDHtgcaktImcfxgjyAs7+c1+mIiG7YoYT7V7LOguCivWAjQIJ7VVAoOFnE/bwhRCbc=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:339b82df-2751-4142-8483-ebb76f9a5dba,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:dcaaed0,CLOUDID:1785df1e-5e1d-4ab5-ab8e-3e04efc02b30,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 0561e8f6b4514d44a45d504d8f1b01a9-20221201 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from <yunfei.dong@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 811997823; Thu, 01 Dec 2022 20:15:28 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 1 Dec 2022 20:15:27 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 1 Dec 2022 20:15:26 +0800 From: Yunfei Dong <yunfei.dong@mediatek.com> To: Yunfei Dong <yunfei.dong@mediatek.com>, Rob Herring <robh@kernel.org>, Chen-Yu Tsai <wenst@chromium.org>, Hans Verkuil <hverkuil-cisco@xs4all.nl>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Benjamin Gaignard <benjamin.gaignard@collabora.com>, Tiffany Lin <tiffany.lin@mediatek.com> CC: Mauro Carvalho Chehab <mchehab@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, Hsin-Yi Wang <hsinyi@chromium.org>, Daniel Vetter <daniel@ffwll.ch>, Steve Cho <stevecho@chromium.org>, <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: [PATCH v3,1/3] media: dt-bindings: media: mediatek: vcodec: Fix clock num not correctly Date: Thu, 1 Dec 2022 20:15:22 +0800 Message-ID: <20221201121525.30777-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,UNPARSEABLE_RELAY 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751014770433151202?= X-GMAIL-MSGID: =?utf-8?q?1751014770433151202?= |
Series |
[v3,1/3] media: dt-bindings: media: mediatek: vcodec: Fix clock num not correctly
|
|
Commit Message
Yunfei Dong (董云飞)
Dec. 1, 2022, 12:15 p.m. UTC
From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> mt8195 and mt8192 have different clock numbers, can't write 'clocks' and 'clock-names' with const value. Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> --- Reference series: [1]: v5 of this series is presend by Allen-KH Cheng. message-id: 20221128143832.25584-4-allen-kh.cheng@mediatek.com --- .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
Comments
On Thu, Dec 01, 2022 at 08:15:22PM +0800, Yunfei Dong wrote: > From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> > > mt8195 and mt8192 have different clock numbers, can't write 'clocks' and > 'clock-names' with const value. > > Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> > --- > Reference series: > [1]: v5 of this series is presend by Allen-KH Cheng. > message-id: 20221128143832.25584-4-allen-kh.cheng@mediatek.com > --- > .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 9 +++------ > 1 file changed, 3 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..09781ef02193 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 > maxItems: 5 > > clock-names: > - items: > - - const: sel > - - const: soc-vdec > - - const: soc-lat > - - const: vdec > - - const: top > + minItems: 1 > + maxItems: 5 Names need to be defined. This is a step backwards. Rob > > assigned-clocks: > maxItems: 1 > -- > 2.18.0 > >
Il 02/12/22 00:57, Rob Herring ha scritto: > On Thu, Dec 01, 2022 at 08:15:22PM +0800, Yunfei Dong wrote: >> From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> >> >> mt8195 and mt8192 have different clock numbers, can't write 'clocks' and >> 'clock-names' with const value. >> >> Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> >> --- >> Reference series: >> [1]: v5 of this series is presend by Allen-KH Cheng. >> message-id: 20221128143832.25584-4-allen-kh.cheng@mediatek.com >> --- >> .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 9 +++------ >> 1 file changed, 3 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..09781ef02193 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 >> maxItems: 5 >> >> clock-names: >> - items: >> - - const: sel >> - - const: soc-vdec >> - - const: soc-lat >> - - const: vdec >> - - const: top >> + minItems: 1 >> + maxItems: 5 > > Names need to be defined. This is a step backwards. > I was thinking the same but wanted to wait for someone else's opinion before. Yunfei, this would be... - if: properties: compatible: .... mt8192 then: clock-names: .... whatever we have - if: properties... blah mt8195 then: clock-names: ..... new ones ...you should know already, but I'm just trying to speed up things here. Cheers, Angelo > Rob > >> >> assigned-clocks: >> maxItems: 1 >> -- >> 2.18.0 >> >>
Hi Angelo, Thanks for your suggestion. I already sent patch v4 before your suggestion. Looks the solution is the same. Could you please help to review patch v4 again when you are free? Thanks. Best Regards, Yunfei Dong On Fri, 2022-12-02 at 12:37 +0100, AngeloGioacchino Del Regno wrote: > Il 02/12/22 00:57, Rob Herring ha scritto: > > On Thu, Dec 01, 2022 at 08:15:22PM +0800, Yunfei Dong wrote: > > > From: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com> > > > > > > mt8195 and mt8192 have different clock numbers, can't write > > > 'clocks' and > > > 'clock-names' with const value. > > > > > > Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> > > > --- > > > Reference series: > > > [1]: v5 of this series is presend by Allen-KH Cheng. > > > message-id: > > > 20221128143832.25584-4-allen-kh.cheng@mediatek.com > > > --- > > > .../bindings/media/mediatek,vcodec-subdev-decoder.yaml | 9 > > > +++------ > > > 1 file changed, 3 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..09781ef02193 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 > > > maxItems: 5 > > > > > > clock-names: > > > - items: > > > - - const: sel > > > - - const: soc-vdec > > > - - const: soc-lat > > > - - const: vdec > > > - - const: top > > > + minItems: 1 > > > + maxItems: 5 > > > > Names need to be defined. This is a step backwards. > > > > I was thinking the same but wanted to wait for someone else's opinion > before. > > Yunfei, this would be... > > - if: > properties: > compatible: > .... mt8192 > then: > clock-names: > .... whatever we have > > - if: > properties... blah mt8195 > then: > clock-names: > ..... new ones > > ...you should know already, but I'm just trying to speed up things > here. > > Cheers, > Angelo > > > Rob > > > > > > > > assigned-clocks: > > > maxItems: 1 > > > -- > > > 2.18.0 > > > > > > > >
diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml index 7c5b4a91c59b..09781ef02193 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 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