ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_elecom_wrc-gs-2pci.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621_elecom_wrc-gs.dtsi"
4
5 &gmac0 {
6 nvmem-cells = <&macaddr_factory_e000>;
7 nvmem-cell-names = "mac-address";
8 };
9
10 &wan {
11 nvmem-cells = <&macaddr_factory_e006>;
12 nvmem-cell-names = "mac-address";
13 };
14
15 &state_default {
16 gpio {
17 groups = "uart3", "jtag", "wdt", "sdhci";
18 function = "gpio";
19 };
20 };
21
22 &pcie0 {
23 wifi@0,0 {
24 compatible = "mediatek,mt76";
25 reg = <0x0000 0 0 0 0>;
26 mediatek,mtd-eeprom = <&factory 0x0000>;
27 ieee80211-freq-limit = <2400000 2500000>;
28
29 led {
30 led-sources = <0>;
31 led-active-low;
32 };
33 };
34 };
35
36 &pcie1 {
37 wifi@0,0 {
38 compatible = "mediatek,mt76";
39 reg = <0x0000 0 0 0 0>;
40 mediatek,mtd-eeprom = <&factory 0x8000>;
41 ieee80211-freq-limit = <5000000 6000000>;
42
43 led {
44 led-sources = <0>;
45 led-active-low;
46 };
47 };
48 };
49
50 &factory {
51 compatible = "nvmem-cells";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 macaddr_factory_e000: macaddr@e000 {
56 reg = <0xe000 0x6>;
57 };
58
59 macaddr_factory_e006: macaddr@e006 {
60 reg = <0xe006 0x6>;
61 };
62 };