Skip to content

Commit 3aa64cd

Browse files
committed
riscv: dts: spacemit: add gpio LED for system heartbeat
Leverage GPIO to support system LED to indicate activity of CPUs. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yixun Lan <[email protected]>
1 parent 5933312 commit 3aa64cd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@
1717
chosen {
1818
stdout-path = "serial0";
1919
};
20+
21+
leds {
22+
compatible = "gpio-leds";
23+
24+
led1 {
25+
label = "sys-led";
26+
gpios = <&gpio K1_GPIO(96) GPIO_ACTIVE_HIGH>;
27+
linux,default-trigger = "heartbeat";
28+
default-state = "on";
29+
};
30+
};
2031
};
2132

2233
&uart0 {

0 commit comments

Comments
 (0)