Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2020916rdh; Tue, 26 Sep 2023 09:55:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUaziRNx5ZIlzL0iM0ndCNVjJ8o9HVzAViBwHfGMTeyzjh0eq5K2s3roS+nbZQxglcwcLp X-Received: by 2002:a05:6358:3a0b:b0:139:c82c:46dd with SMTP id g11-20020a0563583a0b00b00139c82c46ddmr7266411rwe.10.1695747334489; Tue, 26 Sep 2023 09:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695747334; cv=none; d=google.com; s=arc-20160816; b=TeuJTm9Oqc/rWDdfkMxSCbjC7vW4xFNYjUxnX3czmVze8p+2yWaT5Y11wxn6s+Qb8+ ZxQKX9WCes4RzW3q76slOkFiSJU8G+99B7xid7BwxqaVXyzamQFrBy1dlbMr529u4tYa Q6nWXS81xnuZLOpo+BgAN0sv83fA/kmawT7AGdEzLHfaXH3ft+Ctm++1jfXn+KbapLCC u8Bfmm/VgAKs9dfLTE1H0YLnj2jrzRKvmsExhGgaRNWB96CmYIN/EfbRYOAR21Kyq+TB YMKU+seQ31UanYjmhVg8NYfFCx7c5fjWmjQtKSOhdkEC0Tv6m+JbKnGAeH61RQZEEuVJ r44Q== 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=a5hDtyGaJSpXvvSAznHQMfP0EV9r91DnBUgT1dZK08s=; fh=Q1wTQ/1m0HByJd/bTHUNzWzc/U5zA1/09k91Bq5V7V8=; b=Gb8xhcvBYMRnGKpoFVDyuqnJcmTR2mBxL1yDlEogvI0ud9v2DSk96H28RhMGV0XoJy p5CsZxEYr1wh9uCAJsYflnMGriKMPAQ83i0ARUwtr674HZQ07bmEoxKIGg18g4Tg0fBp XqACcSDgQ/54mWbU86cGtndqx2vpcM258VA/tkC0lgomQRaU3mG5ADqKSr0f9DpfOPgs GmYlXkrxaY7DtXGixqpcokyQOl2eLC/LWxTvqXCn5sNhGZkuYC7KLajSnGatUQdW1rLJ vx6NhKTnPk9kP92GG1jXb36FbaVDW139Z9kFO4dQAeabNotufsu2XftruBgcJeEV2S5Y Pi+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=awUPCHvX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id f20-20020a637554000000b00565dd3fbfdfsi12674880pgn.214.2023.09.26.09.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=awUPCHvX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 8169F840FE32; Tue, 26 Sep 2023 09:45:19 -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 S235377AbjIZQpS (ORCPT + 99 others); Tue, 26 Sep 2023 12:45:18 -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 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:45:19 -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 --- .../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 -- 2.40.1