Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2019316rdh; Tue, 26 Sep 2023 09:52:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5UEOybrk0PlAD/WqMVWatgtQyj7OvZkYqoYNzPDAc0dXWjsCq6TqwGiV4THXByz6ZP303 X-Received: by 2002:a05:6808:f8c:b0:3ae:16aa:8b9b with SMTP id o12-20020a0568080f8c00b003ae16aa8b9bmr11942435oiw.33.1695747146273; Tue, 26 Sep 2023 09:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695747146; cv=none; d=google.com; s=arc-20160816; b=KQ2DkL+EsaodBUHNLZXFhQN8RH8Fe80zEY84K92MGxm1jJxs5RKvl3okFGKnGptOxm 2/p9CEt8rHNYbnNhWqk6DSpKL9pVgVOqG8Mx2ZKtdRaOEOV5/yXLHPs8S+1FCcxqEeuT NVwjQTHsVo7H7AiSpN4HLGw1X85p77WUhn/tV2q917BPZg2O5n7aZoanOrCkBmywcwfJ ZAxscJi9U52C6LIT0SBjMt5vVECPnUnMajvSVbTNw9IqEMJQrBdEUhQHBhRum2vdyEif goKWi9X/ubJpW/aNZdIXI26fkUoCEeLdOJbuFeTOv61P7+PhlhIJnt0MyUkMK2gGnA9H 5dFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jzmXVnKWM3eIc4WePp9x6pqDKrD++r7RvoCsO8kkNl8=; fh=+Y10D1TxCViYYKeDcf/mAcVRP3iG/jUwFjeRzcR4diY=; b=ArrPZ8BgLsdCGabpaTRr2tHIxqcTeyigWuAYKElRADNAnMCeiIOIS7E7/5ZnQEewm3 ArSFqHK0AWHUY3S/wQwzt+Se7rdIDrdvNklkATuBU0lLfMONg8/9PUub5JJb/+cwqgs8 nQAO618k74jdn8V3ZZtRf5lLgVg4T2wHfa8IJchZvsxCSvK4mPSnUIekolu8imF8YJcX zroTpkfZBUE3GXe30DOBuepudK2kSlgmHNBw36VGgXj71HFdpSIb7FLdFqOVRljoMfvW L6kxL4XjLtCzrnQDP21lhpHCX5bq1Mc5McG6IHjDZVJggppbSIQDHGQ/tlIA2QaVGxDo 89+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vAXayQmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x23-20020a631717000000b005440b9f013csi13194686pgl.899.2023.09.26.09.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vAXayQmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 8C930840FE2C; Tue, 26 Sep 2023 09:44:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235352AbjIZQpB (ORCPT + 99 others); Tue, 26 Sep 2023 12:45:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbjIZQo7 (ORCPT ); Tue, 26 Sep 2023 12:44:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 478CA10E; Tue, 26 Sep 2023 09:44:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0549C433C7; Tue, 26 Sep 2023 16:44:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695746692; bh=wzH7s8yJ+PPGQfNK0z9FUL496ECuBns4yWKve8giPsw=; h=From:To:Cc:Subject:Date:From; b=vAXayQmr1uRxFuP7LC5taokFTQwH+M5Au2lRNnRrNiHnHNtYFO0FwUZDENedPI/hy dZg1vLUenEXqILI46nHfgyULQOQHeqqCujwQYD8ihL1cAe20sVjKOyRSzLMcLDi2aG JiXuejuxR4LESVEr/TcH2sChSVWrLc/amPC3Sf1IRDt/KnJivC2ZDUt7MGltJRWDEg JV9yWuHdPwdJQRu9Zjgd6Oa3TT4pMu5AVc8FEJCKevmL6wYbY7KCCTQNwkB32TRAPS O0HO+2JD21Ctq+0IKx8ieUF8AbMIu7pAKKciGs+JMDfOkc915K26hQdHnDCguIK/2j GmkL9l6sKPUMA== Received: (nullmailer pid 101563 invoked by uid 1000); Tue, 26 Sep 2023 16:44:50 -0000 From: Rob Herring To: Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: power/supply: sbs-manager: Add missing unevaluatedProperties on child node schemas Date: Tue, 26 Sep 2023 11:44:42 -0500 Message-Id: <20230926164446.101327-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:44:59 -0700 (PDT) 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. Add unevaluatedProperties as needed, and then add any missing properties flagged by the addition. Signed-off-by: Rob Herring --- .../devicetree/bindings/power/supply/sbs,sbs-manager.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.yaml b/Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.yaml 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 examples: - | -- 2.40.1