kirkwood: convert to new LED color/function format where possible
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:38 +0000 (14:48 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 7 Feb 2024 13:48:38 +0000 (14:48 +0100)
Initial conversion to new LED color/function format
and drop label format where possible. The same label
is composed at runtime.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-nas1.dts

index a8d86406b533432317934e933b7f57cfeb60bec0..379db8acd8a81e2e3909626d854731d6907632f1 100644 (file)
@@ -1,6 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 /dts-v1/;
 
+#include <dt-bindings/leds/common.h>
+
 #include "kirkwood.dtsi"
 #include "kirkwood-6281.dtsi"
 
@@ -43,7 +45,8 @@
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ehci_port1>;
                        linux,default-trigger = "usbport";