From patchwork Tue Sep 26 16:45:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 144976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2057579vqu; Tue, 26 Sep 2023 09:53:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHo4tq4Du1YT1q6zXXyrKnHAuC+TVi3ONUDWqWQJyuIA5sPj0oS+SHEQ7+0NuFiuieHZ33Q X-Received: by 2002:a05:6a00:1817:b0:68f:b8ca:b11 with SMTP id y23-20020a056a00181700b0068fb8ca0b11mr10228058pfa.11.1695747216045; Tue, 26 Sep 2023 09:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695747216; cv=none; d=google.com; s=arc-20160816; b=ejhGj0ywiwX8re8eT8MkdtqkXxYRGkeTyxYBsPMhKxuvj0RwLCpB9xlqIDasOO8wkp te7RIFtw1kqUGD83UoZhEbW7J3lPb72t5JWwlSUHCDeMISGz07ioZqHTXJNlQcVFJKVe 5YXVTgUWgi8pcYxIv7gRTQfxDyMeKn5Zus2TS0Qa6s2tNrwq26s5crgD60rVbDvmWDh2 RNhPwdLR9XtuV53tPz+vDBvfMTo+GYQgU+BNoLE7sU6vJwUB2RJFObcnJluHTNxb65HA 7u+C3wRlVXamadI1H/Fv8pfmHRmO5YeHuGE5GUDiDPZnA1T6KFOYHJWtSoADtmRC4z5O Rg0g== 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=KvfS/+dT4DJQWSM4/1jewvuKLywENQmfQHExbdXFr1A=; fh=xKr2lttRPxWiT120TT6pUDRaJUsuXE5Gbo85LtWhsXs=; b=Ove8/gAfNUOJlScHzNrM7CA7zVz4/0RkKC4awedJFR4oxvvOc3SPS1Gbi601RGOtim yv0wQyu1BPy38VJJzaeabBd8a6XYUm9Vhzu+wLTzw+Z2PiAxS016CKlAsjOKJ/bKMNNK g331MGn98PbSX2qpSUeDj+1dEdJ7ce6u/gWEJnjNGmvOKpw2d/g596yrBMsl1mhDwG2L f0lJQDgeqIwkdb8jAmhNX3ycx54sSEAqxGnrU59jilfB+FX93gcs8MIX8Zk2Q+QRWlv7 rXQvm7r13dTIWnLQBhgtY85pleBqelkDOIT1UF6jSe1s0CWWeRikfRRf2mYlppv8amdW dArQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lzNc0KZG; 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 j9-20020a056a00234900b00690fe3ec830si13897895pfj.55.2023.09.26.09.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:53:36 -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=lzNc0KZG; 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 71A0280998BC; Tue, 26 Sep 2023 09:46:19 -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 S235392AbjIZQqJ (ORCPT + 28 others); Tue, 26 Sep 2023 12:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235379AbjIZQqH (ORCPT ); Tue, 26 Sep 2023 12:46:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34DC511F for ; Tue, 26 Sep 2023 09:46:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0994DC433C7; Tue, 26 Sep 2023 16:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695746760; bh=0M5UOaMPiWsCHJJxpEzVJNXDt/gjIIbRZQm2M8yq3Pc=; h=From:To:Cc:Subject:Date:From; b=lzNc0KZG6oPTgue2S7gWMo0xFppK8G9rNF4csG+AFWEid6oCTctiTFW4vHiLQPxEo x6W/TwCV2gOELnXth4ZqrIqUyPmDQa5epypDhvr3mAPWvSXJ9CwbnlGNQNWWXNWjAx 7PhcBXgKnDxPmDoessj92cPG/XAbzdfyPeLSqeV3b9iCFcQQjQMB8NIbmeEPVBOjAE t7DK8NWaJxxmFCy4dMtq+9gZBj2boTME2Qn0fx2FNN4GgzEoId3KD1GtsjWJ82MXUN kBQ0c2nJEyAPIWS8NyXRomW7Dmya80/lug7SrOIhXboNcI7w2BGngcT60natzuFt0R sobKSJj4l+Fww== Received: (nullmailer pid 103271 invoked by uid 1000); Tue, 26 Sep 2023 16:45:58 -0000 From: Rob Herring To: Krzysztof Kozlowski , Conor Dooley , Lorenzo Pieralisi Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas Date: Tue, 26 Sep 2023 11:45:44 -0500 Message-Id: <20230926164553.102914-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]); Tue, 26 Sep 2023 09:46:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778119832927007822 X-GMAIL-MSGID: 1778119832927007822 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 Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/psci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml index 0c5381e081bd..cbb012e217ab 100644 --- a/Documentation/devicetree/bindings/arm/psci.yaml +++ b/Documentation/devicetree/bindings/arm/psci.yaml @@ -101,6 +101,7 @@ properties: patternProperties: "^power-domain-": $ref: /schemas/power/power-domain.yaml# + unevaluatedProperties: false type: object description: |