ramips: mt7621: convert to nvmem-layout
[openwrt/staging/hauke.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 label = "factory";
46 reg = <0x2e00000 0x100000>;
47 read-only;
48
49 nvmem-layout {
50 compatible = "fixed-layout";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 eeprom0: eeprom@0 {
55 reg = <0x0 0x400>;
56 };
57
58 macaddr_factory_4: macaddr@4 {
59 compatible = "mac-base";
60 reg = <0x4 0x6>;
61 #nvmem-cell-cells = <1>;
62 };
63
64 eeprom1: eeprom@8000 {
65 reg = <0x8000 0x200>;
66 };
67 };
68 };
69
70 partition@4200000 {
71 label = "reserved";
72 reg = <0x4200000 0x3c00000>;
73 read-only;
74 };
75 };
76 };
77
78 &gmac0 {
79 nvmem-cells = <&macaddr_factory_4 0>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &gmac1 {
84 nvmem-cells = <&macaddr_factory_4 1>;
85 nvmem-cell-names = "mac-address";
86 };