]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
dts: nanaopi r2s: change default trigger and button
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 8 Oct 2021 09:56:46 +0000 (11:56 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 27 Oct 2021 15:42:01 +0000 (17:42 +0200)
button now can shutdown IPfire without other changes and the red led blinks after kernel boot

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts

index 3f5f1c651ac588726eceebec0ed939b00868468d..9a7785f0c306bbfce3d9f37177fa4e40419eed41 100644 (file)
@@ -37,7 +37,7 @@
                reset {
                        label = "reset";
                        gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
-                       linux,code = <KEY_RESTART>;
+                       linux,code = <KEY_POWER>;
                        debounce-interval = <50>;
                };
        };
@@ -55,6 +55,7 @@
                sys_led: led-1 {
                        gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
                        label = "nanopi-r2s:red:sys";
+                       linux,default-trigger = "heartbeat";
                };
 
                wan_led: led-2 {