ramips: set Netgear R6220 MAC NVMEM cell directly in the part node
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_elecom_wrc-1900gst.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621_elecom_wrc-gs-2pci.dtsi"
4
5 / {
6 compatible = "elecom,wrc-1900gst", "mediatek,mt7621-soc";
7 model = "ELECOM WRC-1900GST";
8 };
9
10 &partitions {
11 partition@50000 {
12 compatible = "denx,uimage";
13 label = "firmware";
14 reg = <0x50000 0xb00000>;
15 };
16
17 partition@b50000 {
18 label = "tm_pattern";
19 reg = <0xb50000 0x380000>;
20 read-only;
21 };
22
23 partition@ed0000 {
24 label = "tm_key";
25 reg = <0xed0000 0x80000>;
26 read-only;
27 };
28
29 partition@f50000 {
30 label = "art_block";
31 reg = <0xf50000 0x30000>;
32 read-only;
33 };
34
35 partition@f80000 {
36 label = "user_data";
37 reg = <0xf80000 0x80000>;
38 read-only;
39 };
40 };
41
42 &gmac0 {
43 nvmem-cells = <&macaddr_factory_e000>;
44 nvmem-cell-names = "mac-address";
45 };
46
47 &gmac1 {
48 nvmem-cells = <&macaddr_factory_e006>;
49 nvmem-cell-names = "mac-address";
50 };
51
52 &factory {
53 compatible = "nvmem-cells";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 macaddr_factory_e000: macaddr@e000 {
58 reg = <0xe000 0x6>;
59 };
60
61 macaddr_factory_e006: macaddr@e006 {
62 reg = <0xe006 0x6>;
63 };
64 };