From 6bbca3a09a2add5b0a2cc1743805d24ea6072578 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Wed, 19 Feb 2020 17:03:04 +0100 Subject: kirkwood: set default state for status LEDs in device tree This adds the default-state = "on"; statement for the power or primary status LED in DTS on kirkwood. This will ensure that this LED will be lit up very early in the boot process (i.e. before diag.sh is executed) and thus will provide an additional hint to the user when problems arise during early boot process. Signed-off-by: Adrian Schmutzler --- target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch') diff --git a/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch b/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch index 5e2b1d8d9c..ba2ae7d2de 100644 --- a/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch +++ b/target/linux/kirkwood/patches-4.19/107-02-nsa310b.patch @@ -20,7 +20,7 @@ NOTE: this patch can be upstreamed as-is, LEDE-specific kirkwood-openblocks_a6.dtb \ --- /dev/null +++ b/arch/arm/boot/dts/kirkwood-nsa310b.dts -@@ -0,0 +1,131 @@ +@@ -0,0 +1,132 @@ +/dts-v1/; + +#include "kirkwood-nsa3x0-common.dtsi" @@ -113,6 +113,7 @@ NOTE: this patch can be upstreamed as-is, LEDE-specific + led_green_sys: green-sys { + label = "nsa310:green:sys"; + gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; ++ default-state = "on"; + }; + led_red_sys: red-sys { + label = "nsa310:red:sys"; -- cgit v1.2.3