ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7628an_xiaomi_mi-router-4a-100m.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an_xiaomi_mi-router-4.dtsi"
4
5 / {
6 compatible = "xiaomi,mi-router-4a-100m", "mediatek,mt7628an-soc";
7 model = "Xiaomi Mi Router 4A (100M Edition)";
8 };
9
10 &partitions {
11 partition@60000 {
12 label = "overlay";
13 reg = <0x60000 0x100000>;
14 read-only;
15 };
16
17 partition@160000 {
18 label = "firmware";
19 reg = <0x160000 0xea0000>;
20 compatible = "denx,uimage";
21 };
22 };
23
24 &pcie {
25 status = "okay";
26 };
27
28 &pcie0 {
29 wifi@0,0 {
30 compatible = "mediatek,mt76";
31 reg = <0x0000 0 0 0 0>;
32 mediatek,mtd-eeprom = <&factory 0x8000>;
33 ieee80211-freq-limit = <5000000 6000000>;
34 };
35 };
36
37 &ethernet {
38 nvmem-cells = <&macaddr_factory_4>;
39 nvmem-cell-names = "mac-address";
40 mac-address-increment = <(-1)>;
41 };
42
43 &esw {
44 mediatek,portmap = <0x3e>;
45 mediatek,portdisable = <0x2a>;
46 };
47
48 &factory {
49 compatible = "nvmem-cells";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 macaddr_factory_4: macaddr@4 {
54 reg = <0x4 0x6>;
55 };
56 };