From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 10C67E74AC3 for ; Tue, 3 Dec 2024 17:21:42 +0000 (UTC) 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-Owner; bh=7ZrraI2kA2TOw3GAEcozWYMZfRXVKIpZZc6IZ/Oyre8=; b=zqzx6++Y1rzJEuBcuv4WesuIZL W/qKScagWoY19EpR871nBHw/au2gGHvuUEWk7CMUdRcTFJlN4AH8hR8IIIt9Nvsf+0mwu/OaITiWx YUHFsk14PRI3roE9gR6+v8iX6nwPiPvPD2sjGdwAGcxnFOPZhRQsLrnngSrZEGLrEsusemextvvrD ew1F34dDz3ZB0sA4WcfaGu3JDioWbckLnHVJ741LIiZrWfHeJNfX7B7GUkhKj+BbSCZ/N3SoFzxoo VGeAkD41HKoKlzbJ/Is3zWvESTg0c1i84ihJ//a4ojd7T4jLOcXbmdIqZ8WCBtoLskL1g4dETDybf OgYtJGDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIWaa-0000000AEPt-0q3p; Tue, 03 Dec 2024 17:21:32 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIWZZ-0000000AEJ0-1peZ for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2024 17:20:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id ECEC45C698A; Tue, 3 Dec 2024 17:19:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A538C4CECF; Tue, 3 Dec 2024 17:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733246428; bh=eu8MFWETCzi5mUkFpsHp3K6rE1uqUbw4E2pfuGZED5M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OwVM1pPTEPLNeSSEZQiHBH6Z4pCfskBgJS15+lqTzDaERICXmEXFijOJ+39t1WkDh Mmlt3qH1R2/J7kbNEBBNa8OGc8uG848l+SDnviF7uZqXjdG+6gomChXIEF/PNj4fCq 5GCeweIH8jxGsQK2s4SgMyNMbL37kuMMLvFouyNks8GYnNWLHtFcvB3C2M1Utm+Pqo wGYr9QK1ZMAted2QhGKiI8EVFxEmwMJ32HyX2UToWc2UDLugOmTOsf6zIFiDXXjOLj mLANce+Qac3pq3ovswLVEsrczQCAZWTae2lEaiVvyOEdDjQTENw5PNhGigRUDjdGSs vfE8MJ/J/hVCg== Date: Tue, 3 Dec 2024 11:20:26 -0600 From: Rob Herring To: Chen-Yu Tsai Cc: Christophe Leroy , Krzysztof Kozlowski , Conor Dooley , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Li , stable@vger.kernel.org Subject: Re: [PATCH] dt-bindings: soc: fsl: cpm_qe: Limit matching to nodes with "fsl,qe" Message-ID: <20241203172026.GA1988559-robh@kernel.org> References: <20241202045757.39244-1-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241202045757.39244-1-wenst@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_092029_563912_99886119 X-CRM114-Status: GOOD ( 14.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Dec 02, 2024 at 12:57:55PM +0800, Chen-Yu Tsai wrote: > Otherwise the binding matches against random nodes with "simple-bus" > giving out all kinds of invalid warnings: > > $ make CHECK_DTBS=y mediatek/mt8188-evb.dtb > SYNC include/config/auto.conf.cmd > UPD include/config/kernel.release > SCHEMA Documentation/devicetree/bindings/processed-schema.json > DTC [C] arch/arm64/boot/dts/mediatek/mt8188-evb.dtb > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: compatible:0: 'fsl,qe' was expected > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: compatible: ['simple-bus'] is too short > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: interrupt-controller@c000000:compatible:0: 'fsl,qe-ic' was expected > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: interrupt-controller@c000000:reg: [[0, 201326592, 0, 262144], [0, 201588736, 0, 2097152]] is too long > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: interrupt-controller@c000000:#interrupt-cells:0:0: 1 was expected > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: interrupt-controller@c000000: '#redistributor-regions', 'ppi-partitions' do not match any of the regexes: 'pinctrl-[0-9]+' > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: 'reg' is a required property > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > arch/arm64/boot/dts/mediatek/mt8188-evb.dtb: soc: 'bus-frequency' is a required property > from schema $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe.yaml# > > Fixes: ecbfc6ff94a2 ("dt-bindings: soc: fsl: cpm_qe: convert to yaml format") > Cc: Frank Li > Cc: # v6.11+ > Signed-off-by: Chen-Yu Tsai > --- > .../devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml > index 89cdf5e1d0a8..9e07a2c4d05b 100644 > --- a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml > +++ b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe.yaml > @@ -21,6 +21,14 @@ description: | > The description below applies to the qe of MPC8360 and > more nodes and properties would be extended in the future. > > +select: > + properties: > + compatible: > + contains: > + const: fsl,qe > + required: > + - compatible Update your dtschema. The select is no longer necessary. dtbs_check will also run 5x faster. Rob