Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp1997340lfo; Sat, 28 May 2022 13:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2Kxl+Lt5Q7rsqgPf2iXZiTEw+5FWSjcSunbfocGvmYraZ59dzPdvduNrl5g5Xw695J10T X-Received: by 2002:a17:902:a383:b0:161:8397:b493 with SMTP id x3-20020a170902a38300b001618397b493mr49920833pla.127.1653768675023; Sat, 28 May 2022 13:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653768675; cv=none; d=google.com; s=arc-20160816; b=pT1YWwqX/uKRvNhHzQDMw1TgkID9JiFUdb7WIUz0QPrTkBY4Nos3TCNPeSX0otkv2r YZWdnsZox5tq5Y+gYN9v6hWqFaDd9tm4lRAJyC0W1ax7RklaME/n7ncyaxILXpX/EVpk ugJj3ta/wV4e4xQVu1xm/+OJSHRx69ECvuafCqTbPzyhr+GlWlr47nTrcxd2Y5WqJngr mtqD/z9aBWsXisTspShZXnaqqA32nBP8FpCDTYtSLYK3Q7mxOZZC+iHt7Fd3AvpaSDrz dMQhhLIsFOp4bZ8FUqpXbnGmFOI/jjSNIy5E/YaVCbPWHTonQQ7DqWKZ57IasjSGETDT /AXQ== 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=MGzV+2UrSda+wbUZNr2dUTxOTsfuse/xQnpNgAeKMgA=; b=QIf99TOfGrsU4akFLisXBG/EW00sxQRKLhrykB31Z8pqATo01Kxf/wyPaTz2N9PRrK tPElSCIycxzuz4bp0Am+SS68pi4HZeC6Xi217g7uiLsrrfQxDBSj1m0s3Xka98F+b7sw vJ9HPDLqu1x4TffEOipPKqMECAlF/t2oUchyJdYB9l7xWzrTB2Ty7MHBnta2pryhe+Ov YTSL/fypauGqS35eKeD5+xRfEbemX0d9AMztr8cWz++yRc1yW7olGpjI13wNKo1ICKaS XhKCsgTigmlhbIEJKKi1TZcTiLSniknQ2cXJeMzbr51ViRii2gxQA0A64FGOpqiODcTh lSbw== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e2-20020a17090301c200b0016168ede86esi11712737plh.615.2022.05.28.13.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 11934131281; Sat, 28 May 2022 12:24:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350423AbiE0J5Z (ORCPT + 99 others); Fri, 27 May 2022 05:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350708AbiE0J5X (ORCPT ); Fri, 27 May 2022 05:57:23 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75D0C338B0 for ; Fri, 27 May 2022 02:57:22 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuWiX-00035H-D2; Fri, 27 May 2022 11:57:13 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nuWiX-004qKc-Oe; Fri, 27 May 2022 11:57:12 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nuWiV-00CRDZ-B9; Fri, 27 May 2022 11:57:11 +0200 Date: Fri, 27 May 2022 11:57:11 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Rob Herring Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: mtd: mxc-nand: Drop undocumented properties from example Message-ID: <20220527095711.j42sxprwddrieczz@pengutronix.de> References: <20220525205947.2487165-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="omrohr6kiqycho6o" Content-Disposition: inline In-Reply-To: <20220525205947.2487165-1-robh@kernel.org> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 --omrohr6kiqycho6o Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2022 at 03:59:46PM -0500, Rob Herring wrote: > With unevaluatedProperties issues fixed, 'nand-bus-width' and > 'nand-ecc-mode' are flagged as undocumented. Removing them from the examp= le > is the easiest solution to silence the warnings. It's not clear to me, what has to be done to see this warning. Can you tell me how to reproduce? My current WIP patch is: diff --git a/Documentation/devicetree/bindings/mtd/mxc-nand.yaml b/Document= ation/devicetree/bindings/mtd/mxc-nand.yaml index 73b86f2226c7..6e3e346e4448 100644 --- a/Documentation/devicetree/bindings/mtd/mxc-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/mxc-nand.yaml @@ -14,7 +14,18 @@ allOf: =20 properties: compatible: - const: fsl,imx27-nand + oneOf: + - const: fsl,imx21-nand + - const: fsl,imx25-nand + - const: fsl,imx27-nand + - items: + - const: fsl,imx31-nand + - const: fsl,imx27-nand + - items: + - const: fsl,imx35-nand + - const: fsl,imx27-nand + - const: fsl,imx51-nand + - const: fsl,imx53-nand =20 reg: maxItems: 1 which I think is right, but obviously doesn't fix the problem you pointed out :-) > Signed-off-by: Rob Herring > --- > These properties may be deprecated, but they are still widely used in > bindings. They either need to be documented (and marked deprecated) or > removed from current users (i.e. dts files). Or documented and not marked deprecated? Best regards Uwe > diff --git a/Documentation/devicetree/bindings/mtd/mxc-nand.yaml b/Docume= ntation/devicetree/bindings/mtd/mxc-nand.yaml > index 73b86f2226c7..66da1b476ab7 100644 > --- a/Documentation/devicetree/bindings/mtd/mxc-nand.yaml > +++ b/Documentation/devicetree/bindings/mtd/mxc-nand.yaml > @@ -37,6 +37,4 @@ examples: > compatible =3D "fsl,imx27-nand"; > reg =3D <0xd8000000 0x1000>; > interrupts =3D <29>; > - nand-bus-width =3D <8>; > - nand-ecc-mode =3D "hw"; > }; --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --omrohr6kiqycho6o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmKQoHQACgkQwfwUeK3K 7AkfaAf/d1/EwccFh9yzkjPgHa2JzORRKDOHp9H8fuN2pO27GoFz8n3VowuV44pV puzHKJyJxB9ZSPHLZpF7x306KGtBflg+Ttr7pgeRqrbE0LjwkCR5k+XzsrnDtboB R8FxWnbaVYZToIkrNNWkTw1bvgjJ3uwwE3YDFEOXEZQZniZDh2KYDNJNNBs0fwrq ZR751ZEXpTadOVlaKnjsUqAtiB2Ln0R4SnzBBOm7QkablUP6NpcumYWcOpahKQH2 Zox77WJaKqQSo226qvYEIxETljtPiqTA+KT83jxslUFnMAtHsEycbN7ZsZfuFdJn VsMPz94QDd/Hy7UQxnV/y5xOzH1Aow== =ndui -----END PGP SIGNATURE----- --omrohr6kiqycho6o--