#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 {