b2877676e87a8f5263f36ad4c2f27d60487b4471
[openwrt/staging/hauke.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 reg = <0x1fc00 0x6>;
45 };
46 };
47 };
48
49 partition@20000 {
50 label = "firmware";
51 reg = <0x020000 0xfd0000>;
52 compatible = "tplink,firmware";
53 };
54
55 art: partition@ff0000 {
56 label = "art";
57 reg = <0xff0000 0x010000>;
58 read-only;
59
60 nvmem-layout {
61 compatible = "fixed-layout";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 calibration_art_1000: calibration@1000 {
66 reg = <0x1000 0x440>;
67 };
68
69 calibration_art_5000: calibration@5000 {
70 reg = <0x5000 0x844>;
71 };
72 };
73 };
74 };
75
76 &eth0 {
77 nvmem-cells = <&macaddr_uboot_1fc00>;
78 nvmem-cell-names = "mac-address";
79 mac-address-increment = <1>;
80 };
81
82 &eth1 {
83 nvmem-cells = <&macaddr_uboot_1fc00>;
84 nvmem-cell-names = "mac-address";
85 };
86
87 &pcie1 {
88 status = "okay";
89
90 wifi@0,0 {
91 compatible = "qcom,ath10k";
92 reg = <0 0 0 0 0>;
93
94 mac-address-increment = <(-1)>;
95 nvmem-cells = <&macaddr_uboot_1fc00>, <&calibration_art_5000>;
96 nvmem-cell-names = "mac-address", "calibration";
97 };
98 };
99
100 &wmac {
101 nvmem-cells = <&macaddr_uboot_1fc00>, <&calibration_art_1000>;
102 nvmem-cell-names = "mac-address", "calibration";
103 };