dc40d71afc42aa19d848f6df3261eef7eac7931a
[openwrt/staging/stintel.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 macaddr_factory_4: macaddr@4 {
50 compatible = "mac-base";
51 reg = <0x4 0x6>;
52 #nvmem-cell-cells = <1>;
53 };
54 };
55 };
56
57 partition@50000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x50000 0xee0000>;
61 };
62 };
63 };
64 };
65
66 &gmac0 {
67 nvmem-cells = <&macaddr_factory_4 0>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &gmac1 {
72 nvmem-cells = <&macaddr_factory_4 1>;
73 nvmem-cell-names = "mac-address";
74 };