180efada1270b683b18a8a6d7ec473dfdde9d723
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c58-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9561_tplink_archer-c5x.dtsi"
4
5 / {
6 compatible = "tplink,archer-c58-v1", "qca,qca9560";
7 model = "TP-Link Archer C58 v1";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &spi {
15 status = "okay";
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <25000000>;
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 = <0x000000 0x010000>;
30 read-only;
31 };
32
33 info: partition@10000 {
34 label = "info";
35 reg = <0x010000 0x010000>;
36 read-only;
37 };
38
39 partition@20000 {
40 compatible = "denx,uimage";
41 label = "firmware";
42 reg = <0x020000 0x7c0000>;
43 };
44
45 partition@7e0000 {
46 label = "tplink";
47 reg = <0x7e0000 0x010000>;
48 read-only;
49 };
50
51 art: partition@7f0000 {
52 label = "art";
53 reg = <0x7f0000 0x010000>;
54 read-only;
55 };
56 };
57 };
58 };
59
60 &eth0 {
61 nvmem-cells = <&macaddr_info_8>;
62 nvmem-cell-names = "mac-address";
63 mac-address-increment = <1>;
64 };
65
66 &eth1 {
67 nvmem-cells = <&macaddr_info_8>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &wmac {
72 mtd-cal-data = <&art 0x1000>;
73
74 nvmem-cells = <&macaddr_info_8>;
75 nvmem-cell-names = "mac-address";
76 };
77
78 &info {
79 compatible = "nvmem-cells";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 macaddr_info_8: macaddr@8 {
84 reg = <0x8 0x6>;
85 };
86 };