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