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 device_type = "memory";
22 reg = <0x0 0x8000000>;
26 bootargs = "console=ttyS0,57600";
30 compatible = "gpio-leds";
33 label = "a7000r:blue:sys";
34 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 linux,code = <KEY_RESTART>;
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <40000000>;
59 compatible = "fixed-partitions";
71 reg = <0x30000 0x10000>;
75 factory: partition@40000 {
77 reg = <0x40000 0x10000>;
82 compatible = "denx,uimage";
84 reg = <0x50000 0xfb0000>;
96 compatible = "mediatek,mt76";
97 reg = <0x0000 0 0 0 0>;
98 mediatek,mtd-eeprom = <&factory 0x0000>;
99 ieee80211-freq-limit = <2400000 2500000>;
105 compatible = "mediatek,mt76";
106 reg = <0x0000 0 0 0 0>;
107 mediatek,mtd-eeprom = <&factory 0x8000>;
108 ieee80211-freq-limit = <5000000 6000000>;
113 mtd-mac-address = <&factory 0xe000>;
117 state_default: pinctrl0 {
119 ralink,group = "i2c", "wdt";
120 ralink,function = "gpio";