brcm63xx: Livebox 1: use button 1 as failsafe button
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / livebox-blue-5g.dts
index 523bbe985de4991f8ea93badce53b027bbd3793e..cb3b019cb1922c6669fb01158765ba78da1ce07e 100644 (file)
@@ -1,11 +1,17 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Inventel Livebox 1";
        compatible = "inventel,livebox-blue-5g", "brcm,bcm6348";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                debounce-interval = <60>;
 
                button1 {
-                       label = "BTN_1";
+                       label = "1";
                        gpios = <&gpio1 4 1>;
-                       linux,code = <0x101>;
+                       linux,code = <KEY_RESTART>;
                };
 
                button2 {
-                       label = "BTN_2";
+                       label = "2";
                        gpios = <&gpio0 7 1>;
-                       linux,code = <0x102>;
+                       linux,code = <BTN_2>;
                };
        };