Re: [PATCH net-next v4 2/3] dt-bindings: net: dptel,dap8211r: add LED nodes
From: Artem Shimko
Date: Mon Nov 23 2026 - 11:03:53 EST
On Mon, Nov 23, 2026 at 4:19 PM <netdev-bot+sashiko@xxxxxxxxxx> wrote:
>
> 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?
ok, i'll fix it.
> 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?
I'll keep the current wording for now, since
the message describes what the patch does (adds LED nodes and an
example) and the restriction to 0..2 is visible in the diff itself.
If the maintainers prefer a different wording, i'll adjust in a
follow-up.
--
Best regards,
artem