Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet access

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>

authored by

Rafał Miłecki and committed by
Lee Jones
64e55850 205c2988

+1
+1
include/dt-bindings/leds/common.h
··· 100 100 #define LED_FUNCTION_TX "tx" 101 101 #define LED_FUNCTION_USB "usb" 102 102 #define LED_FUNCTION_WAN "wan" 103 + #define LED_FUNCTION_WAN_ONLINE "wan-online" 103 104 #define LED_FUNCTION_WLAN "wlan" 104 105 #define LED_FUNCTION_WLAN_2GHZ "wlan-2ghz" 105 106 #define LED_FUNCTION_WLAN_5GHZ "wlan-5ghz"