1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "glinet,gl-mt1300", "mediatek,mt7621-soc";
10 model = "GL.iNet GL-MT1300";
14 led-failsafe = &led_run;
15 led-running = &led_run;
16 led-upgrade = &led_run;
17 label-mac-device = &wan;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 linux,input-type = <EV_SW>;
42 compatible = "gpio-leds";
46 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
50 label = "white:system";
51 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <80000000>;
75 compatible = "fixed-partitions";
87 reg = <0x30000 0x10000>;
91 factory: partition@40000 {
93 reg = <0x40000 0x10000>;
98 compatible = "denx,uimage";
100 reg = <0x50000 0x1fb0000>;
112 compatible = "mediatek,mt76";
113 reg = <0x0000 0 0 0 0>;
114 mediatek,mtd-eeprom = <&factory 0x0>;
119 nvmem-cells = <&macaddr_factory_4000>;
120 nvmem-cell-names = "mac-address";
121 mac-address-increment = <1>;
139 nvmem-cells = <&macaddr_factory_4000>;
140 nvmem-cell-names = "mac-address";
151 group = "wdt", "jtag";
157 compatible = "nvmem-cells";
158 #address-cells = <1>;
161 macaddr_factory_4000: macaddr@4000 {