ramips: remove DT pcie nodes for GL-MT300A/N
[openwrt/openwrt.git] / target / linux / ramips / dts / GL-MT300A.dts
index 5edb7ca4878eb0657987c9ab65b4140efe793a5d..32e1fe01ad7d63d164ef28ceaa82806a80603f58 100644 (file)
@@ -2,6 +2,8 @@
 
 #include "mt7620a.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
        compatible = "GL-MT300A", "ralink,mt7620a-soc";
        model = "GL-MT300A";
                reset {
                        label = "reset";
                        gpios = <&gpio0 13 1>;
-                       linux,code = <0x198>;
+                       linux,code = <KEY_RESTART>;
                };
 
                BTN_0 {
                        label = "BTN_0";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <BTN_0>;
                };
 
            BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio0 2 1>;
-                       linux,code = <0x101>;
+                       linux,code = <BTN_1>;
                };
        };
 };
        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 {