8252d2b9ff7d8d81aa41c42a8d789cd272235808
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_netgear_wndr3700-v5.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "mt7621_netgear_sercomm_ayx.dtsi"
4
5 / {
6 compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc";
7 model = "Netgear WNDR3700 v5";
8
9 aliases {
10 label-mac-device = &gmac0;
11 };
12 };
13
14 &spi0 {
15 status = "okay";
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <10000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "u-boot";
29 reg = <0x0 0x30000>;
30 read-only;
31 };
32
33 partition@30000 {
34 label = "u-boot-env";
35 reg = <0x30000 0x10000>;
36 read-only;
37 };
38
39 factory: partition@f30000 {
40 label = "factory";
41 reg = <0xf30000 0x10000>;
42 read-only;
43
44 nvmem-layout {
45 compatible = "fixed-layout";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 eeprom0: eeprom@0 {
50 reg = <0x0 0x400>;
51 };
52
53 macaddr_factory_4: macaddr@4 {
54 compatible = "mac-base";
55 reg = <0x4 0x6>;
56 #nvmem-cell-cells = <1>;
57 };
58
59 eeprom1: eeprom@8000 {
60 reg = <0x8000 0x200>;
61 };
62 };
63 };
64
65 partition@50000 {
66 compatible = "denx,uimage";
67 label = "firmware";
68 reg = <0x50000 0xee0000>;
69 };
70 };
71 };
72 };
73
74 &gmac0 {
75 nvmem-cells = <&macaddr_factory_4 0>;
76 nvmem-cell-names = "mac-address";
77 };
78
79 &gmac1 {
80 nvmem-cells = <&macaddr_factory_4 1>;
81 nvmem-cell-names = "mac-address";
82 };