ath79: ar: convert to nvmem-layout
[openwrt/staging/hauke.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 nvmem-layout {
30 compatible = "fixed-layout";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 macaddr_uboot_1fc00: macaddr@1fc00 {
35 reg = <0x1fc00 0x6>;
36 };
37 };
38 };
39
40 partition@20000 {
41 compatible = "tplink,firmware";
42 reg = <0x20000 0x7d0000>;
43 label = "firmware";
44 };
45
46 art: partition@7f0000 {
47 reg = <0x7f0000 0x10000>;
48 label = "art";
49 read-only;
50 };
51 };
52 };
53 };
54
55 &eth0 {
56 nvmem-cells = <&macaddr_uboot_1fc00>;
57 nvmem-cell-names = "mac-address";
58 };
59
60 &eth1 {
61 nvmem-cells = <&macaddr_uboot_1fc00>;
62 nvmem-cell-names = "mac-address";
63 mac-address-increment = <(-1)>;
64 };
65
66 &wmac {
67 mtd-cal-data = <&art 0x1000>;
68
69 nvmem-cells = <&macaddr_uboot_1fc00>;
70 nvmem-cell-names = "mac-address";
71 };