realtek: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / realtek / dts-5.15 / rtl83xx_d-link_dgs-1210_common.dtsi
index 1e3cafa9381d8d5b1992f771c5185f1513bb3d98..fa623d7a9006ae20a636b0309d389097f8ec60e3 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 
 / {
@@ -22,7 +23,8 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };