From 0494f98df507f2191a8f0c8f5aeae8e620f5a44d Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 7 May 2021 15:34:15 +0200 Subject: [PATCH] riscv: dts: starfive: jh7100-starlight: Add ack LED Add a device node for the LED labeled "ack", and use it as a heartbeat. Signed-off-by: Geert Uytterhoeven --- arch/riscv/boot/dts/starfive/jh7100-starlight.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100-starlight.dts b/arch/riscv/boot/dts/starfive/jh7100-starlight.dts index c19220961de67b..43c4a1f11e5c4e 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-starlight.dts +++ b/arch/riscv/boot/dts/starfive/jh7100-starlight.dts @@ -2,6 +2,7 @@ #include "jh7100.dtsi" #include #include +#include / { #address-cells = <2>; @@ -21,6 +22,18 @@ cpus { timebase-frequency = <6250000>; }; + + leds { + compatible = "gpio-leds"; + + led-ack { + gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + linux,default-trigger = "heartbeat"; + label = "ack"; + }; + }; }; &uart0 {