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>;
119 reg = <0xfd0000 0x10000>;
123 radio: partition@fe0000 {
125 reg = <0xfe0000 0x10000>;
139 compatible = "mediatek,mt76";
140 reg = <0x0000 0 0 0 0>;
141 nvmem-cells = <&macaddr_romfile_f100>;
142 nvmem-cell-names = "mac-address";
143 mediatek,mtd-eeprom = <&radio 0x0>;
144 mtd-mac-address = <&romfile 0xf100>;
145 ieee80211-freq-limit = <2400000 2500000>;
151 compatible = "mediatek,mt76";
152 reg = <0x0000 0 0 0 0>;
153 mediatek,mtd-eeprom = <&radio 0x8000>;
154 ieee80211-freq-limit = <5000000 6000000>;
155 nvmem-cells = <&macaddr_romfile_f100>;
156 nvmem-cell-names = "mac-address";
157 mac-address-increment = <(-1)>;
162 nvmem-cells = <&macaddr_romfile_f100>;
163 nvmem-cell-names = "mac-address";
169 phy-handle = <ðphy4>;
171 nvmem-cells = <&macaddr_romfile_f100>;
172 nvmem-cell-names = "mac-address";
176 ethphy4: ethernet-phy@4 {
200 compatible = "nvmem-cells";
201 #address-cells = <1>;
204 macaddr_romfile_f100: romfile@f100 {