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 label-mac-device = &wmac;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "gl-mt300a:wan";
25 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
29 label = "gl-mt300a:lan";
30 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
34 label = "gl-mt300a:wlan";
35 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
39 label = "gl-mt300a:usb";
40 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys-polled";
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
55 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <10000000>;
92 compatible = "fixed-partitions";
102 label = "u-boot-env";
103 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
109 reg = <0x40000 0x10000>;
114 compatible = "denx,uimage";
116 reg = <0x50000 0xf80000>;
121 reg = <0xff0000 0x10000>;
140 mtd-mac-address = <&factory 0x4000>;
141 mediatek,portmap = "wllll";
145 ralink,mtd-eeprom = <&factory 0>;
149 state_default: pinctrl0 {
151 ralink,group = "wled","ephy","uartf","i2c";
152 ralink,function = "gpio";