ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_archer-a7-v5.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_tplink_archer-x7-v5.dtsi"
4
5 / {
6 compatible = "tplink,archer-a7-v5", "qca,qca9563";
7 model = "TP-Link Archer A7 v5";
8
9 aliases {
10 label-mac-device = &eth0;
11 };
12 };
13
14 &keys {
15 reset {
16 label = "Reset button";
17 linux,code = <KEY_RESTART>;
18 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
19 debounce-interval = <60>;
20 };
21 };
22
23 &mtdparts {
24 partition@0 {
25 label = "factory-uboot";
26 reg = <0x000000 0x020000>;
27 read-only;
28 };
29
30 uboot: partition@20000 {
31 label = "u-boot";
32 reg = <0x020000 0x020000>;
33 read-only;
34 };
35
36 partition@40000 {
37 label = "firmware";
38 reg = <0x040000 0xec0000>;
39 compatible = "denx,uimage";
40 };
41
42 info: partition@f40000 {
43 label = "info";
44 reg = <0xf40000 0x020000>;
45 read-only;
46 };
47
48 config: partition@f60000 {
49 label = "config";
50 reg = <0xf60000 0x050000>;
51 read-only;
52 };
53
54 partition@fc0000 {
55 label = "partition-table";
56 reg = <0xfc0000 0x010000>;
57 read-only;
58 };
59
60 art: partition@ff0000 {
61 label = "art";
62 reg = <0xff0000 0x010000>;
63 read-only;
64 };
65 };
66
67 &eth0 {
68 nvmem-cells = <&macaddr_info_8>;
69 nvmem-cell-names = "mac-address";
70 };
71
72 &wmac {
73 mtd-cal-data = <&art 0x1000>;
74
75 nvmem-cells = <&macaddr_info_8>;
76 nvmem-cell-names = "mac-address";
77 };
78
79 &info {
80 compatible = "nvmem-cells";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_info_8: macaddr@8 {
85 reg = <0x8 0x6>;
86 };
87 };