ramips: fix Linkit smart 7688 support
[openwrt/openwrt.git] / target / linux / ramips / dts / LINKIT7688.dts
index ac8b0352b4fe899b3170a0ee1ea801c69b42fb94..a81a2d5a4c581eb518989e83a271352b9d43afe7 100644 (file)
@@ -2,8 +2,11 @@
 
 #include "mt7628an.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
-       compatible = "mediatek,linkit", "mediatek,mt7628an-soc";
+       compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc";
        model = "MediaTek LinkIt Smart 7688";
 
        chosen {
@@ -29,9 +32,8 @@
                compatible = "gpio-leds";
 
                wifi {
-                       label = "mediatek:orange:wifi";
-                       gpios = <&wgpio 0 0>;
-                       default-state = "on";
+                       label = "linkit-smart-7688:orange:wifi";
+                       gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                wps {
                        label = "reset";
-                       gpios = <&gpio1 6 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
-
-       wgpio: gpio-wifi {
-               compatible = "mediatek,gpio-wifi";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               gpio-controller;
-               #gpio-cells = <2>;
-       };
 };
 
 &pinctrl {
                        ralink,function = "gpio";
                };
 
-               perst {
-                       ralink,group = "perst";
-                       ralink,function = "gpio";
-               };
-
                refclk {
                        ralink,group = "refclk";
                        ralink,function = "gpio";
                        ralink,function = "gpio";
                };
 
-               wled_kn {
-                       ralink,group = "wled_kn";
-                       ralink,function = "gpio";
-               };
-
                wled_an {
                        ralink,group = "wled_an";
-                       ralink,function = "wled_an";
+                       ralink,function = "gpio";
                };
 
                wdt {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "mx25l25635e";
+               reg = <0>;
                spi-max-frequency = <40000000>;
                m25p,chunked-io = <31>;
 
        spidev@1 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spidev";
-               reg = <1 0>;
+               compatible = "linux,spidev";
+               reg = <1>;
                spi-max-frequency = <40000000>;
        };
 };