dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access
authorRafał Miłecki <rafal@milecki.pl>
Fri, 23 Feb 2024 11:22:23 +0000 (12:22 +0100)
committerLee Jones <lee@kernel.org>
Thu, 7 Mar 2024 08:48:12 +0000 (08:48 +0000)
It's common for routers to have LED indicating link on the WAN port.

Some devices however have an extra LED that's meant to be used if WAN
connection is actually "online" (there is Internet access available).

It was suggested to add #define for such use case.

Link: https://lore.kernel.org/linux-devicetree/80e92209-5578-44e7-bd4b-603a29053ddf@collabora.com/T/#u
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240223112223.1368-1-zajec5@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
include/dt-bindings/leds/common.h

index c56785bb9c9c4901e81e9775abee4cd26273a137..ecea167930d95f684768c6ffb39eef4fc4550b37 100644 (file)
 #define LED_FUNCTION_TX "tx"
 #define LED_FUNCTION_USB "usb"
 #define LED_FUNCTION_WAN "wan"
+#define LED_FUNCTION_WAN_ONLINE "wan-online"
 #define LED_FUNCTION_WLAN "wlan"
 #define LED_FUNCTION_WLAN_2GHZ "wlan-2ghz"
 #define LED_FUNCTION_WLAN_5GHZ "wlan-5ghz"