3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "glinet,gl-mt300n", "ralink,mt7620a-soc";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "gl-mt300n:wan";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
25 label = "gl-mt300n:lan";
26 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
30 label = "gl-mt300n:wlan";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys-polled";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
94 reg = <0x30000 0x10000>;
98 factory: partition@40000 {
100 reg = <0x40000 0x10000>;
106 reg = <0x50000 0xf80000>;
111 reg = <0xff0000 0x10000>;
125 mtd-mac-address = <&factory 0x4000>;
126 mediatek,portmap = "wllll";
130 ralink,mtd-eeprom = <&factory 0>;
134 state_default: pinctrl0 {
136 ralink,group = "wled","ephy","i2c";
137 ralink,function = "gpio";