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-c7-v4", "qca,qca9563";
11 model = "TP-Link Archer C7 v4";
14 bootargs = "console=ttyS0,115200n8";
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
25 compatible = "spi-gpio";
29 gpio-sck = <&gpio 15 GPIO_ACTIVE_HIGH>; // 74HC595 SRCLK (Serial Clock)
30 gpio-mosi = <&gpio 14 GPIO_ACTIVE_HIGH>; // 74HC595 SER (Serial)
31 cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; // 74HC595 RCLK (Register Clock)
32 num-chipselects = <1>;
34 led_gpio: led_gpio@0 {
35 compatible = "fairchild,74hc595";
39 registers-number = <1>;
40 spi-max-frequency = <10000000>;
45 compatible = "gpio-export";
47 gpio_shift_register_oe {
48 gpio-export,name = "tp-link:oe:sr";
49 gpio-export,output = <0>;
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>; // 74HC595 /OE (Output Enable)
53 gpio_shift_register_reset {
54 gpio-export,name = "tp-link:reset:sr";
55 gpio-export,output = <1>;
56 gpios = <&gpio 21 GPIO_ACTIVE_LOW>; // 74HC595 /SRCLR (Serial Clear)
61 compatible = "gpio-leds";
64 label = "tp-link:green:system";
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
70 label = "tp-link:green:usb1";
71 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
72 trigger-sources = <&hub_port1>;
73 linux,default-trigger = "usbport";
77 label = "tp-link:green:usb2";
78 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
79 trigger-sources = <&hub_port0>;
80 linux,default-trigger = "usbport";
84 label = "tp-link:green:wlan5g";
85 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
86 linux,default-trigger = "phy0tpt";
90 label = "tp-link:green:wlan2g";
91 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
92 linux,default-trigger = "phy1tpt";
96 label = "tp-link:green:wan";
97 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
101 label = "tp-link:orange:wan";
102 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
106 label = "tp-link:green:lan1";
107 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
111 label = "tp-link:green:lan2";
112 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
116 label = "tp-link:green:lan3";
117 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
121 label = "tp-link:green:lan4";
122 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
126 label = "tp-link:green:wps";
127 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
132 compatible = "gpio-keys";
135 label = "Reset button";
136 linux,code = <KEY_RESTART>;
137 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
138 debounce-interval = <60>;
142 label = "WPS button";
143 linux,code = <KEY_WPS_BUTTON>;
144 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
145 debounce-interval = <60>;
168 #address-cells = <1>;
174 #trigger-source-cells = <0>;
183 #address-cells = <1>;
189 #trigger-source-cells = <0>;
198 compatible = "jedec,spi-nor";
200 spi-max-frequency = <25000000>;
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
208 label = "factory-uboot";
209 reg = <0x000000 0x020000>;
215 reg = <0x020000 0x020000>;
221 reg = <0x040000 0xec0000>;
222 compatible = "denx,uimage";
225 info: partition@f00000 {
227 reg = <0xf00000 0x0f0000>;
231 art: partition@ff0000 {
233 reg = <0xff0000 0x010000>;
245 phy0: ethernet-phy@0 {
249 qca,ar8327-initvals = <
250 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
251 0x7c 0x0000007e /* PORT0_STATUS */
252 0x94 0x00000200 /* PORT6_STATUS */
260 pll-data = <0x03000101 0x00000101 0x00001919>;
263 mtd-mac-address = <&info 0x8>;
264 phy-handle = <&phy0>;
269 mtd-cal-data = <&art 0x1000>;
270 mtd-mac-address = <&info 0x8>;