ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c59-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9561_tplink_archer-c5x.dtsi"
4
5 / {
6 compatible = "tplink,archer-c59-v2", "qca,qca9560";
7 model = "TP-Link Archer C59 v2";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &leds {
15 usb {
16 label = "green:usb";
17 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
18 linux,default-trigger = "usbport";
19 trigger-sources = <&hub_port>;
20 };
21 };
22
23 &usb0 {
24 #address-cells = <1>;
25 #size-cells = <0>;
26 status = "okay";
27
28 hub_port: port@1 {
29 reg = <1>;
30 #trigger-source-cells = <0>;
31 };
32 };
33
34 &usb_phy0 {
35 status = "okay";
36 };
37
38 &spi {
39 status = "okay";
40
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 spi-max-frequency = <25000000>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "factory-boot";
53 reg = <0x000000 0x020000>;
54 read-only;
55 };
56
57 partition@20000 {
58 label = "u-boot";
59 reg = <0x020000 0x010000>;
60 read-only;
61 };
62
63 info: partition@30000 {
64 label = "info";
65 reg = <0x030000 0x010000>;
66 read-only;
67 };
68
69 partition@40000 {
70 compatible = "denx,uimage";
71 label = "firmware";
72 reg = <0x040000 0xe10000>;
73 };
74
75 partition@e50000 {
76 label = "tplink";
77 reg = <0xe50000 0x1a0000>;
78 read-only;
79 };
80
81 art: partition@ff0000 {
82 label = "art";
83 reg = <0xff0000 0x010000>;
84 read-only;
85 };
86 };
87 };
88 };
89
90 &eth0 {
91 nvmem-cells = <&macaddr_info_8>;
92 nvmem-cell-names = "mac-address";
93 mac-address-increment = <1>;
94 };
95
96 &eth1 {
97 nvmem-cells = <&macaddr_info_8>;
98 nvmem-cell-names = "mac-address";
99 };
100
101 &wmac {
102 mtd-cal-data = <&art 0x1000>;
103
104 nvmem-cells = <&macaddr_info_8>;
105 nvmem-cell-names = "mac-address";
106 };
107
108 &info {
109 compatible = "nvmem-cells";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 macaddr_info_8: macaddr@8 {
114 reg = <0x8 0x6>;
115 };
116 };