Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1866979rdh; Tue, 26 Sep 2023 06:06:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcQFFSEBdC1rpdg3iJowWlLOx896dw9aiIwfV5Bk0Qmbg1LfsiDdRUpW08CVQzgqIgN3Fx X-Received: by 2002:a17:90a:c395:b0:277:6a7b:b904 with SMTP id h21-20020a17090ac39500b002776a7bb904mr3831928pjt.15.1695733605107; Tue, 26 Sep 2023 06:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695733605; cv=none; d=google.com; s=arc-20160816; b=MPHGaAW+Ige/Wxuy3/qqe1om1xx4Amgmnl0uyM72ZEqRoE42/ayF2Nnp9DgqLQKfKf 1mBmFTU1JXaBpbgVp/JBsYkI6XF3vF1q3/CeZFL9yk6w1FDX/aaQJMZhcIH939zTcFXG yf8N4cM2dL3EKaSUKTE2sbGlDef2a5oW0inoCT4cttDTTpyN2aniWLMSLA5pleWeaEvn p1WjUEj3+/q9CGR9wYHhf5XfO/3IYuujl/LwdtOXH0DpsWWlYLDIL1ySMqRSJEG2/8SB yyegsY5rWLZvJ507wzmx1BbaCODdReXFB/i3WkvPNz1+P5fdgl7crtuWq0W/lMOLvU3f oJ9Q== 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:dkim-signature; bh=OlOSIUjiZjRPhLBiIMMy83/ok2+UKDP+60wHKabouM0=; fh=VlmLsJZwwNyu8uqfdPmYAyBWEhJsR7c9HQm71EmwfGs=; b=kPpQEYHYoUdOZjZm3NzKJCsMMQTWPA2InNVQhnznCcyU+uf70sIL/kZPSdBvqHMMdO pekCR2iGyt+SCQhGKTLSXJFE5CLJIXpPLky2hX0iG/6vGw5+c89LzOnxgZ5mdWsmOxlf u9c0ApMvNYIJAAH+WuYcdewGGvqth5sMtDCAZEvgkeX2kq3uoiP9Ms1+UCZ6S3dj3MHp hCKqEh6fiWJpRAlOq2xxsfc5roNLkg4atCD++AIqTGpM6lsn/o/8aToLCkZ9HCdgIoYl PWuPTUSilt5Wd3EkLLLKh6oWzEQPR+e6td/J2wCoWcr0DbMv0RDD8XUEOrFiTXKl9RD4 3XUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rKs2YG8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s9-20020a17090aad8900b0026b698fdda6si763193pjq.98.2023.09.26.06.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:06:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rKs2YG8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 02080830D12E; Tue, 26 Sep 2023 06:02:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234036AbjIZNCa (ORCPT + 99 others); Tue, 26 Sep 2023 09:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234095AbjIZNC3 (ORCPT ); Tue, 26 Sep 2023 09:02:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E910FB for ; Tue, 26 Sep 2023 06:02:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A13F2C433C8; Tue, 26 Sep 2023 13:02:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695733340; bh=1zCxJjJthRbNwkGYNCIe9bhUNO7p6H4Ty2SL0Yudtrg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rKs2YG8UwgoN2/7wtROgx5rN/qrr1Yvj6qV0sQHbOCJaF6cxAb0V+eXCNZ/r19nZb ugj9AjcgyqoZRd845JdxLDEzDN1uaUmYbmtVrgHUHnB0MG87JiY4say4gboSeopFmU vW4P9vwJcxnd5wZM4axOMtaxe+8PQUYSSYOd9md8xdDsfb9D+RH0GBloDbfEC3ua5a tI9uX9PvqH7CP1P71b6xi8mGAAbU4wplEDgG5VBBHo51KnoYs8Tc0xC0wePb30MwzB KBwmC609F24rO+u6YcueDUWrhNtQKSy4uJDxKQgbS6vG/Dnx/PWk+VuFj9+/8nmT2O aYXzNHQ6jTj0w== Date: Tue, 26 Sep 2023 14:02:14 +0100 From: Conor Dooley To: Rob Herring Cc: Lee Jones , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Heiko Stuebner , Patrick Rudolph , Flora Fu , Alexandre Mergnat , Chris Zhong , Zhang Qing , - Keerthy , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] dt-bindings: mfd: Add missing unevaluatedProperties on child node schemas Message-ID: <20230926-rerun-hardcover-b2a64ccc6411@spud> References: <20230925212729.1976117-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="of7mDBoDabXptSSZ" Content-Disposition: inline In-Reply-To: <20230925212729.1976117-1-robh@kernel.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 26 Sep 2023 06:02:34 -0700 (PDT) --of7mDBoDabXptSSZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 25, 2023 at 04:27:24PM -0500, Rob Herring wrote: > Just as unevaluatedProperties or additionalProperties are required at > the top level of schemas, they should (and will) also be required for > child node schemas. That ensures only documented properties are > present for any node. >=20 > Add unevaluatedProperties as needed, and then add any missing properties > flagged by the addition. >=20 > Signed-off-by: Rob Herring Acked-by: Conor Dooley Thanks, Conor. > --- > Documentation/devicetree/bindings/mfd/maxim,max5970.yaml | 5 +++++ > Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml | 2 ++ > Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml | 1 + > Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml | 1 + > Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml | 3 ++- > Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml | 1 + > Documentation/devicetree/bindings/mfd/ti,lp87524-q1.yaml | 1 + > Documentation/devicetree/bindings/mfd/ti,lp87561-q1.yaml | 1 + > Documentation/devicetree/bindings/mfd/ti,lp87565-q1.yaml | 1 + > 9 files changed, 15 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml b/D= ocumentation/devicetree/bindings/mfd/maxim,max5970.yaml > index da67742c5aa9..0da5cae3852e 100644 > --- a/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml > +++ b/Documentation/devicetree/bindings/mfd/maxim,max5970.yaml > @@ -45,8 +45,13 @@ properties: > patternProperties: > "^led@[0-3]$": > $ref: /schemas/leds/common.yaml# > + unevaluatedProperties: false > type: object > =20 > + properties: > + reg: > + maximum: 3 > + > additionalProperties: false > =20 > vss1-supply: > diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml b= /Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml > index fc2a53148e1c..37423c2e0fdf 100644 > --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml > +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml > @@ -40,6 +40,7 @@ properties: > regulators: > type: object > $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml > + unevaluatedProperties: false > description: > List of MT6357 BUCKs and LDOs regulators. > =20 > @@ -59,6 +60,7 @@ properties: > keys: > type: object > $ref: /schemas/input/mediatek,pmic-keys.yaml > + unevaluatedProperties: false > description: > MT6357 power and home keys. > =20 > diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml b/= Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml > index 4992f71b6fc3..af6cd1969c22 100644 > --- a/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml > +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml > @@ -80,6 +80,7 @@ properties: > "^(DCDC_REG[1-4]|LDO_REG[1-3])$": > type: object > $ref: ../regulator/regulator.yaml# > + unevaluatedProperties: false > unevaluatedProperties: false > =20 > allOf: > diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml b/= Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml > index f5908fa01a61..8a16d651c2a3 100644 > --- a/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml > +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml > @@ -107,6 +107,7 @@ properties: > "^(DCDC_REG[1-4]|LDO_REG[1-8]|SWITCH_REG[1-2])$": > type: object > $ref: ../regulator/regulator.yaml# > + unevaluatedProperties: false > unevaluatedProperties: false > =20 > required: > diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/= Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml > index 7fb849ac74a7..e922e0176ee7 100644 > --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml > +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml > @@ -86,7 +86,8 @@ properties: > patternProperties: > "^(LDO_REG[1-9]|DCDC_REG[1-5]|SWITCH_REG[1-2])$": > type: object > - $ref: ../regulator/regulator.yaml# > + $ref: /schemas/regulator/regulator.yaml# > + unevaluatedProperties: false > unevaluatedProperties: false > =20 > allOf: > diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml b/= Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml > index b57c4b005cf4..ee5bca6e75df 100644 > --- a/Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml > +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml > @@ -99,6 +99,7 @@ properties: > "^(DCDC_REG[1-4]|DCDC_BOOST|LDO_REG[1-9]|SWITCH_REG|HDMI_SWITCH|OT= G_SWITCH)$": > type: object > $ref: ../regulator/regulator.yaml# > + unevaluatedProperties: false > unevaluatedProperties: false > =20 > required: > diff --git a/Documentation/devicetree/bindings/mfd/ti,lp87524-q1.yaml b/D= ocumentation/devicetree/bindings/mfd/ti,lp87524-q1.yaml > index f6cac4b1079c..ae149eb8593d 100644 > --- a/Documentation/devicetree/bindings/mfd/ti,lp87524-q1.yaml > +++ b/Documentation/devicetree/bindings/mfd/ti,lp87524-q1.yaml > @@ -37,6 +37,7 @@ properties: > "^buck[0123]$": > type: object > $ref: /schemas/regulator/regulator.yaml# > + unevaluatedProperties: false > =20 > required: > - buck0 > diff --git a/Documentation/devicetree/bindings/mfd/ti,lp87561-q1.yaml b/D= ocumentation/devicetree/bindings/mfd/ti,lp87561-q1.yaml > index dc5a29b5ef7d..5167d6eb904a 100644 > --- a/Documentation/devicetree/bindings/mfd/ti,lp87561-q1.yaml > +++ b/Documentation/devicetree/bindings/mfd/ti,lp87561-q1.yaml > @@ -41,6 +41,7 @@ properties: > buck3210: > type: object > $ref: /schemas/regulator/regulator.yaml# > + unevaluatedProperties: false > =20 > required: > - buck3210 > diff --git a/Documentation/devicetree/bindings/mfd/ti,lp87565-q1.yaml b/D= ocumentation/devicetree/bindings/mfd/ti,lp87565-q1.yaml > index 012d25111054..eca430edf608 100644 > --- a/Documentation/devicetree/bindings/mfd/ti,lp87565-q1.yaml > +++ b/Documentation/devicetree/bindings/mfd/ti,lp87565-q1.yaml > @@ -47,6 +47,7 @@ properties: > "^buck(10|23)$": > type: object > $ref: /schemas/regulator/regulator.yaml# > + unevaluatedProperties: false > =20 > required: > - buck10 > --=20 > 2.40.1 >=20 --of7mDBoDabXptSSZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRLWVgAKCRB4tDGHoIJi 0lMeAP9wEFGo1fp9dvminX1cSTyNxwEJiVOtmrhGBEMx/7QBnQEA14ReaHI5ItdL tQ3gvfsJubmpf8sr6r8UU5g8IpyO9QI= =pqXj -----END PGP SIGNATURE----- --of7mDBoDabXptSSZ--