a09e1fae6f4a2a975cde90ce3bf2ebf83dfbccee
[openwrt/staging/jow.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 nvmem-layout {
39 compatible = "fixed-layout";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 macaddr_info_8: macaddr@8 {
44 compatible = "mac-base";
45 reg = <0x8 0x6>;
46 #nvmem-cell-cells = <1>;
47 };
48 };
49 };
50
51 partition@20000 {
52 compatible = "denx,uimage";
53 label = "firmware";
54 reg = <0x020000 0x7c0000>;
55 };
56
57 partition@7e0000 {
58 label = "tplink";
59 reg = <0x7e0000 0x010000>;
60 read-only;
61 };
62
63 art: partition@7f0000 {
64 label = "art";
65 reg = <0x7f0000 0x010000>;
66 read-only;
67 };
68 };
69 };
70 };
71
72 &eth0 {
73 nvmem-cells = <&macaddr_info_8 1>;
74 nvmem-cell-names = "mac-address";
75 };
76
77 &eth1 {
78 nvmem-cells = <&macaddr_info_8 0>;
79 nvmem-cell-names = "mac-address";
80 };
81
82 &wmac {
83 mtd-cal-data = <&art 0x1000>;
84
85 nvmem-cells = <&macaddr_info_8 0>;
86 nvmem-cell-names = "mac-address";
87 };