ramips: cleanup SPI flash device tree properties usage
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / GL-MT300N.dts
index 6a3600acb287f432690c8d2f732127b823d7fd53..be78a72b50356d70f579a38977a1d116eda05e41 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT300N", "ralink,mt7620a-soc";
        model = "GL-MT300N";
                reset {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio2 2 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio2 3 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
@@ -77,9 +79,8 @@
        m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "w25q128";
-               reg = <0 0>;
-               linux,modalias = "m25p80", "w25q128";
+               compatible = "jedec,spi-nor";
+               reg = <0>;
                spi-max-frequency = <10000000>;
 
                partition@0 {
        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 {