ramips: add support for ALFA Network AC1200RM
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MZK-DP150N.dts
index c34ecb124103482d2149a2c0e51c67f6b898b09c..6e5d9c18044aa5f6bf689c7c842d7eac4c59f294 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "MZK-DP150N", "ralink,rt5350-soc";
+       compatible = "planex,mzk-dp150n", "ralink,rt5350-soc";
        model = "Planex MZK-DP150N";
 
        gpio-leds {
@@ -11,7 +14,7 @@
 
                power {
                        label = "mzk-dp150n:green:power";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -23,8 +26,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -40,8 +43,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "s25fl064k";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {
                        reg = <0x50000 0x3b0000>;
                };
        };
+};
 
-       spidev@1 {
+&spi1 {
+       spidev@0 {
                compatible = "linux,spidev";
                spi-max-frequency = <10000000>;
-               reg = <0>;
+               reg = <0>;
        };
 };