ath79: Add WPS button to TP-Link Archer C7v5
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c7-v5.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "qca9563_tplink_archer-x7-v5.dtsi"
5
6 / {
7         compatible = "tplink,archer-c7-v5", "qca,qca9563";
8         model = "TP-Link Archer C7 v5";
9 };
10
11 &gpio_keys {
12         reset {
13                 label = "Reset button";
14                 linux,code = <KEY_RESTART>;
15                 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
16                 debounce-interval = <60>;
17         };
18
19         wps {
20                 label = "WPS button";
21                 linux,code = <KEY_WPS_BUTTON>;
22                 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
23                 debounce-interval = <60>;
24         };
25 };
26
27 &mtdparts {
28         partition@0 {
29                 label = "factory-uboot";
30                 reg = <0x000000 0x020000>;
31                 read-only;
32         };
33
34         partition@20000 {
35                 label = "u-boot";
36                 reg = <0x020000 0x020000>;
37                 read-only;
38         };
39
40         partition@40000 {
41                 label = "partition-table";
42                 reg = <0x040000 0x010000>;
43         };
44
45         art: partition@50000 {
46                 label = "art";
47                 reg = <0x050000 0x010000>;
48                 read-only;
49         };
50
51         info: partition@60000 {
52                 label = "info";
53                 reg = <0x060000 0x020000>;
54         };
55
56         partition@80000 {
57                 label = "user-config";
58                 reg = <0x080000 0x040000>;
59         };
60
61         partition@c0000 {
62                 label = "firmware";
63                 reg = <0x0c0000 0xf00000>;
64                 compatible = "denx,uimage";
65         };
66
67         partition@ff0000 {
68                 label = "default-config";
69                 reg = <0xff0000 0x010000>;
70         };
71 };