Thread (19 messages) 19 messages, 8 authors, 2020-09-03

Re: [PATCH v4 5/7] net: dsa: hellcreek: Add PTP status LEDs

flat view

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2020-09-03 16:32:37
Also in: netdev


On 9/1/2020 5:50 AM, Kurt Kanzenbach wrote:
The switch has two controllable I/Os which are usually connected to LEDs. This
is useful to immediately visually see the PTP status.

These provide two signals:

  * is_gm

    This LED can be activated if the current device is the grand master in that
    PTP domain.

  * sync_good

    This LED can be activated if the current device is in sync with the network
    time.

Expose these via the LED framework to be controlled via user space
e.g. linuxptp.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
There appears to be quite some boilerplate code to deal with the default trigger, default LED label that could presumably live in the LED subsystem, nonetheless:

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help