uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c25-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 compatible = "tplink,archer-c25-v1", "qca,qca9561";
11 model = "TP-Link Archer C25 v1";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &eth0;
19 };
20
21 led_spi {
22 compatible = "spi-gpio";
23 #address-cells = <1>;
24 #size-cells = <0>;
25
26 sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
27 mosi-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
28 cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
29 num-chipselects = <1>;
30
31 led_gpio: led_gpio@0 {
32 compatible = "fairchild,74hc595";
33 reg = <0>;
34 gpio-controller;
35 #gpio-cells = <2>;
36 registers-number = <1>;
37 spi-max-frequency = <10000000>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 wifi {
45 label = "WiFi button";
46 linux,code = <KEY_RFKILL>;
47 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
48 };
49
50 reset {
51 label = "Reset button";
52 linux,code = <KEY_RESTART>;
53 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
54 };
55 };
56
57 leds {
58 compatible = "gpio-leds";
59
60 led_power: power {
61 label = "tp-link:green:power";
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 default-state = "on";
64 };
65
66 wps {
67 label = "tp-link:green:wps";
68 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
69 };
70
71 wlan2g {
72 label = "tp-link:green:wlan2g";
73 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "phy1tpt";
75 };
76
77 wlan5g {
78 label = "tp-link:green:wlan5g";
79 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
80 linux,default-trigger = "phy0tpt";
81 };
82
83 wan_green {
84 label = "tp-link:green:wan";
85 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
86 };
87
88 wan_amber {
89 label = "tp-link:amber:wan";
90 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
91 };
92
93 lan1 {
94 label = "tp-link:green:lan1";
95 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
96 };
97
98 lan2 {
99 label = "tp-link:green:lan2";
100 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
101 };
102
103 lan3 {
104 label = "tp-link:green:lan3";
105 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
106 };
107
108 lan4 {
109 label = "tp-link:green:lan4";
110 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
111 };
112 };
113 };
114
115 &spi {
116 status = "okay";
117
118 num-cs = <1>;
119
120 flash@0 {
121 compatible = "jedec,spi-nor";
122 reg = <0>;
123 spi-max-frequency = <25000000>;
124
125 partitions {
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
128 #size-cells = <1>;
129
130 partition@0 {
131 label = "factory-boot";
132 reg = <0x000000 0x020000>;
133 read-only;
134 };
135
136 partition@20000 {
137 label = "u-boot";
138 reg = <0x020000 0x010000>;
139 read-only;
140 };
141
142 partition@30000 {
143 compatible = "denx,uimage";
144 label = "firmware";
145 reg = <0x030000 0x7a0000>;
146 };
147
148 config: partition@7d0000 {
149 label = "config";
150 reg = <0x7d0000 0x010000>;
151 read-only;
152 };
153
154 info: partition@7e0000 {
155 label = "info";
156 reg = <0x7e0000 0x010000>;
157 read-only;
158 };
159
160 art: partition@7f0000 {
161 label = "art";
162 reg = <0x7f0000 0x010000>;
163 read-only;
164 };
165 };
166 };
167 };
168
169 &uart {
170 status = "okay";
171 };
172
173 &pcie {
174 status = "okay";
175 };
176
177 &eth0 {
178 status = "okay";
179
180 phy-handle = <&swphy4>;
181
182 mtd-mac-address = <&info 0x8>;
183 };
184
185 &eth1 {
186 status = "okay";
187
188 mtd-mac-address = <&info 0x8>;
189 mtd-mac-address-increment = <1>;
190 };
191
192 &wmac {
193 status = "okay";
194
195 mtd-cal-data = <&art 0x1000>;
196 mtd-mac-address = <&info 0x8>;
197 };