Devicetree
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: Add the front panel LEDs to Kobol Helios64
@ 2026-10-09  0:40 Igor Velkov via B4 Relay
  2026-10-09  0:44 ` sashiko-bot
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-10-09  0:40 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel, Igor Velkov

From: Igor Velkov <iav@iav.lv>

Besides the system LEDs, the front panel of Helios64 has a network, a
USB and five SATA error LEDs. Each is switched by a MOSFET from a GPIO,
active high: NETW_ACT_LED_ON on GPIO0_A4, USB3_ACT_LED_ON on GPIO0_B3
and SATA_ERR0 to SATA_ERR4 on GPIO2_A2 to GPIO2_A6. The Kobol wiki
gives the colours: activity LEDs are blue, error LEDs are red.

Describe them next to the system LEDs. The panel labels the disks
HDD 1 to HDD 5, so the error LEDs are numbered from 1.

Assisted-by: LLM
Signed-off-by: Igor Velkov <iav@iav.lv>
---
Schematic, sheets 29, 30 and 35:
https://wiki.kobol.io/helios64/files/schematics/Helios64_Schematics_Rev1.2.pdf
Front panel LED colours:
https://wiki.kobol.io/helios64/front-panel/
---
 .../boot/dts/rockchip/rk3399-kobol-helios64.dts    | 78 +++++++++++++++++++++-
 1 file changed, 77 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index d146e5075b4f..25f0ba5a47ac 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -12,6 +12,7 @@
 
 /dts-v1/;
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include "rk3399.dtsi"
 
 / {
@@ -107,7 +108,8 @@ button-user1 {
 	leds {
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
-		pinctrl-0 = <&sys_grn_led_on &sys_red_led_on>;
+		pinctrl-0 = <&sys_grn_led_on &sys_red_led_on &netw_act_led_on
+			     &usb3_act_led_on &sata_err_led_on &sata_act_led>;
 
 		led-0 {
 			label = "helios64:green:status";
@@ -120,6 +122,60 @@ led-1 {
 			gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
 			default-state = "keep";
 		};
+
+		led-2 {
+			color = <LED_COLOR_ID_BLUE>;
+			function = LED_FUNCTION_LAN;
+			gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-3 {
+			color = <LED_COLOR_ID_BLUE>;
+			function = LED_FUNCTION_USB;
+			gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-4 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ERR;
+			function-enumerator = <1>;
+			gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-5 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ERR;
+			function-enumerator = <2>;
+			gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-6 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ERR;
+			function-enumerator = <3>;
+			gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-7 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ERR;
+			function-enumerator = <4>;
+			gpios = <&gpio2 RK_PA5 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-8 {
+			color = <LED_COLOR_ID_RED>;
+			function = LED_FUNCTION_DISK_ERR;
+			function-enumerator = <5>;
+			gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-9 {
+			color = <LED_COLOR_ID_BLUE>;
+			function = LED_FUNCTION_DISK_ACTIVITY;
+			gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
+		};
 	};
 
 	hdd_a_power: regulator-hdd-a-power {
@@ -500,6 +556,22 @@ gphy_reset: gphy-reset {
 	};
 
 	leds {
+		netw_act_led_on: netw-act-led-on {
+			rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+
+		sata_act_led: sata-act-led {
+			rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+
+		sata_err_led_on: sata-err-led-on {
+			rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_down>,
+					<2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_down>,
+					<2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>,
+					<2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>,
+					<2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+
 		sys_grn_led_on: sys-grn-led-on {
 			rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
 		};
@@ -507,6 +579,10 @@ sys_grn_led_on: sys-grn-led-on {
 		sys_red_led_on: sys-red-led-on {
 			rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
 		};
+
+		usb3_act_led_on: usb3-act-led-on {
+			rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
 	};
 
 	pcie {

---
base-commit: 36b190eca882ecd39b5354f7ee995f939dc6d885
change-id: 20261009-helios64-leds-62585aa5e062

Best regards,
-- 
Igor Velkov <iav@iav.lv>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: Add the front panel LEDs to Kobol Helios64
  2026-10-09  0:40 [PATCH] arm64: dts: rockchip: Add the front panel LEDs to Kobol Helios64 Igor Velkov via B4 Relay
@ 2026-10-09  0:44 ` sashiko-bot
  2026-10-09  0:52   ` Igor Velkov
  0 siblings, 1 reply; 3+ messages in thread
From: sashiko-bot @ 2026-10-09  0:44 UTC (permalink / raw)
  To: Igor Velkov; +Cc: robh, conor+dt, devicetree

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: undocumented SATA activity led-9 addition
--

commit 3279f02d863433a09e5dbd918d375fd5550e3671
Author: Igor Velkov <iav@iav.lv>

arm64: dts: rockchip: Add the front panel LEDs to Kobol Helios64

This commit adds definitions for the front panel LEDs to the Kobol Helios64
device tree. It maps the network, USB, and five SATA error LEDs to their
respective GPIO pins based on the hardware schematic.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
> index d146e5075b4f8..25f0ba5a47ac6 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts

[ ... ]

> @@ -120,6 +122,60 @@ led-1 {

[ ... ]

> +		led-8 {
> +			color = <LED_COLOR_ID_RED>;
> +			function = LED_FUNCTION_DISK_ERR;
> +			function-enumerator = <5>;
> +			gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>;
> +		};
> +
> +		led-9 {
> +			color = <LED_COLOR_ID_BLUE>;
> +			function = LED_FUNCTION_DISK_ACTIVITY;
> +			gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
> +			default-state = "on";
> +		};
>  	};

[Severity: Medium]
The commit message lists a total of 7 LEDs being added (one network, one USB,
and five SATA error LEDs). However, this code block adds an 8th LED for SATA
activity on gpio4 RK_PD4.

Was this SATA activity LED intended to be included in this patch, and if so,
could the commit message be updated to mention it?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261009-helios64-leds-v1-1-6c58a66bf0c6@iav.lv?part=1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: rockchip: Add the front panel LEDs to Kobol Helios64
  2026-10-09  0:44 ` sashiko-bot
@ 2026-10-09  0:52   ` Igor Velkov
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Velkov @ 2026-10-09  0:52 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	linux-arm-kernel, linux-rockchip, linux-kernel, sashiko-reviews,
	Igor Velkov

On Fri, Oct 09, 2026 at 00:44 UTC, sashiko-bot@kernel.org wrote:
> The commit message lists a total of 7 LEDs being added (one network, one USB,
> and five SATA error LEDs). However, this code block adds an 8th LED for SATA
> activity on gpio4 RK_PD4.
>
> Was this SATA activity LED intended to be included in this patch, and if so,
> could the commit message be updated to mention it?

Yes, it was. The eighth one is LED5 on the board, "HDD Activity" in the
Kobol wiki [1]; the panel has no such LED. GPIO4_D4 only gates it: the
JMB585 activity outputs light it, and a low GPIO keeps it dark
(schematic, sheet 30). Hence default-state = "on".

[1] https://wiki.kobol.io/helios64/led/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-09  0:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09  0:40 [PATCH] arm64: dts: rockchip: Add the front panel LEDs to Kobol Helios64 Igor Velkov via B4 Relay
2026-10-09  0:44 ` sashiko-bot
2026-10-09  0:52   ` Igor Velkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox