3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
10 model = "GL-MT300N-V2";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,115200";
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
29 compatible = "gpio-leds";
32 label = "gl-mt300n-v2:green:power";
34 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
38 label = "gl-mt300n-v2:green:wan";
39 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
43 label = "gl-mt300n-v2:red:wlan";
44 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys-polled";
54 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
60 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
72 compatible = "gpio-export";
76 gpio-export,name = "usb";
77 gpio-export,output = <1>;
78 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
84 state_default: pinctrl0 {
86 ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
87 ralink,function = "gpio";
93 mtd-mac-address = <&factory 0x4>;
98 ralink,mtd-eeprom = <&factory 0x0>;
105 compatible = "jedec,spi-nor";
107 spi-max-frequency = <10000000>;
108 m25p,chunked-io = <32>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
122 label = "u-boot-env";
123 reg = <0x30000 0x10000>;
127 factory: partition@40000 {
129 reg = <0x40000 0x10000>;
134 compatible = "denx,uimage";
136 reg = <0x50000 0xfb0000>;