1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca956x.dtsi"
10 compatible = "tplink,archer-c25-v1", "qca,qca9561";
11 model = "TP-Link Archer C25 v1";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ð0;
22 compatible = "spi-gpio";
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>;
31 led_gpio: led_gpio@0 {
32 compatible = "fairchild,74hc595";
36 registers-number = <1>;
37 spi-max-frequency = <10000000>;
42 compatible = "gpio-keys";
45 label = "WiFi button";
46 linux,code = <KEY_RFKILL>;
47 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
51 label = "Reset button";
52 linux,code = <KEY_RESTART>;
53 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-leds";
61 label = "tp-link:green:power";
62 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:wps";
68 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
72 label = "tp-link:green:wlan2g";
73 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "phy1tpt";
78 label = "tp-link:green:wlan5g";
79 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
80 linux,default-trigger = "phy0tpt";
84 label = "tp-link:green:wan";
85 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
89 label = "tp-link:amber:wan";
90 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
94 label = "tp-link:green:lan1";
95 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
99 label = "tp-link:green:lan2";
100 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
104 label = "tp-link:green:lan3";
105 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
109 label = "tp-link:green:lan4";
110 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <25000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
131 label = "factory-boot";
132 reg = <0x000000 0x020000>;
138 reg = <0x020000 0x010000>;
143 compatible = "denx,uimage";
145 reg = <0x030000 0x7a0000>;
148 config: partition@7d0000 {
150 reg = <0x7d0000 0x010000>;
154 info: partition@7e0000 {
156 reg = <0x7e0000 0x010000>;
160 art: partition@7f0000 {
162 reg = <0x7f0000 0x010000>;
180 phy-handle = <&swphy4>;
182 mtd-mac-address = <&info 0x8>;
188 mtd-mac-address = <&info 0x8>;
189 mtd-mac-address-increment = <1>;
195 mtd-cal-data = <&art 0x1000>;
196 mtd-mac-address = <&info 0x8>;