800-v6.9-0002-dt-bindings-leds-Add-LED_FUNCTION_WAN_ONLINE-for-Int.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 64e558500d2d04878b8a6d6578850c475171d6ba Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Fri, 23 Feb 2024 12:22:23 +0100
  4. Subject: [PATCH] dt-bindings: leds: Add LED_FUNCTION_WAN_ONLINE for Internet
  5. access
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. It's common for routers to have LED indicating link on the WAN port.
  10. Some devices however have an extra LED that's meant to be used if WAN
  11. connection is actually "online" (there is Internet access available).
  12. It was suggested to add #define for such use case.
  13. Link: https://lore.kernel.org/linux-devicetree/[email protected]/T/#u
  14. Signed-off-by: Rafał Miłecki <[email protected]>
  15. Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
  16. Link: https://lore.kernel.org/r/[email protected]
  17. Signed-off-by: Lee Jones <[email protected]>
  18. ---
  19. include/dt-bindings/leds/common.h | 1 +
  20. 1 file changed, 1 insertion(+)
  21. --- a/include/dt-bindings/leds/common.h
  22. +++ b/include/dt-bindings/leds/common.h
  23. @@ -100,6 +100,7 @@
  24. #define LED_FUNCTION_TX "tx"
  25. #define LED_FUNCTION_USB "usb"
  26. #define LED_FUNCTION_WAN "wan"
  27. +#define LED_FUNCTION_WAN_ONLINE "wan-online"
  28. #define LED_FUNCTION_WLAN "wlan"
  29. #define LED_FUNCTION_WLAN_2GHZ "wlan-2ghz"
  30. #define LED_FUNCTION_WLAN_5GHZ "wlan-5ghz"