From patchwork Thu May 23 17:17:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13672071 X-Patchwork-Delegate: kuba@kernel.org 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 9ADBA7F481; Thu, 23 May 2024 17:17:57 +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=1716484677; cv=none; b=kkrXJCUV9Msan2Ta+zb4faRczctsAcDBdofWwLseKF/oWK3knJK65sLYlNny2ZHYjQg8n4Aq/x+evGDK8qR451OJwk6QJd1J7hi63Pqjz4LnuROMhfy/E1WJ1LcOMmxot8+lXZ43zJbjbKLSc6lFS2lb2gLj/DB4zdsc5YR9ZPw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716484677; c=relaxed/simple; bh=4DkinzDiJDJS1Ql5eStXQ4vQlwTn1UEISiw2ImwQHFw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cjioluwag0CAff2Y7HHx9eOX4WHDwqTKdnw27WlUZAoYBJNQ6tgg2P8PDfpmjauqfD4tfycjW8SonMdMNuuFBvfu8pv0NrvUrRT7pl4SjqEofGgUWEGi/V19prTCUbgCvll5I3fZ2DiwS6rx2wiKv5EEzgggqKi5I8E6CmsbrhU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZvTDjx95; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZvTDjx95" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB8B4C2BD10; Thu, 23 May 2024 17:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716484677; bh=4DkinzDiJDJS1Ql5eStXQ4vQlwTn1UEISiw2ImwQHFw=; h=From:To:Cc:Subject:Date:From; b=ZvTDjx958B8uTjExsNmhgPDCNuwcQG2OpDZhgQwVTM1/S+B4wrNGa4IXWZBbg+2wB WWxl0zQOwIkFga4s0L1WTVEUdTylyEm4w/m27BH83Xjwxp2JssqzZrhQGnZWyAzaa1 tltXfTv8aetTMwKoO7FxrSbhA1wihnnPuh9PunAGV7T6hO4ryF16gxEgvtFGae6B6a YFIvyJr01uNCKrzspmfeSls976LzXscHcRTsig1UTs3E3Hi39dgNFEGg2AIxw5YmLX pwVTraf0ODLqmVM9ub28kdNccScbxQ8TeQdVcXQVz9RyqH51PDN0i4clbMQ7aYvLCb jQbovYUr+yJFA== 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: ti,tps23881: Fix missing "additionalProperties" constraints Date: Thu, 23 May 2024 12:17:50 -0500 Message-ID: <20240523171750.2837331-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The child nodes are missing "additionalProperties" constraints which means any undocumented properties or child nodes are allowed. Add the constraints and all the undocumented properties exposed by the fix. Fixes: f562202fedad ("dt-bindings: net: pse-pd: Add bindings for TPS23881 PSE controller") Signed-off-by: Rob Herring (Arm) Acked-by: Kory Maincent --- .../bindings/net/pse-pd/ti,tps23881.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml index 4147adb11e10..6992d56832bf 100644 --- a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml @@ -29,13 +29,31 @@ properties: of the ports conversion matrix that establishes relationship between the logical ports and the physical channels. type: object + additionalProperties: false + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 patternProperties: '^channel@[0-7]$': type: object + additionalProperties: false + + properties: + reg: + maxItems: 1 + required: - reg + required: + - "#address-cells" + - "#size-cells" + unevaluatedProperties: false required: