ramips: mt7620a: use mac-base
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_xiaomi_mi-router-4a-gigabit-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_xiaomi_mi-router-4a-common.dtsi"
4
5 / {
6 compatible = "xiaomi,mi-router-4a-gigabit-v2", "mediatek,mt7621-soc";
7 model = "Xiaomi Mi Router 4A Gigabit Edition v2";
8
9 aliases {
10 label-mac-device = &wan;
11 };
12
13 leds {
14 compatible = "gpio-leds";
15
16 led_status_blue: status_blue {
17 label = "blue:status";
18 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
19 };
20
21 led_status_yellow: status_yellow {
22 label = "yellow:status";
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 };
25
26 wan_blue {
27 label = "blue:wan";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 };
30
31 wan_yellow {
32 label = "yellow:wan";
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 };
35 };
36 };
37
38 &partitions {
39 partition@180000 {
40 // size changed against to the common dtsi
41 reg = <0x180000 0xe70000>;
42 };
43
44 partition@ff0000 {
45 label = "Config";
46 reg = <0xff0000 0x10000>;
47 read-only;
48 };
49 };
50
51 &wifi0 {
52 mediatek,mtd-eeprom = <&factory 0x0000>;
53 ieee80211-freq-limit = <2400000 2500000>;
54 };
55
56 &wifi1 {
57 mediatek,mtd-eeprom = <&factory 0x8000>;
58 ieee80211-freq-limit = <5000000 6000000>;
59 };
60
61 &switch0 {
62 ports {
63 port@1 {
64 status = "okay";
65 label = "lan1";
66 };
67
68 port@2 {
69 status = "okay";
70 label = "lan2";
71 };
72
73 wan: port@3 {
74 status = "okay";
75 label = "wan";
76 nvmem-cells = <&macaddr_factory_e006>;
77 nvmem-cell-names = "mac-address";
78 };
79 };
80 };