brcm63xx: register SPI controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / hg553.dts
index 140e2de404c4c814f60fd79cf29d93ee06060a47..cc6b3315117cede2d40427c2a2421e864b1e13ca 100644 (file)
@@ -1,11 +1,37 @@
 /dts-v1/;
 
-/include/ "bcm6358.dtsi"
+#include "bcm6358.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Huawei EchoLife HG553";
        compatible = "huawei,hg553", "brcm,bcm6358";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+               debounce-interval = <60>;
+
+               rfkill {
+                       label = "rfkill";
+                       gpios = <&gpio0 9 1>;
+                       linux,code = <KEY_RFKILL>;
+               };
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio1 5 1>;
+                       linux,code = <KEY_RESTART>;
+               };
+       };
+
        gpio-leds {
                compatible = "gpio-leds";