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