ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9563_tplink_archer-c6-v2-us.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "qca9563_tplink_archer-x6-v2.dtsi"
5
6 / {
7 compatible = "tplink,archer-c6-v2-us", "qca,qca9563";
8 model = "TP-Link Archer C6 v2 (US) / A6 v2 (US/TW)";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 label = "tp-link:green:power";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
23 default-state = "on";
24 };
25
26 wlan2g {
27 label = "tp-link:green:wlan2g";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy1tpt";
30 };
31
32 wlan5g {
33 label = "tp-link:green:wlan5g";
34 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
36 };
37
38 lan {
39 label = "tp-link:green:lan";
40 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
41 };
42
43 wan {
44 label = "tp-link:green:wan";
45 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
46 };
47
48 wan_fail {
49 label = "tp-link:amber:wan";
50 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
51 };
52
53 wps {
54 label = "tp-link:green:wps";
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 reset {
63 label = "Reset button";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
67 };
68
69 wps {
70 label = "WPS button";
71 linux,code = <KEY_WPS_BUTTON>;
72 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
74 };
75 };
76 };
77
78 &spi {
79 status = "okay";
80
81 num-cs = <1>;
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <25000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "factory-boot";
95 reg = <0x000000 0x020000>;
96 read-only;
97 };
98
99 mac: partition@20000 {
100 label = "mac";
101 reg = <0x020000 0x010000>;
102 read-only;
103 };
104
105 partition@30000 {
106 label = "u-boot";
107 reg = <0x030000 0x020000>;
108 read-only;
109 };
110
111 partition@50000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x050000 0xf80000>;
115 };
116
117 partition@fd0000 {
118 label = "tplink";
119 reg = <0xfd0000 0x020000>;
120 read-only;
121 };
122
123 art: partition@ff0000 {
124 label = "art";
125 reg = <0xff0000 0x010000>;
126 read-only;
127 };
128 };
129 };
130 };