ramips: fix mt7628 eval board pinmux
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / 3G150B.dts
index 3d348ff0f35a74a6f4ee20a747813d9f880b025f..afe9fafe9bea385769a43acadbbb93e980824c1c 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "rt5350.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "3G150B", "ralink,rt5350-soc";
+       compatible = "tenda,3g150b", "ralink,rt5350-soc";
        model = "Tenda 3G150B";
 
        gpio-leds {
 
                ap {
                        label = "3g150b:blue:ap";
-                       gpios = <&gpio0 7 1>;
+                       gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
                3g {
                        label = "3g150b:blue:3g";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -28,8 +31,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 0 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
@@ -40,7 +43,7 @@
                usb {
                        gpio-export,name = "usb";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 13 0>;
+                       gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
        };
 };
@@ -53,7 +56,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "s25fl064k";
                spi-max-frequency = <10000000>;
 
                partition@0 {