From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F4BAC32772 for ; Tue, 23 Aug 2022 14:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/aA8Gm1orQ56Y2Nadbeo7nyNe8pfWDtnjrDaww8VviY=; b=m+9wnCqOuNzj6S L/XKZLCwmoBfR8Kwhzc82tcB6GQGuStxtxmuYTGOd4UX4AWnDHYfYDyXPrs6Pe6T9tUaqmPn/Jykw JIuzmgjKrukDkAPv7SeJ8dfK2w0aRNecSR49N4yasBB6CgXEmcZCO34v/PE2H3OD3d2kQC5x8DM8/ HwKGCQCSrznKJjDRrPfJV63JQAiQU1hreB7eLj9vtFf5hDYyvxbNJXVmjVMQnpc9+W6mQvQFmTgur oulNNrQ9wNzLbfEGlS6a+THSMjdqRqrQVCb/xLlvD2imIceKFSfCsRIWn2hnqYvck+Cx091TdoPwO HEQUKLDqDfuF8Qrl6Dkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQVLR-006lmz-9p; Tue, 23 Aug 2022 14:57:33 +0000 Received: from mail-ot1-f42.google.com ([209.85.210.42]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQVLE-006lfa-0J for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 14:57:21 +0000 Received: by mail-ot1-f42.google.com with SMTP id 92-20020a9d0be5000000b0063946111607so634918oth.10 for ; Tue, 23 Aug 2022 07:57:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=32fb+kP/GNTtD4yV9TOnD2b7RZ03KBwBx6+ibrPD+y8=; b=W0d5t4caG0kkx/Q0e2s3TMTlo7qtwDSuhvnvyG0rUEASvW5wmiKM5If+OhjP7B9Rvu w4UTlQjWRiAUy9koD32rkYg9PfHSo9+r9+I3UR7LNpNO+8LGkHB/cLTGyLaYw5AsRujN TNCBy6AKOgDwXTDvrkql9SUEigCjKnj0Ft936CcWPOOc4/5SV6hkLHaX+koI73CHxhWM leCh8LxYwZ2KK0I+oJ/bQbdcIcrWsAA8AmLgGjlPbWd+EcM0crrJYIgtaS+q/l15ubHw z+p0Iz9LcGlTWnsDJtc83Utjf4ea46oeVVKsVjgU/MGsJRo+9Oob20txZn+ABtklb/kx CSVQ== X-Gm-Message-State: ACgBeo2+q1FIYm18gomdR+pZx1hzIGMywb1F8OT2wQ7gpxWRra/INQR/ dhdYf3XC8Ho0GhZFAn9kVQ== X-Google-Smtp-Source: AA6agR5gTDVPXYx4XrmwbScdPsvRYbDyHtuAdNcSHU1Fwpadq2Y01zAfG/CkPYSQeOvRnZjzCO7kHw== X-Received: by 2002:a05:6830:2498:b0:638:9325:3370 with SMTP id u24-20020a056830249800b0063893253370mr9666966ots.228.1661266636988; Tue, 23 Aug 2022 07:57:16 -0700 (PDT) Received: from xps15.. (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.googlemail.com with ESMTPSA id t1-20020a056870600100b0011c65559b04sm3840637oaa.34.2022.08.23.07.57.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 07:57:16 -0700 (PDT) From: Rob Herring To: Hans Ulli Kroll , Linus Walleij , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Grygorii Strashko , Sekhar Nori Cc: linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: net: Add missing (unevaluated|additional)Properties on child nodes Date: Tue, 23 Aug 2022 09:56:36 -0500 Message-Id: <20220823145649.3118479-5-robh@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220823_075720_069944_41CDA06E X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to ensure only documented properties are present, node schemas must have unevaluatedProperties or additionalProperties set to false (typically). Signed-off-by: Rob Herring --- .../devicetree/bindings/net/cortina,gemini-ethernet.yaml | 1 + Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml | 4 ++++ .../devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml | 1 + Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml | 1 + 4 files changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml b/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml index cc01b9b5752a..253b5d1407ee 100644 --- a/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml +++ b/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml @@ -37,6 +37,7 @@ properties: patternProperties: "^ethernet-port@[0-9]+$": type: object + unevaluatedProperties: false description: contains the resources for ethernet port allOf: - $ref: ethernet-controller.yaml# diff --git a/Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml b/Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml index 31bf825c6598..46e330f45768 100644 --- a/Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml +++ b/Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml @@ -77,6 +77,8 @@ properties: ethernet-ports: type: object + additionalProperties: false + properties: '#address-cells': const: 1 @@ -89,6 +91,7 @@ properties: description: CPSW external ports $ref: ethernet-controller.yaml# + unevaluatedProperties: false properties: reg: @@ -117,6 +120,7 @@ properties: cpts: type: object + unevaluatedProperties: false description: The Common Platform Time Sync (CPTS) module diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml index b8281d8be940..fb61a2ce0ea8 100644 --- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml @@ -115,6 +115,7 @@ properties: description: CPSWxG NUSS external ports $ref: ethernet-controller.yaml# + unevaluatedProperties: false properties: reg: diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml index b783ad0d1f53..e9f78cef6b7f 100644 --- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml @@ -95,6 +95,7 @@ properties: refclk-mux: type: object + additionalProperties: false description: CPTS reference clock multiplexer clock properties: '#clock-cells': -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel