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-status = &led_power;
17 bootargs = "console=ttyS0,115200";
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
26 compatible = "gpio-leds";
29 label = "gl-mt300n-v2:green:power";
31 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
35 label = "gl-mt300n-v2:blue:wan";
36 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
40 label = "gl-mt300n-v2:red:wlan";
41 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys-polled";
51 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-export";
73 gpio-export,name = "usb";
74 gpio-export,output = <1>;
75 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
82 state_default: pinctrl0 {
84 ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
85 ralink,function = "gpio";
91 mtd-mac-address = <&factory 0x4>;
96 ralink,mtd-eeprom = <&factory 0x0>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
106 m25p,chunked-io = <32>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
120 label = "u-boot-env";
121 reg = <0x30000 0x10000>;
125 factory: partition@40000 {
127 reg = <0x40000 0x10000>;
133 reg = <0x50000 0xfb0000>;