From patchwork Mon Sep 25 21:26:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 144592 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1494513vqu; Mon, 25 Sep 2023 14:28:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE91Gj2FxkwVuWrItGd5xQ9KMysuUYEFIYBLLruDrGzFVQYyX4YsRmZ7oVe3UnvUW7KW2wB X-Received: by 2002:a17:903:2442:b0:1c4:375c:110a with SMTP id l2-20020a170903244200b001c4375c110amr10569199pls.19.1695677337438; Mon, 25 Sep 2023 14:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695677337; cv=none; d=google.com; s=arc-20160816; b=TQQexob/MAmxy3OXAdnuQb5cs6djZPfnEZf/Gq3RcUxsPPk1QoXvhKQIeuDHZxXqvP SWiMOWpN0AuSGH9/y6SWIVjIzj6BdXYOpcnc16m6QyWoBkZbUJHqKk0Neu/fN8IKywf5 0jbxv0+k1oz44YVNRfSKfMg7q/z1XyzsnbiciDaYNriqPIVfBHzSCHYN7E0iML5ZwQZA rTKZ4uKe6ZFAcBcmKwuBS99h0oWeROjlyRUTlwbzfq5yISw70oPikiA/Et3iIf5VKV1V Z7mGjMDv6nrIJU6tugLw41icrRLyQV7WYaKw4js2IA+tt89ItSVxnfy/NNL4Shki4RNA extw== 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=9RzaNngvyR3MrH72fcU2FqP0RG4H74d3YQyZeWajdQs=; fh=XZf2TTl/ar66GDDcx7JEUchQkR3mLcU+rNGlmZaEVJs=; b=Ddeh4SgxYv0QizOBiqkRjn23hQTWPzz7G6F34OuMk1UYbXnMEju/aZjMPydEM+1q3Q hzTg9SVV352A7FfqkDVQY9bij0hbtOjvi+SibI2RvVIVY+izIbrr0E6W0OHx3KJnhtc2 vfLVJnYR2vsYksrR3sab8PymH51dl7d1Su6K8Eeeg43xqEvmauGUM161MyYHWkiLRNWl pbRSW4lWoLOP2hDdjGxQHV6zPjM3llKmpL6m6Zaw/lae6qHD/o0r63nXrkx1OhLy00FN aorNY9sYn/ngSRkUjc42C8B3Lj6v8nVR1KgMgIZn72hD8jWm22R6UmSh+SOaAsAM6e0y 9fvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X+B17qpB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y15-20020a17090264cf00b001c5f8995611si6294326pli.483.2023.09.25.14.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 14:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X+B17qpB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 861B8822A48D; Mon, 25 Sep 2023 14:27:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233372AbjIYV1R (ORCPT + 28 others); Mon, 25 Sep 2023 17:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233406AbjIYV1Q (ORCPT ); Mon, 25 Sep 2023 17:27:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC564120 for ; Mon, 25 Sep 2023 14:27:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE6C8C433C7; Mon, 25 Sep 2023 21:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695677229; bh=DZR9A6i6MwZpSmPkTpv4+vnnZyXwO69lbomCiTiEecY=; h=From:To:Cc:Subject:Date:From; b=X+B17qpBompApV7KxIhHfy+meUzhWUyN3D/zDSR9w/zRL95v+FAIszzOjjdczfqab VStE7VYs0w06r/+FMBKwxyeHHf5GQ8eQNbnxhC8IF+Kxr0iQPowksivDGSXZESBgnq N3JyMP10zNEQfxSm7RkXiPlZior10Snuuhe/nBUcGwUJMRYDxVOmfK7KIogPnEBZTp 5dW/RWXEEmfT/JmJ5sCLLkOySsrJ1wf2T5a66F47RUSfCTFs+a6poKz4ObwPZTnL5Y bs5LxS4RQaFWZMBCHcAalufd7E22drMc9ay43ZIqOnrK2r9y2Nexvmix18jcm7sj5O 3BJzFL2cCgyKw== Received: (nullmailer pid 1975725 invoked by uid 1000); Mon, 25 Sep 2023 21:27:06 -0000 From: Rob Herring To: Laurent Pinchart , Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Iskren Chernev , Christoph Fritz Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] regulator: dt-bindings: Add missing unevaluatedProperties on child node schemas Date: Mon, 25 Sep 2023 16:26:53 -0500 Message-Id: <20230925212658.1975419-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 14:27:35 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778046559703125125 X-GMAIL-MSGID: 1778046559703125125 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. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/regulator/maxim,max20086.yaml | 1 + Documentation/devicetree/bindings/regulator/maxim,max77826.yaml | 2 ++ Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/maxim,max20086.yaml b/Documentation/devicetree/bindings/regulator/maxim,max20086.yaml index 05f72391185e..7394c0a339c5 100644 --- a/Documentation/devicetree/bindings/regulator/maxim,max20086.yaml +++ b/Documentation/devicetree/bindings/regulator/maxim,max20086.yaml @@ -43,6 +43,7 @@ properties: "^OUT[1-4]$": type: object $ref: regulator.yaml# + unevaluatedProperties: false additionalProperties: false diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77826.yaml b/Documentation/devicetree/bindings/regulator/maxim,max77826.yaml index 78c0b63243f7..6d6bbfbd26d4 100644 --- a/Documentation/devicetree/bindings/regulator/maxim,max77826.yaml +++ b/Documentation/devicetree/bindings/regulator/maxim,max77826.yaml @@ -30,10 +30,12 @@ properties: "^LDO([1-9]|1[0-5])$": type: object $ref: regulator.yaml# + unevaluatedProperties: false "^BUCK|BUCKBOOST$": type: object $ref: regulator.yaml# + unevaluatedProperties: false additionalProperties: false diff --git a/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml b/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml index eb61e04ef852..b5181719daa1 100644 --- a/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml +++ b/Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml @@ -48,10 +48,12 @@ properties: "^LDO[1-4]$": type: object $ref: regulator.yaml# + unevaluatedProperties: false "^BUCK|BOOST$": type: object $ref: regulator.yaml# + unevaluatedProperties: false additionalProperties: false