Skip to content

Commit 5e9e7f1

Browse files
committed
riscv: dts: starfive: jh7110-pine64-star64: add LED node
Signed-off-by: MichaIng <micha@dietpi.com>
1 parent f82cdcc commit 5e9e7f1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,26 @@
55

66
/dts-v1/;
77
#include "jh7110-common.dtsi"
8+
#include <dt-bindings/leds/common.h>
89

910
/ {
1011
model = "Pine64 Star64";
1112
compatible = "pine64,star64", "starfive,jh7110";
1213
aliases {
1314
ethernet1 = &gmac1;
1415
};
16+
17+
leds {
18+
compatible = "gpio-leds";
19+
20+
led-blue {
21+
color = <LED_COLOR_ID_BLUE>;
22+
function = LED_FUNCTION_HEARTBEAT;
23+
gpios = <&aongpio 3 GPIO_ACTIVE_HIGH>;
24+
label = "blue-led";
25+
linux,default-trigger = "heartbeat";
26+
};
27+
};
1528
};
1629

1730
&gmac0 {

0 commit comments

Comments
 (0)