kernel: mtdsplit: Add support for D-link JBOOT
[openwrt/openwrt.git] / target / linux / ramips / dts / BROADWAY.dts
index 790dcc0467f2664dc10664540ee4fe658e0d4a11..4b6b6ca422c2d5bd8dc3af07af5712cefbb31f9e 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt3050.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "BROADWAY", "ralink,rt3052-soc";
+       compatible = "hauppauge,broadway", "ralink,rt3052-soc";
        model = "Hauppauge Broadway";
 
        cfi@1f000000 {
 
                diskmounted {
                        label = "broadway:red:diskmounted";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                wps_active {
                        label = "broadway:red:wps_active";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -60,8 +63,8 @@
 
                factory {
                        label = "Factory Reset button";
-                       gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };