brcm63xx: fix HG556a C button
[openwrt/staging/yousong.git] / target / linux / brcm63xx / dts / hg556a-c.dts
index 4c845edd4a9048aed272eac61ca029ca76099e1c..ada2a8ca0c2efb2674c936f1edeada5246588cf2 100644 (file)
@@ -1,11 +1,17 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG556a (version C)";
        compatible = "huawei,hg556a-c", "brcm,bcm6358";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
 
                help {
                        label = "help";
-                       gpios = <&gpio0 8 1>;
-                       linux,code = <0x8a>;
+                       gpios = <&gpio1 4 1>;
+                       linux,code = <KEY_HELP>;
                };
                wlan {
                        label = "wlan";
                        gpios = <&gpio0 9 1>;
-                       linux,code = <0xee>;
+                       linux,code = <KEY_WLAN>;
                };
                restart {
                        label = "restart";
                        gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
                reset {
                        label = "reset";
                        gpios = <&gpio0 11 1>;
-                       linux,code = <0xab>;
+                       linux,code = <KEY_CONFIG>;
                };
        };