ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_tplink_archer-c7-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9558_tplink_archer-c.dtsi"
4
5 / {
6 compatible = "tplink,archer-c7-v2", "qca,qca9558";
7 model = "TP-Link Archer C7 v2";
8
9 aliases {
10 label-mac-device = &eth1;
11 };
12 };
13
14 &keys {
15 rfkill {
16 label = "rfkill";
17 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
18 linux,code = <KEY_RFKILL>;
19 linux,input-type = <EV_SW>;
20 debounce-interval = <1000>;
21 };
22 };
23
24 &leds {
25 wlan5g {
26 label = "green:wlan5g";
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy0tpt";
29 };
30 };
31
32 &mtdparts {
33 uboot: partition@0 {
34 label = "u-boot";
35 reg = <0x000000 0x020000>;
36 read-only;
37
38 nvmem-layout {
39 compatible = "fixed-layout";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 macaddr_uboot_1fc00: macaddr@1fc00 {
44 compatible = "mac-base";
45 reg = <0x1fc00 0x6>;
46 #nvmem-cell-cells = <1>;
47 };
48 };
49 };
50
51 partition@20000 {
52 label = "firmware";
53 reg = <0x020000 0xfd0000>;
54 compatible = "tplink,firmware";
55 };
56
57 art: partition@ff0000 {
58 label = "art";
59 reg = <0xff0000 0x010000>;
60 read-only;
61
62 nvmem-layout {
63 compatible = "fixed-layout";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 calibration_art_1000: calibration@1000 {
68 reg = <0x1000 0x440>;
69 };
70
71 calibration_art_5000: calibration@5000 {
72 reg = <0x5000 0x844>;
73 };
74 };
75 };
76 };
77
78 &eth0 {
79 nvmem-cells = <&macaddr_uboot_1fc00 1>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &eth1 {
84 nvmem-cells = <&macaddr_uboot_1fc00 0>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &pcie1 {
89 status = "okay";
90
91 wifi@0,0 {
92 compatible = "qcom,ath10k";
93 reg = <0 0 0 0 0>;
94
95 nvmem-cells = <&macaddr_uboot_1fc00 (-1)>, <&calibration_art_5000>;
96 nvmem-cell-names = "mac-address", "calibration";
97 };
98 };
99
100 &wmac {
101 nvmem-cells = <&macaddr_uboot_1fc00 0>, <&calibration_art_1000>;
102 nvmem-cell-names = "mac-address", "calibration";
103 };