ramips: mt7621-dts: mux phy0/4 to gmac1
[openwrt/staging/hauke.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
45 partition@50000 {
46 compatible = "denx,uimage";
47 label = "firmware";
48 reg = <0x50000 0xee0000>;
49 };
50 };
51 };
52 };
53
54 &gmac0 {
55 nvmem-cells = <&macaddr_factory_4>;
56 nvmem-cell-names = "mac-address";
57 };
58
59 &gmac1 {
60 nvmem-cells = <&macaddr_factory_4>;
61 nvmem-cell-names = "mac-address";
62 mac-address-increment = <1>;
63 };
64
65 &factory {
66 compatible = "nvmem-cells";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 macaddr_factory_4: macaddr@4 {
71 reg = <0x4 0x6>;
72 };
73 };