6d7582451597f1547ca59149986e5e38718bd27c
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043n-v5.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_tplink_tl-wr1043n.dtsi"
4
5 / {
6 compatible = "tplink,tl-wr1043n-v5", "qca,qca9563";
7 model = "TP-Link TL-WR1043N v5";
8
9 aliases {
10 label-mac-device = &wmac;
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 = "factory-uboot";
29 reg = <0x000000 0x020000>;
30 read-only;
31 };
32
33 partition@20000 {
34 label = "u-boot";
35 reg = <0x020000 0x020000>;
36 read-only;
37 };
38
39 partition@40000 {
40 compatible = "denx,uimage";
41 label = "firmware";
42 reg = <0x040000 0xec0000>;
43 };
44
45 info: partition@f00000 {
46 label = "info";
47 reg = <0xf00000 0x020000>;
48 read-only;
49 };
50
51 partition@f20000 {
52 label = "config";
53 reg = <0xf20000 0x0a0000>;
54 read-only;
55 };
56
57 partition@fc0000 {
58 label = "partition-table";
59 reg = <0xfc0000 0x010000>;
60 read-only;
61 };
62
63 partition@fd0000 {
64 label = "logs";
65 reg = <0xfd0000 0x020000>;
66 read-only;
67 };
68
69 art: partition@ff0000 {
70 label = "art";
71 reg = <0xff0000 0x010000>;
72 read-only;
73 };
74 };
75 };
76 };
77
78 &eth0 {
79 nvmem-cells = <&macaddr_info_8>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &wmac {
84 mtd-cal-data = <&art 0x1000>;
85
86 nvmem-cells = <&macaddr_info_8>;
87 nvmem-cell-names = "mac-address";
88 };
89
90 &info {
91 compatible = "nvmem-cells";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 macaddr_info_8: macaddr@8 {
96 reg = <0x8 0x6>;
97 };
98 };