From patchwork Tue Sep 26 16:44:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 726634 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 6AFDDE7E652 for ; Tue, 26 Sep 2023 16:45:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235371AbjIZQpQ (ORCPT ); Tue, 26 Sep 2023 12:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235188AbjIZQpP (ORCPT ); Tue, 26 Sep 2023 12:45:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE80E5; Tue, 26 Sep 2023 09:45:09 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66410C433C7; Tue, 26 Sep 2023 16:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695746709; bh=NLDXpZvaFQNHIhUvBJFKAVrrZdic9lys/WgPWvzaSa8=; h=From:To:Cc:Subject:Date:From; b=awUPCHvX89TNdhiQI/PIhXg0GM/ClTHd8530cIF+XNPJEepM9m3LsaOT7s1saJ5Kr kJU/V/ODgcGbK86avt6X+rCfStP/6DQApu4bOGXI+PCZxycD+iccBeTi9t5I8X0RQ3 oc6YL5CvJcDr8BkZrvZyBxqkUGNJUsutl9DiOVBpuxWWlGJXzrdx/MvuViSFAk922N lVYEBd7ZXkpMlvDV9jx7XlFScPhzTdXMX74sFjvufktD8RZH9PzjA0Bwtzpdpc5inF LXkwycxA2eXJliKYIjJOoLbaIgOgh0g7Mkqd1mB9oZkxdLfSmNx8MW6xrWCrrQqu6H HtTcmtF3ndZGA== Received: (nullmailer pid 101904 invoked by uid 1000); Tue, 26 Sep 2023 16:45:05 -0000 From: Rob Herring To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: thermal: nvidia,tegra124-soctherm: Add missing unevaluatedProperties on child node schemas Date: Tue, 26 Sep 2023 11:44:52 -0500 Message-Id: <20230926164500.101593-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- .../bindings/thermal/nvidia,tegra124-soctherm.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml index 04a2ba1aa946..b0237d236021 100644 --- a/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml +++ b/Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml @@ -68,7 +68,12 @@ properties: patternProperties: "^(light|heavy|oc1)$": type: object + additionalProperties: false + properties: + "#cooling-cells": + const: 2 + nvidia,priority: $ref: /schemas/types.yaml#/definitions/uint32 minimum: 1