1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,archer-c25-v1", "qca,qca9561";
10 model = "TP-Link Archer C25 v1";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = ð0;
21 compatible = "spi-gpio";
25 sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
26 mosi-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
27 cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
28 num-chipselects = <1>;
30 led_gpio: led_gpio@0 {
31 compatible = "fairchild,74hc595";
35 registers-number = <1>;
36 spi-max-frequency = <10000000>;
41 compatible = "gpio-keys";
44 label = "WiFi button";
45 linux,code = <KEY_RFKILL>;
46 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
50 label = "Reset button";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-leds";
60 label = "green:power";
61 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
71 label = "green:wlan2g";
72 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy1tpt";
77 label = "green:wlan5g";
78 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "phy0tpt";
84 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
89 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
94 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
99 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
103 label = "green:lan3";
104 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
108 label = "green:lan4";
109 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <25000000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
128 label = "factory-boot";
129 reg = <0x000000 0x020000>;
135 reg = <0x020000 0x010000>;
140 compatible = "denx,uimage";
142 reg = <0x030000 0x7a0000>;
145 config: partition@7d0000 {
147 reg = <0x7d0000 0x010000>;
151 info: partition@7e0000 {
153 reg = <0x7e0000 0x010000>;
157 art: partition@7f0000 {
159 reg = <0x7f0000 0x010000>;
173 phy-handle = <&swphy4>;
175 nvmem-cells = <&macaddr_info_8>;
176 nvmem-cell-names = "mac-address";
182 nvmem-cells = <&macaddr_info_8>;
183 nvmem-cell-names = "mac-address";
184 mac-address-increment = <1>;
190 mtd-cal-data = <&art 0x1000>;
191 nvmem-cells = <&macaddr_info_8>;
192 nvmem-cell-names = "mac-address";
196 compatible = "nvmem-cells";
197 #address-cells = <1>;
200 macaddr_info_8: macaddr@8 {