54489243b88295515107cbaefafdc0a43a3f0be8
[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 label = "factory";
46 reg = <0x2e00000 0x100000>;
47 read-only;
48 };
49
50 partition@4200000 {
51 label = "reserved";
52 reg = <0x4200000 0x3c00000>;
53 read-only;
54 };
55 };
56 };
57
58 &gmac0 {
59 nvmem-cells = <&macaddr_factory_4>;
60 nvmem-cell-names = "mac-address";
61 };
62
63 &wan {
64 nvmem-cells = <&macaddr_factory_4>;
65 nvmem-cell-names = "mac-address";
66 mac-address-increment = <1>;
67 };
68
69 &factory {
70 compatible = "nvmem-cells";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 macaddr_factory_4: macaddr@4 {
75 reg = <0x4 0x6>;
76 };
77 };