ramips: use pinmux nodes from dtsi
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N14U.dts
index 9126f79efcc9c0f265628847d3366abefab7ac11..8ae4580b9b43c6562728cfc709453fafcf445a5d 100644 (file)
@@ -2,6 +2,9 @@
 
 #include "mt7620n.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
        model = "Asus RT-N14U";
 
                wan {
                        label = "rt-n14u:blue:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "rt-n14u:blue:lan";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "rt-n14u:blue:usb";
-                       gpios = <&gpio2 2 1>;
+                       gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        label = "rt-n14u:blue:power";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
 
                air {
                        label = "rt-n14u:blue:air";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
        };
 
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
        };
 };
@@ -70,8 +73,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "jedec,spi-nor";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "w25q128";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {