ath79: qca: convert to nvmem-layout
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_re450-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_tplink_re450.dtsi"
4
5 / {
6 compatible = "tplink,re450-v3", "qca,qca9563";
7 model = "TP-Link RE450 v3";
8
9 aliases {
10 label-mac-device = &eth0;
11 };
12 };
13
14 &partitions {
15 partition@0 {
16 label = "u-boot";
17 reg = <0x000000 0x020000>;
18 read-only;
19 };
20
21 info: partition@20000 {
22 label = "info";
23 reg = <0x020000 0x002000>;
24 read-only;
25
26 nvmem-layout {
27 compatible = "fixed-layout";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 macaddr_info_8: macaddr@8 {
32 reg = <0x8 0x6>;
33 };
34 };
35 };
36
37 partition@22000 {
38 label = "partition-table";
39 reg = <0x022000 0x002000>;
40 read-only;
41 };
42
43 partition@24000 {
44 label = "info2";
45 reg = <0x024000 0x00a000>;
46 read-only;
47 };
48
49 partition@2e000 {
50 label = "config";
51 reg = <0x02e000 0x022000>;
52 read-only;
53 };
54
55 partition@50000 {
56 compatible = "tplink,firmware";
57 label = "firmware";
58 reg = <0x050000 0x7a0000>;
59 };
60
61 art: partition@7f0000 {
62 label = "art";
63 reg = <0x7f0000 0x010000>;
64 read-only;
65 };
66 };
67
68 &eth0 {
69 nvmem-cells = <&macaddr_info_8>;
70 nvmem-cell-names = "mac-address";
71 };
72
73 &wmac {
74 mtd-cal-data = <&art 0x1000>;
75
76 nvmem-cells = <&macaddr_info_8>;
77 nvmem-cell-names = "mac-address";
78 };