Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2642424rdh; Wed, 27 Sep 2023 08:30:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi/lwj15cUHe5tm4bweAKXMYWSP2ksjTKmW7l/FmJi/K6h44viBXqAmYACqk8MEjgfrS/Z X-Received: by 2002:a17:903:11ce:b0:1c7:2697:ec10 with SMTP id q14-20020a17090311ce00b001c72697ec10mr2537394plh.56.1695828600178; Wed, 27 Sep 2023 08:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695828600; cv=none; d=google.com; s=arc-20160816; b=BV/cLFdN2hqTlsYFvlLRq/eqEOllwr7ffMPmMBsxp7RIKmx0LWPdEhw+sNXhabbn6O +jMKy6CN7BazJCrm2yeP++DNNuq7mnUrweeviygmDdnrYmT0Vo6LtUaw3kjcMTsH3Kq0 jk82lYkDanMIlIZyQlEawXykeCpSXzjTEiCo/fWZmv1Bq8gKjB6jqbvdIBQ3AQVCuNRg AAm+DZC23SPpAm5F6vbfhT6iP/Ea6Q/c46i3h3a3dnvPdWOi4b11OtbiqsSsV4ifPa6o 2cuhTUIu6Ai4NmHc1m642EQ3MPvZOt2lz2PqrX0ckc7Qfg4XUFlL6pf6MLW4ZBUbM21/ nlUg== 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=yU9BHfxRYrqQvbuWYIp/woCfukP5MTyopEBqSGVM9QU=; fh=CvNPn6LcoHpzWkHfbv4Eq/6fzMMWqc1sLVwVc3DFMiM=; b=j0m2SaZKWHmd1sontM4KstOm1f3JxMnU1dY7WW/ME+T9v96reMV4Rqneijpjnpud1V 8y4N1gg4ctz5b90GfL69MUOXK2wBQG9MJekDXN1qkNkNynpa9oDrF4EI7x2JDHJqlwGw bM2gEI4ZYNfnm2XlThjeSVl9G2Z37hlm0NzQGpS+j7T5HAEGKvL2wkHob+eF5VvULMzs QXCFKZ1eO2NeUExjt5XRsvo98q8ogYpGGGLKfPKyQNrLHr3b4bRcXgbnCB2Au9A3VIp6 B6bNEjTlNrn69ZbcsV3LIPUYoIlndt0H0jcR5dcXNDtAo8ECbcCgJ4VkEPFGvNSrbnPR 2mvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YRf964xR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b13-20020a170903228d00b001bdd35033ebsi9665454plh.361.2023.09.27.08.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 08:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YRf964xR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id B3BE580697F0; Wed, 27 Sep 2023 08:13:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232370AbjI0PNg (ORCPT + 99 others); Wed, 27 Sep 2023 11:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232334AbjI0PNf (ORCPT ); Wed, 27 Sep 2023 11:13:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D665F9; Wed, 27 Sep 2023 08:13:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E879C433C7; Wed, 27 Sep 2023 15:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695827614; bh=M59HXSnofJHl+d0SzaDEQ+iFiL1u7mpzFZkkV512/mg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YRf964xRaUPDySff6eLJgM9Lx2KtcqOwEvT3EgL4trCBHw0lapy0dFi1XIenuyfi+ 6Tvm4uao7BYtDJ4T2HmMhpAEg4vmvzW3gkDRuzH4DxFxrGZKT306CiwuiAwskU5lL9 mzT01FVQyLty2Hp9nZff35g0YWa7YY60ZtT9X0hCNw4qbg5MYHvXVvRss5ZXvHnz+O DzP9h4dPOyFsWg7/0HZSDRaWaNDIkwYdG1STMhDAihjEAcFOX7HLBZsyM0EcJO0ad4 SQzQp1wtQZH1odv/cu/uIr2mMnNGPg/GRzHanZ9PKF1FvhUIc7Lu0VfrCHy0tNRsP2 UUOtHQkgIW7yQ== Date: Wed, 27 Sep 2023 16:13:30 +0100 From: Conor Dooley To: Rob Herring Cc: Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: power/supply: sbs-manager: Add missing unevaluatedProperties on child node schemas Message-ID: <20230927-swimming-gender-3579e2771ffa@spud> References: <20230926164446.101327-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vLhAzWIRrewJs9du" Content-Disposition: inline In-Reply-To: <20230926164446.101327-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 08:13:46 -0700 (PDT) --vLhAzWIRrewJs9du Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 26, 2023 at 11:44:42AM -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. > --- > .../devicetree/bindings/power/supply/sbs,sbs-manager.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/sbs,sbs-manag= er.yaml b/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.ya= ml > index f255f3858d08..2e21846463ba 100644 > --- a/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.yaml > +++ b/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.yaml > @@ -47,6 +47,12 @@ patternProperties: > "^i2c@[1-4]$": > type: object > $ref: /schemas/i2c/i2c-controller.yaml# > + unevaluatedProperties: false > + > + properties: > + reg: > + minimum: 1 > + maximum: 4 > =20 > examples: > - | > --=20 > 2.40.1 >=20 --vLhAzWIRrewJs9du Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRRGmgAKCRB4tDGHoIJi 0gypAP0dN5ITkZ+G3bk0n/yF3+Z1vTnBZrJIUo0Jps5Tg7OMigD/adydJeyXH7Cf C7uGu5/5p/xMHpKf7cDEplM8NlAJuQI= =e37f -----END PGP SIGNATURE----- --vLhAzWIRrewJs9du--