Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0F81C433EF for ; Thu, 13 Jan 2022 06:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbiAMGG3 (ORCPT ); Thu, 13 Jan 2022 01:06:29 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46144 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229735AbiAMGG1 (ORCPT ); Thu, 13 Jan 2022 01:06:27 -0500 X-UUID: 5f6d5294ddcc45a5baa37963d31ac327-20220113 X-UUID: 5f6d5294ddcc45a5baa37963d31ac327-20220113 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1853387206; Thu, 13 Jan 2022 14:06:23 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 13 Jan 2022 14:06:21 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 13 Jan 2022 14:06:20 +0800 Message-ID: <1eb2bc6432aa5a1c0371542457a86764df77153b.camel@mediatek.com> Subject: Re: [PATCH v2 2/6] dt-bindings: memory: mtk-smi: Fix the larb clock/clock-names dtbs warning From: Yong Wu To: Krzysztof Kozlowski , Rob Herring CC: Matthias Brugger , Krzysztof Kozlowski , Joerg Roedel , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , , , AngeloGioacchino Del Regno Date: Thu, 13 Jan 2022 14:06:20 +0800 In-Reply-To: References: <20220111063904.7583-1-yong.wu@mediatek.com> <20220111063904.7583-3-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-01-12 at 11:18 +0100, Krzysztof Kozlowski wrote: > On 11/01/2022 07:39, Yong Wu wrote: > > Mute the warning from "make dtbs_check": > > > > larb@14017000: clock-names: ['apb', 'smi'] is too short > > arch/arm64/boot/dts/mediatek/mt8183-evb.dt.yaml > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi- > > burnet.dt.yaml > > ... > > > > larb@16010000: clock-names: ['apb', 'smi'] is too short > > arch/arm64/boot/dts/mediatek/mt8183-evb.dt.yaml > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi- > > burnet.dt.yaml > > > > larb@17010000: clock-names: ['apb', 'smi'] is too short > > arch/arm64/boot/dts/mediatek/mt8183-evb.dt.yaml > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi- > > burnet.dt.yaml > > > > If a platform's larb supports gals, there will be some larbs have > > one > > more "gals" clock while the others still only need "apb"/"smi" > > clocks, > > then the minItems for clock and clock-names are 2. > > > > Fixes: 27bb0e42855a ("dt-bindings: memory: mediatek: Convert SMI to > > DT schema") > > Signed-off-by: Yong Wu > > --- > > .../bindings/memory-controllers/mediatek,smi-larb.yaml | 6 > > +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/memory- > > controllers/mediatek,smi-larb.yaml > > b/Documentation/devicetree/bindings/memory- > > controllers/mediatek,smi-larb.yaml > > index 80907e357892..884c0c74e5e4 100644 > > --- a/Documentation/devicetree/bindings/memory- > > controllers/mediatek,smi-larb.yaml > > +++ b/Documentation/devicetree/bindings/memory- > > controllers/mediatek,smi-larb.yaml > > @@ -80,10 +80,10 @@ allOf: > > then: > > properties: > > clock: > > Separate patch: > This should be clocks. The same in second if. Now it is simply not > working... > > > - items: > > Putting min/maxItems under items is wrong. The second if also needs > the > fixing. Please make it a separate patch before this one. Oh. I will use a new patch for renaming "clock" to "clocks" and removing the "items". Thanks. > > The schema was clearly not tested before... > > > > - minItems: 3 > > - maxItems: 3 > > + minItems: 2 > > + maxItems: 3 > > clock-names: > > + minItems: 2 > > items: > > - const: apb > > - const: smi > > > > > Best regards, > Krzysztof