Article View: linux.kernel.netdev
Article #21006Re: [PATCH net-next v4 2/3] dt-bindings: net: dptel,dap8211r: add LED nodes
From: netdev-bot+sashiko
Date: Mon, 23 Nov 2026 13:19
Date: Mon, 23 Nov 2026 13:19
104 lines
11119 bytes
11119 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The new `leds` block in
Documentation/devicetree/bindings/net/dptel,dap8211r.yaml mostly…
--
dt-bindings: net: dptel,dap8211r: add LED nodes
This commit documents an optional leds node in the DAP8211R PHY binding.
The PHY has three LED outputs, and each can be given a color, a function
and a default trigger. The commit also adds an example with two LED nodes.
> diff --git a/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml b/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml
> index 4cd0f9730d954..772329feda059 100644
> --- a/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml
> +++ b/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml
[ ... ]
> @@ -45,10 +46,40 @@ properties:
> maximum: 2250
> default: 1950
>
> + leds:
> + type: object
> +
> + description:
> + Optional node describing the three configurable LEDs of the PHY.
> + Each LED can be assigned a color, function and default trigger
> + (e.g. "netdev" for link/activity indication).
> +
> + properties:
> + '#address-cells':
> + const: 1
> + '#size-cells':
> + const: 0
> +
> + patternProperties:
> + '^led@[0-2]$':
> + type: object
> +
> + $ref: /schemas/leds/common.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + reg:
> + items:
> + maximum: 2
> +
> + additionalProperties: false
> +
[Severity: Low]
This isn't a bug, but does most of this block need to be here? The binding
already gets a leds definition from allOf: - $ref: ethernet-phy.yaml#:
Documentation/devicetree/bindings/net/ethernet-phy.yaml:
leds:
type: object
properties:
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties:
'^led@[a-f0-9]+$':
$ref: /schemas/leds/common.yaml#
...
required:
- reg
unevaluatedProperties: false
additionalProperties: false
Most of the new block repeats ethernet-phy.yaml: the type: object keys, the
cell constraints, the common.yaml $ref and unevaluatedProperties: false.
Only two constraints are new. The '^led@[0-2]$' node name pattern, combined
with the local additionalProperties: false, rejects led@3 and above. The
reg items maximum of 2 limits the LED index.
Could the block be cut down to just the constraints that limit the PHY to
three LEDs?
The commit message also says:
Document the optional "leds" node supported by the DAP8211R PHY.
Before this patch, a leds node with LED children already passed validation
for this PHY through ethernet-phy.yaml. Would it be clearer for the message
to say that the change limits the LED nodes to indices 0-2?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261122131900.2951586-1-a.shimko.dev%40gmail.com
Technical Details
Message-ID:
<179543998153.3135.2533998901272176773@kernel.org>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369385-linux-kernel-netdev=dewy.ruReferences:
<20261122131900.2951586-3-a.shimko.dev@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369385-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 2/3] dt-bindings: net: dptel,dap8211r: add LED nodes Date: Mon, 23 Nov 2026 13:19:41 +0000 Organization: Usenet Network Message-ID: <179543998153.3135.2533998901272176773@kernel.org> References: <20261122131900.2951586-3-a.shimko.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3886636"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:NxEVHD//X1a9NX0fZGNhHOqDpfo= sha256:4nH+pczmMiEYSBqYalmB1akjXfJ7+Q9dRuAjVeo+CJE= sha1:70FERSqR+IfzCJtW8AuzKqxddII= sha256:QZO5YYIEJXLiVJo9U5Q2Ix2W7QdmVI+UI5P3fCiTIzI= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id C74E6125DB2; Mon, 23 Nov 2026 16:20:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id apm_CY6-DiaG; Mon, 23 Nov 2026 16:20:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369385-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id EBE44125DAD; Mon, 23 Nov 2026 16:19:55 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 625552B61E; Mon, 23 Nov 2026 13:19:49 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795439989; b=cCuck3g8BDYXTnNLjG1VOQmR4VskFgzoVQA9jgZVGvXmXrZchogVJ4gu/rryxVH0m7Tj qs9yTtUoB7GZmB454rvLU8BLlgH2m9Amvs6DZrdpXQQks1PquWrt29h9SaKH4MX3WJY/n twYYkEnGSgiwTcnK+QZZzucoyQwsyEXHrs8sEtxUk0jUQNxJtlWCLH9+RGUoNlqSgHVxW 5QS9bK101MbXOHKtykomIhtqKXwpN3YpUWLvR9fYguS9QNhVMS3y9f9sf5ATbVuLZmuv7 CHD4AFCRpNe/zlGfp2tjzAzj6jiPFQknFQbtVgjHru6HZsUdUv8XyNF3EMWC3EHUgsg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795439989; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=iYol7kGJlUO6lLn9bESn6OVQpRDCyh7pQI9vssz5C9A=; b=2iZVokrJ5kFrGfrxj6439+3GRIbPNe17LP913FCqSERpnFPHDGMIiBg5eIFMmeZBTbM6 vIBuOcUNsW7Rzl/7TphaTHH1qrUuG7Z/SdHJuwYbdLpU/95ChLFtFhn+MrPCVBj5jEtmv hvWjj73hIrUE4PBA6g9jUWlwtm4a7oxdnd5DSZlCyFPdygbdxWTOKPu7Zue2ypdD4UBeg l7Ui7tgc7Dc0hC3nG9LYkamLvzrvxpSuiOeaHMIcbyON0m8HZUOXcHvjCDV9AYosJl4Ig nqY02FU6/7Gn8ut3jeGPqo8amf2ZVC5a8R575BPRNroZfhCiAwU3dQXy5K+pzM/KkzA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iLaoyFtf; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 398F7606A31E; Mon, 23 Nov 2026 13:19:49 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iLaoyFtf X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795439983; b=P0clN17SAzZwB/WawE3qW5NU8xXFLWayfyqvVDEQHBHyGYvZYYlU6E/vvhqCdT6cHbC0 01zh5Mmjw3E/Dm7D/Utm1SNVln4Iv/tTco6FBCzqrufhP5062njNclNh5QmK07O+VbaKj Rk+YlOzu4xGiLl9/UJvO7NsbuKD3OuahPBtcAw24XRy3YZiZ7E0dRqHPTaDns3Fjtcubx e7LYyz25tBcf8e9V6957NxBiOVkJv3tVI0k4dH9mWU9r+QamxbEnglg/Qcgw4nWA8EyyR zhrXdG2e7MPAZdXB2rOKMNqVYNh2oEAk5OnBHMZ6CyQ84Dxi2mxWkGN+0YhtgFZ0k5A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795439983; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=iYol7kGJlUO6lLn9bESn6OVQpRDCyh7pQI9vssz5C9A=; b=Cd7Qrr6Hq80VoCZLEUEuiyhCBiXrcxXiMQ8wOwBoF7ybL6H6VNnczYdwHBww0ZdqF3uE b8Wh22lCJGtQyAcDGhwlL/y9FR2tqeG6TgkBs7VqrnOJR+ZyRJyM0KcgIN01v4BZjCt9M UUAQ/IFPdcEW3X0ByHPpTgwSQqHE2vXw/UcjM6Z1v1/1F94mmz4+IK9+lc6jJSSxVr5Gf 5MFhfN9qKv9Sqbs8+RfOsswty5+JPm+xNoziev+ARc0Sx3pNw129FO+CjnxStf51tpUHG T4OBmYrKEDopyt2a6xmRM8bwJQyByrPIcJxl2R3xD6UnQ+s/eiyUUapWK0htWo17YBg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iLaoyFtf; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55614606A31A; Mon, 23 Nov 2026 13:19:43 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 084381F000C4; Mon, 23 Nov 2026 13:19:41 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795439982; bh=iYol7kGJlUO6lLn9bESn6OVQpRDCyh7pQI9vssz5C9A=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=iLaoyFtfoyh/456qrViWqYmHM3K8JVMSIU7ppDp6t/1LPf1Dt++eLcVWM+4L9HSna ApkEasYZJ9vx3wpAcYxzSuGPiDnI85omKzTtfXgG4zR40HTsNAca+eDNiW0VqNFWLV 0sd86e4eorF4r5QeNZfkBzcMOTRet0cTvIi3CCkMEMFAqLtcWCUC8O10VsRMAFtzpH NcS0y5vrXw9m2Wy8WMvKNePeS9c+RHJr0RtVWiBBFQu+RB9mIYk81j+vPtO/kk2IAF A57wdSSYSopLD2W/Zol/gwKuBS9ll7QbmQBdYUu35S/Dcs/wRihv0y4RYnMnhiEDbU LTK6Gcp3RQiWw== X-Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, maxime.chevallier@bootlin.com, pavel@ucw.cz, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, netdev@vger.kernel.org X-In-Reply-To: <20261122131900.2951586-3-a.shimko.dev@gmail.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list