ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9533_qca_ap143-8m.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9533_qca_ap143.dtsi"
4
5 / {
6 model = "Qualcomm Atheros AP143 (8M) reference board";
7 compatible = "qca,ap143-8m", "qca,qca9533";
8
9 virtual_flash {
10 compatible = "mtd-concat";
11 devices = <&fwconcat0 &fwconcat1>;
12
13 partitions {
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 reg = <0x0 0x0>;
20 label = "firmware";
21 compatible = "openwrt,uimage", "denx,uimage";
22 openwrt,ih-magic = <IH_MAGIC_OKLI>;
23 };
24 };
25 };
26 };
27
28 &partitions {
29 fwconcat0: partition@50000 {
30 label = "fwconcat0";
31 reg = <0x050000 0x630000>;
32 };
33
34 partition@680000 {
35 label = "loader";
36 reg = <0x680000 0x10000>;
37 };
38
39 fwconcat1: partition@690000 {
40 label = "fwconcat1";
41 reg = <0x690000 0x160000>;
42 };
43
44 art: partition@7f0000 {
45 label = "art";
46 reg = <0x7f0000 0x010000>;
47 read-only;
48 };
49 };
50
51 &eth0 {
52 nvmem-cells = <&macaddr_art_0>;
53 nvmem-cell-names = "mac-address";
54 };
55
56 &eth1 {
57 nvmem-cells = <&macaddr_art_6>;
58 nvmem-cell-names = "mac-address";
59 };
60
61 &wmac {
62 mtd-cal-data = <&art 0x1000>;
63 };
64
65 &art {
66 compatible = "nvmem-cells";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 macaddr_art_0: macaddr@0 {
71 reg = <0x0 0x6>;
72 };
73
74 macaddr_art_6: macaddr@6 {
75 reg = <0x6 0x6>;
76 };
77 };