[PATCH 7/7] ARM: dts: helios4: describe LED color and function
Rosen Penev
rosenp at gmail.com
Wed Nov 25 18:38:56 PST 2026
Add color and function properties to all seven LEDs, matching the
schematic: green status LED (LED1, MPP24), red fault LED (LED2, MPP25),
four green SATA activity LEDs (LED3-LED6) and a green USB LED (LED7).
The deprecated label properties are kept on purpose. They take
precedence over color/function when the LED class device is named, so
the existing sysfs names (helios4:red:fault and friends), which board
support scripts rely on, stay unchanged.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
.../boot/dts/marvell/armada-388-helios4.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/marvell/armada-388-helios4.dts b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
index b62730b949a4..46ff69c3426b 100644
--- a/arch/arm/boot/dts/marvell/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/marvell/armada-388-helios4.dts
@@ -10,6 +10,7 @@
/dts-v1/;
#include "armada-388.dtsi"
#include "armada-38x-solidrun-microsom.dtsi"
+#include <dt-bindings/leds/common.h>
/ {
model = "Helios4";
@@ -75,6 +76,8 @@ system-leds {
status-led {
label = "helios4:green:status";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_STATUS;
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
default-state = "on";
@@ -82,6 +85,8 @@ status-led {
fault-led {
label = "helios4:red:fault";
+ color = <LED_COLOR_ID_RED>;
+ function = LED_FUNCTION_FAULT;
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
@@ -94,30 +99,44 @@ io-leds {
sata1-led {
label = "helios4:green:ata1";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <1>;
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
linux,default-trigger = "ata1";
default-state = "off";
};
sata2-led {
label = "helios4:green:ata2";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <2>;
gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "ata2";
default-state = "off";
};
sata3-led {
label = "helios4:green:ata3";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <3>;
gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
linux,default-trigger = "ata3";
default-state = "off";
};
sata4-led {
label = "helios4:green:ata4";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_DISK;
+ function-enumerator = <4>;
gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
linux,default-trigger = "ata4";
default-state = "off";
};
usb-led {
label = "helios4:green:usb";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_USB;
gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usb-host";
default-state = "off";
--
2.56.1
More information about the linux-arm-kernel
mailing list