From nobody Fri Feb 13 11:10:19 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D134CE79A4 for ; Mon, 25 Sep 2023 21:27:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233397AbjIYV1S (ORCPT ); Mon, 25 Sep 2023 17:27:18 -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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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.yam= l 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 =20 additionalProperties: false =20 diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77826.yam= l 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 =20 "^BUCK|BUCKBOOST$": type: object $ref: regulator.yaml# + unevaluatedProperties: false =20 additionalProperties: false =20 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 =20 "^BUCK|BOOST$": type: object $ref: regulator.yaml# + unevaluatedProperties: false =20 additionalProperties: false =20 --=20 2.40.1