From: Conor Dooley <conor@kernel.org>
To: Artem Shimko <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 1/3] dt-bindings: net: dptel,dap8211r: add led nodes
Date: Fri, 13 Nov 2026 17:17:19 +0000 [thread overview]
Message-ID: <20261113-good-renovator-99924ca0d55b@spud> (raw)
In-Reply-To: <20261113110546.173624-2-a.shimko.dev@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2999 bytes --]
On Fri, Nov 13, 2026 at 02:05:43PM +0300, Artem Shimko wrote:
> Document the optional "leds" node supported by the dap8211r phy.
>
> The phy exposes three configurable led outputs, each of which can be
> assigned a color, a function and a default trigger.
>
> Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
> ---
> .../bindings/net/dptel,dap8211r.yaml | 38 +++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml b/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml
> index 4cd0f9730d95..43425fc8e96e 100644
> --- a/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml
> +++ b/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml
> @@ -20,6 +20,7 @@ description: |
> - IEEE 802.3az-2010 Energy Efficient Ethernet
> - IEEE 1588 SyncE support
> - Internal packet generator and checker for link diagnostics
> + - Three configurable LEDs (link, speed, duplex, TX/RX activity)
>
> allOf:
> - $ref: ethernet-phy.yaml#
> @@ -28,6 +29,22 @@ properties:
> compatible:
> const: ethernet-phy-id0008.011b
>
> + 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).
Please add some blank lines here,
> + patternProperties:
> + '^led@[0-2]$':
> + type: object
here,
> + properties:
> + reg:
> + maxItems: 1
here,
> + required:
> + - reg
and here.
> + additionalProperties: true
This whole leds node needs to go down below tx-internal-delay-ps, child
nodes are typically sorted after regular properties.
pw-bot: changes-requested
Thanks,
Conor.
> +
> reg:
> maxItems: 1
>
> @@ -49,6 +66,8 @@ unevaluatedProperties: false
>
> examples:
> - |
> + #include <dt-bindings/leds/common.h>
> +
> mdio {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -58,5 +77,24 @@ examples:
> reg = <1>;
> rx-internal-delay-ps = <1950>;
> tx-internal-delay-ps = <1950>;
> +
> + leds {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + led@0 {
> + reg = <0>;
> + color = <LED_COLOR_ID_GREEN>;
> + function = LED_FUNCTION_LAN;
> + linux,default-trigger = "netdev";
> + };
> +
> + led@1 {
> + reg = <1>;
> + color = <LED_COLOR_ID_AMBER>;
> + function = LED_FUNCTION_LAN;
> + linux,default-trigger = "netdev";
> + };
> + };
> };
> };
> --
> 2.43.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-11-13 17:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 11:05 [PATCH net-next 0/3] net: phy: dap8211r: add LED hardware control Artem Shimko
2026-11-13 11:05 ` [PATCH net-next 1/3] dt-bindings: net: dptel,dap8211r: add led nodes Artem Shimko
2026-11-13 17:17 ` Conor Dooley [this message]
2026-11-13 11:05 ` [PATCH net-next 2/3] net: phy: dap8211r: add extended register write helper Artem Shimko
2026-11-13 20:28 ` Andrew Lunn
2026-11-13 11:05 ` [PATCH net-next 3/3] net: phy: dap8211r: add led hardware control support Artem Shimko
2026-11-13 20:32 ` Andrew Lunn
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=20261113-good-renovator-99924ca0d55b@spud \
--to=conor@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®