#include "mt7620a.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
/ {
+ compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
+
chosen {
bootargs = "console=ttyS0,115200";
};
reset {
label = "reset";
- gpios = <&gpio0 11 1>;
- linux,code = <0x198>;
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
};
};
#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 {
reg = <0x0000 0 0 0 0>;
device_type = "pci";
mediatek,mtd-eeprom = <&factory 0x8000>;
- mediatek,2ghz = <0>;
+ ieee80211-freq-limit = <5000000 6000000>;
};
};
};
&wmac {
ralink,mtd-eeprom = <&factory 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pa_pins>;
};
&pinctrl {
- state_default {
+ state_default: pinctrl0 {
gpio {
ralink,group = "uartf", "wled", "nd_sd";
ralink,function = "gpio";
};
-
- pa {
- ralink,group = "pa";
- ralink,function = "pa";
- };
};
};