ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar9331_tplink_tl-wr710n-8m.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331_tplink_tl-wr710n.dtsi"
4
5 / {
6 aliases {
7 label-mac-device = &eth0;
8 };
9 };
10
11 &spi {
12 status = "okay";
13
14 flash@0 {
15 compatible = "jedec,spi-nor";
16 reg = <0>;
17 spi-max-frequency = <25000000>;
18
19 partitions {
20 compatible = "fixed-partitions";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 uboot: partition@0 {
25 reg = <0x0 0x20000>;
26 label = "u-boot";
27 read-only;
28 };
29
30 partition@20000 {
31 compatible = "tplink,firmware";
32 reg = <0x20000 0x7d0000>;
33 label = "firmware";
34 };
35
36 art: partition@7f0000 {
37 reg = <0x7f0000 0x10000>;
38 label = "art";
39 read-only;
40 };
41 };
42 };
43 };
44
45 &eth0 {
46 nvmem-cells = <&macaddr_uboot_1fc00>;
47 nvmem-cell-names = "mac-address";
48 };
49
50 &eth1 {
51 nvmem-cells = <&macaddr_uboot_1fc00>;
52 nvmem-cell-names = "mac-address";
53 mac-address-increment = <(-1)>;
54 };
55
56 &wmac {
57 mtd-cal-data = <&art 0x1000>;
58
59 nvmem-cells = <&macaddr_uboot_1fc00>;
60 nvmem-cell-names = "mac-address";
61 };
62
63 &uboot {
64 compatible = "nvmem-cells";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 macaddr_uboot_1fc00: macaddr@1fc00 {
69 reg = <0x1fc00 0x6>;
70 };
71 };