ath79: convert ath10k pre-calibration data to NVMEM (binary MAC)
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c59-v1.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-v1", "qca,qca9560";
7 model = "TP-Link Archer C59 v1";
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 = "u-boot";
55 reg = <0x000000 0x010000>;
56 read-only;
57 };
58
59 info: partition@10000 {
60 label = "info";
61 reg = <0x010000 0x010000>;
62 read-only;
63
64 nvmem-layout {
65 compatible = "fixed-layout";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 macaddr_info_8: macaddr@8 {
70 compatible = "mac-base";
71 reg = <0x8 0x6>;
72 #nvmem-cell-cells = <1>;
73 };
74 };
75 };
76
77 partition@20000 {
78 compatible = "denx,uimage";
79 label = "firmware";
80 reg = <0x020000 0xe30000>;
81 };
82
83 partition@e50000 {
84 label = "tplink";
85 reg = <0xe50000 0x1a0000>;
86 read-only;
87 };
88
89 art: partition@ff0000 {
90 label = "art";
91 reg = <0xff0000 0x010000>;
92 read-only;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 precal_art_5000: pre-calibration@5000 {
100 reg = <0x5000 0x2f20>;
101 };
102 };
103 };
104 };
105 };
106 };
107
108 &eth0 {
109 nvmem-cells = <&macaddr_info_8 1>;
110 nvmem-cell-names = "mac-address";
111 };
112
113 &eth1 {
114 nvmem-cells = <&macaddr_info_8 0>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &wmac {
119 mtd-cal-data = <&art 0x1000>;
120
121 nvmem-cells = <&macaddr_info_8 0>;
122 nvmem-cell-names = "mac-address";
123 };