ramips: use fixed layout cell "mac-base" for Netgear WNDR3700 v5
[openwrt/staging/wigyori.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 macaddr_factory_4: macaddr@4 {
56 compatible = "mac-base";
57 reg = <0x4 0x6>;
58 #nvmem-cell-cells = <1>;
59 };
60 };
61 };
62
63 partition@4200000 {
64 label = "reserved";
65 reg = <0x4200000 0x3c00000>;
66 read-only;
67 };
68 };
69 };
70
71 &gmac0 {
72 nvmem-cells = <&macaddr_factory_4 0>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &gmac1 {
77 nvmem-cells = <&macaddr_factory_4 1>;
78 nvmem-cell-names = "mac-address";
79 };