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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "mercusys,mr70x-v1", "mediatek,mt7621-soc";
11 model = "MERCUSYS MR70X v1";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_orange;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
38 led_power_green: power-green {
39 function = LED_FUNCTION_POWER;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 led_power_orange: power-orange {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_ORANGE>;
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 compatible = "jedec,spi-nor";
58 spi-max-frequency = <25000000>;
61 compatible = "fixed-partitions";
67 reg = <0x000000 0x040000>;
72 compatible = "denx,uimage";
74 reg = <0x040000 0xf60000>;
79 reg = <0xfa0000 0x010000>;
83 compatible = "fixed-layout";
87 macaddr_config_8: macaddr@8 {
88 compatible = "mac-base";
90 #nvmem-cell-cells = <1>;
97 reg = <0xfb0000 0x040000>;
103 reg = <0xff0000 0x010000>;
107 compatible = "fixed-layout";
108 #address-cells = <1>;
111 eeprom_radio_0: eeprom@0 {
126 compatible = "mediatek,mt76";
127 reg = <0x0000 0 0 0 0>;
128 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8 0>;
129 nvmem-cell-names = "eeprom", "mac-address";
130 mediatek,disable-radar-background;
135 nvmem-cells = <&macaddr_config_8 0>;
136 nvmem-cell-names = "mac-address";
142 phy-handle = <ðphy0>;
144 nvmem-cells = <&macaddr_config_8 1>;
145 nvmem-cell-names = "mac-address";
149 ethphy0: ethernet-phy@0 {
175 groups = "i2c", "uart3";