3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc";
10 model = "GL-MT300N-V2";
13 bootargs = "console=ttyS0,115200";
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
22 compatible = "gpio-leds";
25 label = "gl-mt300n-v2:green:power";
27 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
31 label = "gl-mt300n-v2:blue:wan";
32 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
36 label = "gl-mt300n-v2:red:wlan";
37 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys-polled";
49 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
55 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-export";
71 gpio-export,name = "usb";
72 gpio-export,output = <1>;
73 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
80 state_default: pinctrl0 {
82 ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
83 ralink,function = "gpio";
89 mtd-mac-address = <&factory 0x4>;
94 ralink,mtd-eeprom = <&factory 0x0>;
101 #address-cells = <1>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
106 m25p,chunked-io = <32>;
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
120 factory: partition@40000 {
122 reg = <0x40000 0x10000>;
128 reg = <0x50000 0xfb0000>;