1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "totolink,a7000r", "mediatek,mt7621-soc";
11 model = "TOTOLINK A7000R";
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
21 bootargs = "console=ttyS0,57600";
25 compatible = "gpio-leds";
28 label = "a7000r:blue:sys";
29 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-keys";
38 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
40 linux,code = <KEY_RESTART>;
49 compatible = "jedec,spi-nor";
51 spi-max-frequency = <40000000>;
54 compatible = "fixed-partitions";
66 reg = <0x30000 0x10000>;
70 factory: partition@40000 {
72 reg = <0x40000 0x10000>;
77 compatible = "denx,uimage";
79 reg = <0x50000 0xfb0000>;
91 compatible = "mediatek,mt76";
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x0000>;
94 ieee80211-freq-limit = <2400000 2500000>;
100 compatible = "mediatek,mt76";
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x8000>;
103 ieee80211-freq-limit = <5000000 6000000>;
108 mtd-mac-address = <&factory 0xe000>;
112 state_default: pinctrl0 {
114 ralink,group = "i2c", "wdt";
115 ralink,function = "gpio";