3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "glinet,gl-mt300a", "ralink,mt7620a-soc";
13 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "gl-mt300a:wan";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
25 label = "gl-mt300a:lan";
26 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
30 label = "gl-mt300a:wlan";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
35 label = "gl-mt300a:usb";
36 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys-polled";
46 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
58 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
86 compatible = "jedec,spi-nor";
88 spi-max-frequency = <10000000>;
97 reg = <0x30000 0x10000>;
101 factory: partition@40000 {
103 reg = <0x40000 0x10000>;
109 reg = <0x50000 0xf80000>;
114 reg = <0xff0000 0x10000>;
132 mtd-mac-address = <&factory 0x4000>;
133 mediatek,portmap = "wllll";
137 ralink,mtd-eeprom = <&factory 0>;
141 state_default: pinctrl0 {
143 ralink,group = "wled","ephy","uartf","i2c";
144 ralink,function = "gpio";