ath79: ar: convert to nvmem-layout
[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 nvmem-layout {
41 compatible = "fixed-layout";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 macaddr_art_0: macaddr@0 {
46 reg = <0x0 0x6>;
47 };
48
49 macaddr_art_6: macaddr@6 {
50 reg = <0x6 0x6>;
51 };
52
53 macaddr_art_c: macaddr@c {
54 reg = <0xc 0x6>;
55 };
56
57 cal_art_1000: cal@1000 {
58 reg = <0x1000 0xeb8>;
59 };
60
61 cal_art_5000: cal@5000 {
62 reg = <0x5000 0xeb8>;
63 };
64 };
65 };
66 };
67
68 &ath9k0 {
69 nvmem-cells = <&macaddr_art_c>, <&cal_art_1000>;
70 nvmem-cell-names = "mac-address", "calibration";
71 };
72
73 &ath9k1 {
74 nvmem-cells = <&macaddr_art_0>, <&cal_art_5000>;
75 nvmem-cell-names = "mac-address", "calibration";
76 };
77
78 &eth0 {
79 nvmem-cells = <&macaddr_art_0>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &eth1 {
84 nvmem-cells = <&macaddr_art_6>;
85 nvmem-cell-names = "mac-address";
86 };