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 label = "white:power";
46 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
55 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
59 label = "white:signal1";
60 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
64 label = "white:signal2";
65 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 label = "white:signal3";
70 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <80000000>;
94 compatible = "fixed-partitions";
100 reg = <0x00000 0x20000>;
105 compatible = "openwrt,uimage";
106 openwrt,offset = <512>; /* account for the 512-byte long header */
108 reg = <0x20000 0xfa0000>;
111 romfile: partition@fc0000 {
113 reg = <0xfc0000 0x10000>;
117 compatible = "fixed-layout";
118 #address-cells = <1>;
121 macaddr_romfile_f100: romfile@f100 {
122 compatible = "mac-base";
124 #nvmem-cell-cells = <1>;
131 reg = <0xfd0000 0x10000>;
135 radio: partition@fe0000 {
137 reg = <0xfe0000 0x10000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 eeprom_radio_0: eeprom@0 {
149 eeprom_radio_8000: eeprom@8000 {
150 reg = <0x8000 0x4da8>;
165 compatible = "mediatek,mt76";
166 reg = <0x0000 0 0 0 0>;
167 nvmem-cells = <&eeprom_radio_0>, <&macaddr_romfile_f100 0>;
168 nvmem-cell-names = "eeprom", "mac-address";
169 ieee80211-freq-limit = <2400000 2500000>;
175 compatible = "mediatek,mt76";
176 reg = <0x0000 0 0 0 0>;
177 ieee80211-freq-limit = <5000000 6000000>;
178 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_romfile_f100 (-1)>;
179 nvmem-cell-names = "eeprom", "mac-address";
184 nvmem-cells = <&macaddr_romfile_f100 0>;
185 nvmem-cell-names = "mac-address";
191 phy-handle = <ðphy4>;
193 nvmem-cells = <&macaddr_romfile_f100 0>;
194 nvmem-cell-names = "mac-address";
198 ethphy4: ethernet-phy@4 {