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>;
41 compatible = "gpio-keys-polled";
45 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
51 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <10000000>;
88 compatible = "fixed-partitions";
99 reg = <0x30000 0x10000>;
103 factory: partition@40000 {
105 reg = <0x40000 0x10000>;
111 reg = <0x50000 0xf80000>;
116 reg = <0xff0000 0x10000>;
135 mtd-mac-address = <&factory 0x4000>;
136 mediatek,portmap = "wllll";
140 ralink,mtd-eeprom = <&factory 0>;
144 state_default: pinctrl0 {
146 ralink,group = "wled","ephy","uartf","i2c";
147 ralink,function = "gpio";