treewide: convert mtd-mac-address-increment* to generic implementation
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &spi {
15 status = "okay";
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <25000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 uboot: partition@0 {
28 label = "u-boot";
29 reg = <0x000000 0x020000>;
30 read-only;
31 };
32
33 partition@20000 {
34 compatible = "tplink,firmware";
35 label = "firmware";
36 reg = <0x020000 0x3d0000>;
37 };
38
39 art: partition@3f0000 {
40 label = "art";
41 reg = <0x3f0000 0x010000>;
42 read-only;
43 };
44 };
45 };
46 };
47
48 &eth0 {
49 status = "okay";
50
51 phy-handle = <&swphy4>;
52
53 mtd-mac-address = <&uboot 0x1fc00>;
54 mac-address-increment = <1>;
55 };
56
57 &eth1 {
58 status = "okay";
59 };
60
61 &wmac {
62 status = "okay";
63
64 mtd-cal-data = <&art 0x1000>;
65 mtd-mac-address = <&uboot 0x1fc00>;
66 };