ath79: qca: convert to nvmem-layout
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c7-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-c7-v5", "qca,qca9563";
7 model = "TP-Link Archer C7 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 5 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 partition@20000 {
31 label = "u-boot";
32 reg = <0x020000 0x020000>;
33 read-only;
34 };
35
36 partition@40000 {
37 label = "partition-table";
38 reg = <0x040000 0x010000>;
39 read-only;
40 };
41
42 art: partition@50000 {
43 label = "art";
44 reg = <0x050000 0x010000>;
45 read-only;
46 };
47
48 info: partition@60000 {
49 label = "info";
50 reg = <0x060000 0x020000>;
51 read-only;
52
53 nvmem-layout {
54 compatible = "fixed-layout";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 macaddr_info_8: macaddr@8 {
59 reg = <0x8 0x6>;
60 };
61 };
62 };
63
64 partition@80000 {
65 label = "user-config";
66 reg = <0x080000 0x040000>;
67 read-only;
68 };
69
70 partition@c0000 {
71 label = "firmware";
72 reg = <0x0c0000 0xf00000>;
73 compatible = "denx,uimage";
74 };
75
76 partition@ff0000 {
77 label = "default-config";
78 reg = <0xff0000 0x010000>;
79 read-only;
80 };
81 };
82
83 &eth0 {
84 nvmem-cells = <&macaddr_info_8>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &wmac {
89 mtd-cal-data = <&art 0x1000>;
90
91 nvmem-cells = <&macaddr_info_8>;
92 nvmem-cell-names = "mac-address";
93 };