ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 <dt-bindings/leds/common.h>
4
5 #include "qca9561_tplink_archer-c5x.dtsi"
6
7 / {
8 compatible = "tplink,archer-c59-v1", "qca,qca9560";
9 model = "TP-Link Archer C59 v1";
10
11 aliases {
12 label-mac-device = &eth1;
13 };
14 };
15
16 &leds {
17 usb {
18 function = LED_FUNCTION_USB;
19 color = <LED_COLOR_ID_GREEN>;
20 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
21 linux,default-trigger = "usbport";
22 trigger-sources = <&hub_port0>;
23 };
24 };
25
26 &usb0 {
27 status = "okay";
28 };
29
30 &usb_phy0 {
31 status = "okay";
32 };
33
34 &pcie {
35 wifi@0,0 {
36 compatible = "qcom,ath10k";
37 reg = <0x0000 0 0 0 0>;
38 nvmem-cells = <&precal_art_5000>, <&macaddr_info_8 (-1)>;
39 nvmem-cell-names = "pre-calibration", "mac-address";
40 };
41 };
42
43 &spi {
44 status = "okay";
45
46 flash@0 {
47 compatible = "jedec,spi-nor";
48 reg = <0>;
49 spi-max-frequency = <25000000>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x000000 0x010000>;
59 read-only;
60 };
61
62 info: partition@10000 {
63 label = "info";
64 reg = <0x010000 0x010000>;
65 read-only;
66
67 nvmem-layout {
68 compatible = "fixed-layout";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 macaddr_info_8: macaddr@8 {
73 compatible = "mac-base";
74 reg = <0x8 0x6>;
75 #nvmem-cell-cells = <1>;
76 };
77 };
78 };
79
80 partition@20000 {
81 compatible = "denx,uimage";
82 label = "firmware";
83 reg = <0x020000 0xe30000>;
84 };
85
86 partition@e50000 {
87 label = "tplink";
88 reg = <0xe50000 0x1a0000>;
89 read-only;
90 };
91
92 art: partition@ff0000 {
93 label = "art";
94 reg = <0xff0000 0x010000>;
95 read-only;
96
97 nvmem-layout {
98 compatible = "fixed-layout";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 precal_art_5000: pre-calibration@5000 {
103 reg = <0x5000 0x2f20>;
104 };
105 };
106 };
107 };
108 };
109 };
110
111 &eth0 {
112 nvmem-cells = <&macaddr_info_8 1>;
113 nvmem-cell-names = "mac-address";
114 };
115
116 &eth1 {
117 nvmem-cells = <&macaddr_info_8 0>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &wmac {
122 mtd-cal-data = <&art 0x1000>;
123
124 nvmem-cells = <&macaddr_info_8 0>;
125 nvmem-cell-names = "mac-address";
126 };