ramips: Fix GB-PC1 cpuclock again
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MZK-750DHP.dts
index 849c02ccf53e41548cd62f77af96cefe0e0639b2..f9f02550cae4d20274ce721a04660cfda5649971 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc";
        model = "Planex MZK-750DHP";
 
        gpio-leds {
 
                wps {
                        label = "mzk-750dhp:green:wps";
-                       gpios = <&gpio2 15 1>;
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "mzk-750dhp:green:power";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wlan5g {
                        label = "mzk-750dhp:green:wlan5g";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                s1 {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                s2 {
                        label = "wps";
-                       gpios = <&gpio2 19 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
@@ -60,8 +63,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "mx25l6405d";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
                };
        };
 };