Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1486843rdh; Mon, 25 Sep 2023 14:30:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgtae7QpPSC9MQyU2QNkrWBUo0MjovNHlnMjKfd8UCBm+lfpd4T1Xyg7NHnULq9/CVuSZW X-Received: by 2002:a17:902:bc47:b0:1c3:21ae:7a4a with SMTP id t7-20020a170902bc4700b001c321ae7a4amr6143946plz.38.1695677445229; Mon, 25 Sep 2023 14:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695677445; cv=none; d=google.com; s=arc-20160816; b=ozbAhgG+7sw0dKDMugkgtNeHpDnV+gLZ1mn9zHU3T4WFm5PBhgtnPDgOwrkK4PZLOo UW2UdRFCqO6zK2usDfL3m86ISw6nqZaCTv9bqWa9/wVfiChZ7Jue+WTijD2cxiVq35iz AxQHkh08h8u99epYfiIXHycAfh6iPGlpO0Fbjed8iMVpZj51u887V+3GGMXp8Ae9lfKM Ab6+zBlI4SKgmHJPSLNVbUu1VZ9DFHd26ZUBsGnWv7dMecb1YZqO28lGlkViiJcRXMCY r5GMyVdvC72PfdsnIugjVQfbQCVl8qScNVEFx9kYqhdCffA8LQgrpqQSO8v9CggPDUx3 gZlA== 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=sd4kaoEWmqAYPvmR+TJvqTx33gaCbK+dBogy1Vudv+M=; fh=AjzMy0LkTDmBAomevoAGxHlbFGaHZoMntr0XrZVSjsY=; b=hHzIx7kLCc1Tdr7ZAmKrOkFHLc6mPla4Kwizw9dWY/tZIGgZv4ZAZeuUj1vC6us5Cx 5AM9l5ombhtt9ydE2c/3VvOAsrYiEV+XQsxv7b3NO/9yo2xxYO9+/M6IU6KUiu5qbiCU zAUtGdTFrZi+XCzbtNRrOzlX9ZIO7B+LKoxU2Ytu8s6k4LFWpz7KtDTlpiQu3QoLJjS4 6H6OMWrUfCP3JnzHD/QmX+PGZoNw8KN0riNgCSGZNeNWyblMsiI2l0btYxLZxncQpEtv zBAlMog3ETQ0GDO3D2zU/BblAPPk6tgwTY3D7VuxaVD8c6pePn+efFc3aHkIDyAuVGk9 dleA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kYnloxV/"; 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 jh19-20020a170903329300b001bba90f8b73si10390777plb.78.2023.09.25.14.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 14:30:45 -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="kYnloxV/"; 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 C800A8061281; Mon, 25 Sep 2023 14:27:31 -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 S233059AbjIYV1e (ORCPT + 99 others); Mon, 25 Sep 2023 17:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233403AbjIYV1c (ORCPT ); Mon, 25 Sep 2023 17:27:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ADEA11F; Mon, 25 Sep 2023 14:27:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F28BDC433C8; Mon, 25 Sep 2023 21:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695677245; bh=ttt9MxqlXu8nD2JgUN9u6TOQN+41IkV1ecAtDT3N474=; h=From:To:Cc:Subject:Date:From; b=kYnloxV/57uAVpHewX8XeuFQPLiTF2QIJwR0cP+ubSh+Jx6ve4QYl+vRxwIp1BshC nvlL3Jqc63g61QjTGgGm/6AfydVlM+FMEagcyDPX04Km1rjPfNX9f11AfahfOAyJCu Sf4EtAb5DSS0GSkbtBII0jf3EfkACJf2tv7vhTRZU2XbVdbTclfy8HDeSGCdGhAJr7 j4JJP1n2KZtDHbuH5oBJWz+wrl6Y7tN/U0HuyXP5S001xOEvMYkaw/fFPUTcLHaPDd nvM/48XZgpcbSmqU6KpQPj5JkTS1JSpjAKN2XpeHTQSP9RU8RA7ZNfKmD+S8Utl/76 K+u3kLdH8dn1A== Received: (nullmailer pid 1976042 invoked by uid 1000); Mon, 25 Sep 2023 21:27:19 -0000 From: Rob Herring To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Heiko Stuebner , Magnus Damm , Lad Prabhakar , Fabrizio Castro Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH] dt-bindings: pinctrl: Add missing additionalProperties on child node schemas Date: Mon, 25 Sep 2023 16:27:10 -0500 Message-Id: <20230925212713.1975800-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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]); Mon, 25 Sep 2023 14:27:32 -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. Signed-off-by: Rob Herring --- .../devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml | 3 ++- .../devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml | 1 + .../devicetree/bindings/pinctrl/rockchip,pinctrl.yaml | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml index 2aedb7e7bc8b..5ece3b9d676b 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,mdm9607-tlmm.yaml @@ -43,7 +43,8 @@ patternProperties: "-state$": oneOf: - $ref: "#/$defs/qcom-mdm9607-tlmm-state" - - patternProperties: + - additionalProperties: false + patternProperties: ".*": $ref: "#/$defs/qcom-mdm9607-tlmm-state" diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml index 145c5442f268..4782f96feb7e 100644 --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml @@ -73,6 +73,7 @@ properties: additionalProperties: anyOf: - type: object + additionalProperties: false allOf: - $ref: pincfg-node.yaml# - $ref: pinmux-node.yaml# diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml index cb81a17bd0b1..5fa5d31f8866 100644 --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml @@ -53,6 +53,7 @@ properties: additionalProperties: anyOf: - type: object + additionalProperties: false allOf: - $ref: pincfg-node.yaml# - $ref: pinmux-node.yaml# diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml index 10c335efe619..20e806dce1ec 100644 --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml @@ -115,6 +115,8 @@ additionalProperties: type: object additionalProperties: type: object + additionalProperties: false + properties: rockchip,pins: $ref: /schemas/types.yaml#/definitions/uint32-matrix -- 2.40.1