ath79: WNDR3700/3800/MAC: utilize nvmem for caldata fetching
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / ar7161_netgear_wndrmac-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7161_netgear_wndr.dtsi"
4
5 / {
6 compatible = "netgear,wndrmac-v1", "qca,ar7161";
7 model = "Netgear WNDRMAC v1";
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 };
25
26 partition@70000 {
27 label = "firmware";
28 reg = <0x070000 0xf80000>;
29 compatible = "openwrt,uimage", "denx,uimage";
30 openwrt,ih-magic = <0x33373031>;
31 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
32 };
33
34 art: partition@ff0000 {
35 label = "art";
36 reg = <0xff0000 0x010000>;
37 read-only;
38 };
39 };
40
41 &ath9k0 {
42 nvmem-cells = <&macaddr_art_c>, <&cal_art_1000>;
43 nvmem-cell-names = "mac-address", "calibration";
44 };
45
46 &ath9k1 {
47 nvmem-cells = <&macaddr_art_0>, <&cal_art_5000>;
48 nvmem-cell-names = "mac-address", "calibration";
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 &art {
62 compatible = "nvmem-cells";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 macaddr_art_0: macaddr@0 {
67 reg = <0x0 0x6>;
68 };
69
70 macaddr_art_6: macaddr@6 {
71 reg = <0x6 0x6>;
72 };
73
74 macaddr_art_c: macaddr@c {
75 reg = <0xc 0x6>;
76 };
77
78 cal_art_1000: cal@1000 {
79 reg = <0x1000 0xeb8>;
80 };
81
82 cal_art_5000: cal@5000 {
83 reg = <0x5000 0xeb8>;
84 };
85 };