ramips: fix dtc warnings
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / GL-MT300N.dts
index c6feb96f89c2d62dc8819818250e1b24b33ad48d..5dad8f845e2252385466d99cb8eb774050e87d25 100644 (file)
@@ -2,10 +2,11 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
 / {
-       compatible = "GL-MT300N", "ralink,mt7620a-soc";
+       compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc";
        model = "GL-MT300N";
 
        chosen {
 
                wan {
                        label = "gl-mt300n:wan";
-                       gpios = <&gpio2 0 1>;
+                       gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
                        label = "gl-mt300n:lan";
-                       gpios = <&gpio2 1 1>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
                        label = "gl-mt300n:wlan";
-                       gpios = <&gpio3 0 1>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
        };
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
-                       gpios = <&gpio2 2 1>;
+                       gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
-                       gpios = <&gpio2 3 1>;
+                       gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
                };
        };
@@ -79,9 +78,8 @@
        m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "w25q128";
+               compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "w25q128";
                spi-max-frequency = <10000000>;
 
                partition@0 {
 
 &ethernet {
        mtd-mac-address = <&factory 0x4000>;
-       ralink,port-map = "wllll";
+       mediatek,portmap = "wllll";
 };
 
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
 };
 
-&pcie {
-       status = "okay";
-
-       pcie-bridge {
-               mt76@0,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&factory 0x8000>;
-                       mediatek,2ghz = <0>;
-               };
-       };
-};
-
 &pinctrl {
        state_default: pinctrl0 {
                gpio {