All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rosen Penev <rosenp@gmail.com>
To: devicetree@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>,
	Gregory Clement <gregory.clement@bootlin.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Dennis Gilmore <dennis@ausil.us>,
	linux-arm-kernel@lists.infradead.org (moderated list:ARM/Marvell
	Kirkwood and Armada 370, 375, 38x,...)
Subject: [PATCH 7/7] ARM: dts: helios4: describe LED color and function
Date: Wed, 25 Nov 2026 18:38:56 -0800	[thread overview]
Message-ID: <20261126023856.767961-8-rosenp@gmail.com> (raw)
In-Reply-To: <20261126023856.767961-1-rosenp@gmail.com>

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@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


  parent reply	other threads:[~2026-11-26  2:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  2:38 [PATCH 0/7] ARM: dts: helios4: fixes and cleanups Rosen Penev
2026-11-26  2:38 ` [PATCH 1/7] ARM: dts: helios4: fix board revision GPIO polarity Rosen Penev
2026-11-26  2:38 ` [PATCH 2/7] ARM: dts: helios4: use a level interrupt for the GPIO expander Rosen Penev
2026-11-26  2:38 ` [PATCH 3/7] ARM: dts: helios4: drop the unconnected EHCI controller Rosen Penev
2026-11-26  2:38 ` [PATCH 4/7] ARM: dts: helios4: describe the fan tachometer inputs Rosen Penev
2026-11-26  2:38 ` [PATCH 5/7] ARM: dts: helios4: use disable-wp for the microSD slot Rosen Penev
2026-11-26  2:38 ` [PATCH 6/7] ARM: dts: helios4: use hyphens in fan pinctrl node names Rosen Penev
2026-11-27 15:47   ` Gregory CLEMENT
2026-11-26  2:38 ` Rosen Penev [this message]
2026-11-27 15:49 ` [PATCH 0/7] ARM: dts: helios4: fixes and cleanups Gregory CLEMENT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126023856.767961-8-rosenp@gmail.com \
    --to=rosenp@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=dennis@ausil.us \
    --cc=devicetree@vger.kernel.org \
    --cc=gregory.clement@bootlin.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh@kernel.org \
    --cc=sebastian.hesselbarth@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.