ramips: use pinmux nodes from dtsi
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-APE522II.dts
index eff27c2a1590373b592786f9d21e2855f6791f76..05d053f22a2a50db65bbb821432289dfd073015f 100644 (file)
@@ -2,6 +2,9 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
        model = "ZBT-APE522II";
 
                sys1 {
                        label = "zbt-ape522ii:green:sys1";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                sys2 {
                        label = "zbt-ape522ii:green:sys2";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                sys3 {
                        label = "zbt-ape522ii:green:sys3";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                sys4 {
                        label = "zbt-ape522ii:green:sys4";
-                       gpios = <&gpio0 14 1>;
+                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g4 {
                        label = "zbt-ape522ii:green:wlan2g4";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
@@ -47,8 +50,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 2 0>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 };
@@ -77,7 +80,6 @@
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "w25q64";
                spi-max-frequency = <10000000>;
 
                partition@0 {
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
 };
 
 &pcie {
                        reg = <0x0000 0 0 0 0>;
                        device_type = "pci";
                        mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
+                       ieee80211-freq-limit = <5000000 6000000>;
                };
        };
 };
                        ralink,group = "wled", "i2c", "uartf", "wdt";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };