1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
9 model = "GL-MT300N-V2";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = ðernet;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 function = LED_FUNCTION_POWER;
28 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
34 function = LED_FUNCTION_WAN;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
40 function = LED_FUNCTION_WLAN;
41 color = <LED_COLOR_ID_RED>;
42 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
47 compatible = "gpio-keys";
51 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
63 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-export";
73 gpio-export,name = "usb";
74 gpio-export,output = <1>;
75 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
82 groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c";
88 nvmem-cells = <&macaddr_factory_4>;
89 nvmem-cell-names = "mac-address";
95 nvmem-cells = <&eeprom_factory_0>;
96 nvmem-cell-names = "eeprom";
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <10000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
119 label = "u-boot-env";
120 reg = <0x30000 0x10000>;
126 reg = <0x40000 0x10000>;
130 compatible = "fixed-layout";
131 #address-cells = <1>;
134 eeprom_factory_0: eeprom@0 {
138 macaddr_factory_4: macaddr@4 {
145 compatible = "denx,uimage";
147 reg = <0x50000 0xfb0000>;