ramips: convert MT7610 and MT7612 EEPROM to NVMEM format for MT7621
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_r6220.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621_netgear_sercomm_ayx.dtsi"
4
5 / {
6 compatible = "netgear,r6220", "mediatek,mt7621-soc";
7 model = "Netgear R6220";
8
9 aliases {
10 label-mac-device = &gmac0;
11 };
12 };
13
14 &nand {
15 status = "okay";
16
17 partitions {
18 compatible = "fixed-partitions";
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 partition@0 {
23 label = "u-boot";
24 reg = <0x0 0x100000>;
25 read-only;
26 };
27
28 partition@100000 {
29 label = "SC PID";
30 reg = <0x100000 0x100000>;
31 read-only;
32 };
33
34 partition@200000 {
35 label = "kernel";
36 reg = <0x200000 0x400000>;
37 };
38
39 partition@600000 {
40 label = "ubi";
41 reg = <0x600000 0x1c00000>;
42 };
43
44 factory: partition@2e00000 {
45 compatible = "nvmem-cells";
46 label = "factory";
47 reg = <0x2e00000 0x100000>;
48 read-only;
49
50 nvmem-layout {
51 compatible = "fixed-layout";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 eeprom0: eeprom@0 {
56 reg = <0x0 0x400>;
57 };
58
59 macaddr_factory_4: macaddr@4 {
60 compatible = "mac-base";
61 reg = <0x4 0x6>;
62 #nvmem-cell-cells = <1>;
63 };
64
65 eeprom1: eeprom@8000 {
66 reg = <0x8000 0x200>;
67 };
68 };
69 };
70
71 partition@4200000 {
72 label = "reserved";
73 reg = <0x4200000 0x3c00000>;
74 read-only;
75 };
76 };
77 };
78
79 &gmac0 {
80 nvmem-cells = <&macaddr_factory_4 0>;
81 nvmem-cell-names = "mac-address";
82 };
83
84 &gmac1 {
85 nvmem-cells = <&macaddr_factory_4 1>;
86 nvmem-cell-names = "mac-address";
87 };