1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,mr600-v2-eu", "mediatek,mt7621-soc";
11 model = "TP-Link MR600 v2 (EU)";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WLAN>;
36 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_WHITE>;
47 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
50 function = LED_FUNCTION_WLAN;
51 color = <LED_COLOR_ID_WHITE>;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_WHITE>;
58 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
62 label = "white:signal1";
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
67 label = "white:signal2";
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 label = "white:signal3";
73 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
78 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
81 function = LED_FUNCTION_LAN;
82 color = <LED_COLOR_ID_WHITE>;
83 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <80000000>;
98 compatible = "fixed-partitions";
104 reg = <0x00000 0x20000>;
109 compatible = "openwrt,uimage";
110 openwrt,offset = <512>; /* account for the 512-byte long header */
112 reg = <0x20000 0xfa0000>;
117 reg = <0xfc0000 0x10000>;
121 compatible = "fixed-layout";
122 #address-cells = <1>;
125 macaddr_romfile_f100: romfile@f100 {
126 compatible = "mac-base";
128 #nvmem-cell-cells = <1>;
135 reg = <0xfd0000 0x10000>;
141 reg = <0xfe0000 0x10000>;
145 compatible = "fixed-layout";
146 #address-cells = <1>;
149 eeprom_radio_0: eeprom@0 {
153 eeprom_radio_8000: eeprom@8000 {
154 reg = <0x8000 0x4da8>;
169 compatible = "mediatek,mt76";
170 reg = <0x0000 0 0 0 0>;
171 nvmem-cells = <&eeprom_radio_0>, <&macaddr_romfile_f100 0>;
172 nvmem-cell-names = "eeprom", "mac-address";
173 ieee80211-freq-limit = <2400000 2500000>;
179 compatible = "mediatek,mt76";
180 reg = <0x0000 0 0 0 0>;
181 ieee80211-freq-limit = <5000000 6000000>;
182 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_romfile_f100 (-1)>;
183 nvmem-cell-names = "eeprom", "mac-address";
188 nvmem-cells = <&macaddr_romfile_f100 0>;
189 nvmem-cell-names = "mac-address";
195 phy-handle = <ðphy4>;
197 nvmem-cells = <&macaddr_romfile_f100 0>;
198 nvmem-cell-names = "mac-address";
202 ethphy4: ethernet-phy@4 {