Skip to content

Commit 334e64a

Browse files
aurel32Yixun Lan
authored andcommitted
riscv: dts: spacemit: add LEDs for Milk-V Jupiter board
The Milk-V Jupiter board provides support for two LEDs through the front panel header. The "Power LED" indicates the system is running, and the "HDD LED" shows disk activity. Configure the corresponding LED triggers accordingly. Caveats: - The LEDs are driven through a 4.7k series resistor, making them quite faint. - The disk activity trigger requires a storage controller on the M.2 or PCIe interface. That said, it matches the purpose and the vendor kernel. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Yixun Lan <dlan@kernel.org> Link: https://lore.kernel.org/r/20260326183745.1370642-2-aurelien@aurel32.net Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent 74657a3 commit 334e64a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@
2121
stdout-path = "serial0";
2222
};
2323

24+
leds {
25+
compatible = "gpio-leds";
26+
27+
led1 {
28+
label = "pwr-led";
29+
gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
30+
linux,default-trigger = "default-on";
31+
default-state = "on";
32+
};
33+
34+
led2 {
35+
label = "hdd-led";
36+
gpios = <&gpio K1_GPIO(92) GPIO_ACTIVE_HIGH>;
37+
linux,default-trigger = "disk-activity";
38+
};
39+
};
40+
2441
reg_dc_in: regulator-dc-in-12v {
2542
compatible = "regulator-fixed";
2643
regulator-name = "dc_in_12v";

0 commit comments

Comments
 (0)