ath79: qca: convert to nvmem-layout
[openwrt/staging/jow.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 nvmem-layout {
48 compatible = "fixed-layout";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 macaddr_info_8: macaddr@8 {
53 reg = <0x8 0x6>;
54 };
55 };
56 };
57
58 config: partition@f60000 {
59 label = "config";
60 reg = <0xf60000 0x050000>;
61 read-only;
62 };
63
64 partition@fc0000 {
65 label = "partition-table";
66 reg = <0xfc0000 0x010000>;
67 read-only;
68 };
69
70 art: partition@ff0000 {
71 label = "art";
72 reg = <0xff0000 0x010000>;
73 read-only;
74 };
75 };
76
77 &eth0 {
78 nvmem-cells = <&macaddr_info_8>;
79 nvmem-cell-names = "mac-address";
80 };
81
82 &wmac {
83 mtd-cal-data = <&art 0x1000>;
84
85 nvmem-cells = <&macaddr_info_8>;
86 nvmem-cell-names = "mac-address";
87 };