Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp45943lqb; Thu, 23 May 2024 10:17:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmMeaTD39iq12+Uycegef5N6JOKSzg2xyrXlQmOntHo9cFz+fhkOyvZI8hzeMT0OgfBYt/7Xz7AzqnWGZFzumKT5t1V/dGQpEbqqSPNQ== X-Google-Smtp-Source: AGHT+IFgjXlqAjUJ2M7+BMv2YGUiTKWyKYO1t7IJOr9xzwz7VNNUsjN+ZhopMFnq5ClzA4IUeaPH X-Received: by 2002:a05:6a20:f393:b0:1af:d95f:cdd with SMTP id adf61e73a8af0-1b212deb952mr59955637.35.1716484677612; Thu, 23 May 2024 10:17:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716484677; cv=pass; d=google.com; s=arc-20160816; b=HUfT7GbYvWy/JSdutJ431FHGeLoRokN1U5TORNShxef4RXmX27D8bEB9+GEeyVdpEu S0KjIcuEg7IXrF7FpVeXxZmBffTnIhCzf+mFzMoj3ipvW3h7s3x+5/4Vs34ZSddnaE5A pYHv1qtambGU3E161YGA8BTq2hxiFUMim6PZSD/fZ9IEKDxipww/spnQc9sck3QAE5s3 52nh9gHeOjbao+IZ+PE0pMxQMb/5/T3NEwtbDcj9o6oDmsC9WahzQVUawa3/QTM+xY5L NSzmqxzU/wIjuX9G/1ZPgs7s0T+pHDFGGmofLOwZczXCxVaPAes+CsigOFnFPd9IqoCk urrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jAa1F5gl6/KfhO4LoEyhcBEmE4WGTldbdpGBTIG/NYk=; fh=7ze0J59QJHY+hhE279mYk1sIxCwejrjq8yuFOrTC/3s=; b=AuD6aklZJYGz0MnyCKGYwxA/2AsP//JFYb944H/71+jcbd4RLqouBbrvLrNf6EU9gF k248pnr8Qid/ycmkBxLzXmYrUdyBy+3zReQk0gGgI/P9xoPN+p5qwxgzHFra788Wwi3l CCtyOmn7C0EpH8ad4d+Ype1g/9/im3WjMA23BiJxkYuW1B7wcBedJX9T69RGrdC8TZq2 zfBtxfQHqUlUvxjhLN2qql6akPGMyw9WYl82xQfkldhwDHqcz8aLWZ7RODbe4AApOHXI IttXAGMafTEJaXYL+TR8G1fCuMYvH38mb8mb/1uLxW4bZH2+oluQIedhgye5KCTUmjWx U6nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ToN4s1dW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-187827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f7250si1520970a12.377.2024.05.23.10.17.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ToN4s1dW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-187827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E121283665 for ; Thu, 23 May 2024 17:17:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DE74757E8; Thu, 23 May 2024 17:17:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ToN4s1dW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 983C27E579; Thu, 23 May 2024 17:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716484667; cv=none; b=fvVo+A+fhEYtFr6UjTj24P/qASsw7vpEKG5uN3ExQzqXjcleZbqNgANbIZKU5CVrgl8aIbXsCrlu2HLvyITMUKwJd1qn/p9V4eweGmWNVXEmGVg30CgVuB83Vd3QlUxdrSpABz0uKzcQ8AFq7jp5mCD72Vm4qPqrjA0f3cQFDPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716484667; c=relaxed/simple; bh=2HCxjEfldLUhKTCVa67RtcypiPf5ZVNtuVIDEzk7ZJM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BP+G/xcdwLAemkIyM85umt7uu6Ii9FTpqIfG/nx5eN/8Z9+iBUzA4Cnja2TMIYt04xav9Q52vfiBSSFm6u+mHP5gShQOVFAl8FscwZfJUmIrfnnqmVmahvA3GBFt/A4ZJakiLazPukD0KF9XumjxxVYS/4HywmSljoAc92yOcxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ToN4s1dW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF10AC2BD10; Thu, 23 May 2024 17:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716484667; bh=2HCxjEfldLUhKTCVa67RtcypiPf5ZVNtuVIDEzk7ZJM=; h=From:To:Cc:Subject:Date:From; b=ToN4s1dW17A1R/FOeMiPG3gtXzGDWScO8+WWrKORoXh4XD1NpYWWfL00eRxje2XfA eNzR6UYkXkj+mEjNSi4jCXFzNO5cidrG/syJ7yTTedwTKV+pqL6t1UtFJuxEKFizHb n887EgQqvw8uz8SghSSP9LpuIdED2gPvTS04xH2J0JHEYqOyk7+QaZEo3jNjTgiZQc vAGgS3/jfw7LfpVqMmqCi5fyEbXEVIkmosAI6NFobB8zqPLavV/ZduWH6kArSHEmqz zPBNonxVP/HyRXVe9741e/j3ywKqy8QgdmZEAMmAHzCOMBmjyCbm7+JDPN8fr3uMik xeiRZiuMj+ZTw== From: "Rob Herring (Arm)" To: Oleksij Rempel , Kory Maincent , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net] dt-bindings: net: pse-pd: microchip,pd692x0: Fix missing "additionalProperties" constraints Date: Thu, 23 May 2024 12:17:31 -0500 Message-ID: <20240523171732.2836880-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The child nodes are missing "additionalProperties" constraints which means any undocumented properties or child nodes are allowed. Add the constraints, and fix the fallout of wrong manager node regex and missing properties. Fixes: 9c1de033afad ("dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller") Signed-off-by: Rob Herring (Arm) --- .../bindings/net/pse-pd/microchip,pd692x0.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml index 828439398fdf..fd4244fceced 100644 --- a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml +++ b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml @@ -24,6 +24,7 @@ properties: managers: type: object + additionalProperties: false description: List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager have 4 or 8 physical ports according to the chip version. No need to @@ -47,8 +48,9 @@ properties: - "#size-cells" patternProperties: - "^manager@0[0-9a-b]$": + "^manager@[0-9a-b]$": type: object + additionalProperties: false description: PD69208T4/PD69204T4/PD69208M PSE manager exposing 4 or 8 physical ports. @@ -69,9 +71,14 @@ properties: patternProperties: '^port@[0-7]$': type: object + additionalProperties: false + + properties: + reg: + maxItems: 1 + required: - reg - additionalProperties: false required: - reg -- 2.43.0