Skip to content

Commit

Permalink
riscv: dts: starfive: jh7100-starlight: Add ack LED
Browse files Browse the repository at this point in the history
Add a device node for the LED labeled "ack", and use it as a heartbeat.

Signed-off-by: Geert Uytterhoeven <[email protected]>
  • Loading branch information
geertu committed May 7, 2021
1 parent d175ad9 commit 0494f98
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/riscv/boot/dts/starfive/jh7100-starlight.dts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "jh7100.dtsi"
#include <dt-bindings/starfive_fb.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>

/ {
#address-cells = <2>;
Expand All @@ -21,6 +22,18 @@
cpus {
timebase-frequency = <6250000>;
};

leds {
compatible = "gpio-leds";

led-ack {
gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_HEARTBEAT;
linux,default-trigger = "heartbeat";
label = "ack";
};
};
};

&uart0 {
Expand Down

0 comments on commit 0494f98

Please sign in to comment.