ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_netgear_wndr3800.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7161_netgear_wndr.dtsi"
4
5 / {
6 compatible = "netgear,wndr3800", "qca,ar7161";
7 model = "Netgear WNDR3800";
8
9 aliases {
10 label-mac-device = &eth0;
11 };
12 };
13
14 &partitions {
15 partition@0 {
16 label = "u-boot";
17 reg = <0x000000 0x050000>;
18 read-only;
19 };
20
21 partition@50000 {
22 label = "u-boot-env";
23 reg = <0x050000 0x020000>;
24 read-only;
25 };
26
27 partition@70000 {
28 label = "firmware";
29 reg = <0x070000 0xf80000>;
30 compatible = "openwrt,uimage", "denx,uimage";
31 openwrt,ih-magic = <0x33373031>;
32 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
33 };
34
35 art: partition@ff0000 {
36 label = "art";
37 reg = <0xff0000 0x010000>;
38 read-only;
39 };
40 };
41
42 &ath9k0 {
43 nvmem-cells = <&macaddr_art_c>;
44 nvmem-cell-names = "mac-address";
45 };
46
47 &ath9k1 {
48 nvmem-cells = <&macaddr_art_0>;
49 nvmem-cell-names = "mac-address";
50 };
51
52 &eth0 {
53 nvmem-cells = <&macaddr_art_0>;
54 nvmem-cell-names = "mac-address";
55 };
56
57 &eth1 {
58 nvmem-cells = <&macaddr_art_6>;
59 nvmem-cell-names = "mac-address";
60 };
61
62 &art {
63 compatible = "nvmem-cells";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 macaddr_art_0: macaddr@0 {
68 reg = <0x0 0x6>;
69 };
70
71 macaddr_art_6: macaddr@6 {
72 reg = <0x6 0x6>;
73 };
74
75 macaddr_art_c: macaddr@c {
76 reg = <0xc 0x6>;
77 };
78 };