ath79: convert ath10k pre-calibration data to NVMEM (binary MAC)
[openwrt/staging/svanheule.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_port0>;
20 };
21 };
22
23 &usb0 {
24 status = "okay";
25 };
26
27 &usb_phy0 {
28 status = "okay";
29 };
30
31 &pcie {
32 wifi@0,0 {
33 compatible = "qcom,ath10k";
34 reg = <0x0000 0 0 0 0>;
35 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
36 nvmem-cell-names = "pre-calibration", "mac-address";
37 };
38 };
39
40 &spi {
41 status = "okay";
42
43 flash@0 {
44 compatible = "jedec,spi-nor";
45 reg = <0>;
46 spi-max-frequency = <25000000>;
47
48 partitions {
49 compatible = "fixed-partitions";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 partition@0 {
54 label = "factory-boot";
55 reg = <0x000000 0x020000>;
56 read-only;
57 };
58
59 partition@20000 {
60 label = "u-boot";
61 reg = <0x020000 0x010000>;
62 read-only;
63 };
64
65 info: partition@30000 {
66 label = "info";
67 reg = <0x030000 0x010000>;
68 read-only;
69
70 nvmem-layout {
71 compatible = "fixed-layout";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 macaddr_info_8: macaddr@8 {
76 compatible = "mac-base";
77 reg = <0x8 0x6>;
78 #nvmem-cell-cells = <1>;
79 };
80 };
81 };
82
83 partition@40000 {
84 compatible = "denx,uimage";
85 label = "firmware";
86 reg = <0x040000 0xe10000>;
87 };
88
89 partition@e50000 {
90 label = "tplink";
91 reg = <0xe50000 0x1a0000>;
92 read-only;
93 };
94
95 art: partition@ff0000 {
96 label = "art";
97 reg = <0xff0000 0x010000>;
98 read-only;
99
100 nvmem-layout {
101 compatible = "fixed-layout";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 precal_art_5000: pre-calibration@5000 {
106 reg = <0x5000 0x2f20>;
107 };
108 };
109 };
110 };
111 };
112 };
113
114 &eth0 {
115 nvmem-cells = <&macaddr_info_8 1>;
116 nvmem-cell-names = "mac-address";
117 };
118
119 &eth1 {
120 nvmem-cells = <&macaddr_info_8 0>;
121 nvmem-cell-names = "mac-address";
122 };
123
124 &wmac {
125 mtd-cal-data = <&art 0x1000>;
126
127 nvmem-cells = <&macaddr_info_8 0>;
128 nvmem-cell-names = "mac-address";
129 };