From: netdev-bot+sashiko@kernel.org
To: a.shimko.dev@gmail.com
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
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 [thread overview]
Message-ID: <179543998153.3135.2533998901272176773@kernel.org> (raw)
In-Reply-To: <20261122131900.2951586-3-a.shimko.dev@gmail.com>
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
next prev parent reply other threads:[~2026-11-23 13:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 13:18 [PATCH net-next v4 0/3] net: phy: dap8211r: add LED control support Artem Shimko
2026-11-22 13:18 ` [PATCH net-next v4 1/3] net: phy: dap8211r: fix kernel-doc comments for extended register helpers Artem Shimko
2026-11-22 13:18 ` [PATCH net-next v4 2/3] dt-bindings: net: dptel,dap8211r: add LED nodes Artem Shimko
2026-11-23 13:19 ` netdev-bot+sashiko [this message]
2026-11-23 16:03 ` Artem Shimko
2026-11-22 13:18 ` [PATCH net-next v4 3/3] net: phy: dap8211r: add PHY LED control support Artem Shimko
2026-11-22 15:29 ` Andrew Lunn
2026-11-23 13:19 ` netdev-bot+sashiko
2026-11-23 16:24 ` Artem Shimko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179543998153.3135.2533998901272176773@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=a.shimko.dev@gmail.com \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavel@ucw.cz \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®