ramips: add support for TRENDnet TEW-810DR
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9558_tplink_archer-d7-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "qca9558_tplink_archer-d7.dtsi"
5
6 / {
7         compatible = "tplink,archer-d7-v1", "qca,qca9558";
8         model = "TP-Link Archer D7 v1";
9
10         aliases {
11                 label-mac-device = &wmac;
12         };
13 };
14
15 &spi {
16         status = "okay";
17
18         num-cs = <1>;
19
20         flash@0 {
21                 compatible = "jedec,spi-nor";
22                 reg = <0>;
23                 spi-max-frequency = <25000000>;
24
25                 partitions {
26                         compatible = "fixed-partitions";
27                         #address-cells = <1>;
28                         #size-cells = <1>;
29
30                         partition@0 {
31                                 label = "u-boot";
32                                 reg = <0x000000 0x020000>;
33                                 read-only;
34                         };
35
36                         partition@20000 {
37                                 compatible = "tplink,firmware";
38                                 label = "firmware";
39                                 reg = <0x020000 0xf90000>;
40                         };
41
42                         partition@fb0000 {
43                                 label = "radioDECT";
44                                 reg = <0xfb0000 0x010000>;
45                                 read-only;
46                         };
47
48                         partition@fc0000 {
49                                 label = "config";
50                                 reg = <0xfc0000 0x010000>;
51                                 read-only;
52                         };
53
54                         romfs: partition@fd0000 {
55                                 label = "romfs";
56                                 reg = <0xfd0000 0x010000>;
57                                 read-only;
58                         };
59
60                         partition@fe0000 {
61                                 label = "rom";
62                                 reg = <0xfe0000 0x010000>;
63                                 read-only;
64                         };
65
66                         art: partition@ff0000 {
67                                 label = "art";
68                                 reg = <0xff0000 0x010000>;
69                                 read-only;
70                         };
71                 };
72         };
73 };
74
75 &eth0 {
76         mtd-mac-address = <&romfs 0xf100>;
77         mtd-mac-address-increment = <1>;
78 };
79
80 &eth1 {
81         mtd-mac-address = <&romfs 0xf100>;
82 };
83
84 &wmac {
85         mtd-cal-data = <&art 0x1000>;
86         mtd-mac-address = <&romfs 0xf100>;
87 };