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";
18 led-boot = &led_system;
19 led-failsafe = &led_system;
20 led-running = &led_system;
21 led-upgrade = &led_system;
22 label-mac-device = ð0;
26 compatible = "spi-gpio";
30 sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; // 74HC595 SRCLK (Serial Clock)
31 mosi-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; // 74HC595 SER (Serial)
32 cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; // 74HC595 RCLK (Register Clock)
33 num-chipselects = <1>;
35 led_gpio: led_gpio@0 {
36 compatible = "fairchild,74hc595";
40 registers-number = <1>;
41 spi-max-frequency = <10000000>;
46 compatible = "gpio-export";
48 gpio_shift_register_oe {
49 gpio-export,name = "tp-link:oe:sr";
50 gpio-export,output = <0>;
51 gpios = <&gpio 1 GPIO_ACTIVE_LOW>; // 74HC595 /OE (Output Enable)
54 gpio_shift_register_reset {
55 gpio-export,name = "tp-link:reset:sr";
56 gpio-export,output = <1>;
57 gpios = <&gpio 21 GPIO_ACTIVE_LOW>; // 74HC595 /SRCLR (Serial Clear)
62 compatible = "gpio-leds";
65 label = "tp-link:green:system";
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:usb1";
72 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
73 trigger-sources = <&hub_port1>;
74 linux,default-trigger = "usbport";
78 label = "tp-link:green:usb2";
79 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
80 trigger-sources = <&hub_port0>;
81 linux,default-trigger = "usbport";
85 label = "tp-link:green:wlan5g";
86 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
87 linux,default-trigger = "phy0tpt";
91 label = "tp-link:green:wlan2g";
92 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
93 linux,default-trigger = "phy1tpt";
97 label = "tp-link:green:wan";
98 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
102 label = "tp-link:orange:wan";
103 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
107 label = "tp-link:green:lan1";
108 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
112 label = "tp-link:green:lan2";
113 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
117 label = "tp-link:green:lan3";
118 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
122 label = "tp-link:green:lan4";
123 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
127 label = "tp-link:green:wps";
128 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
133 compatible = "gpio-keys";
136 label = "Reset button";
137 linux,code = <KEY_RESTART>;
138 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
139 debounce-interval = <60>;
143 label = "WPS button";
144 linux,code = <KEY_WPS_BUTTON>;
145 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
146 debounce-interval = <60>;
168 #address-cells = <1>;
174 #trigger-source-cells = <0>;
183 #address-cells = <1>;
189 #trigger-source-cells = <0>;
199 compatible = "jedec,spi-nor";
201 spi-max-frequency = <25000000>;
204 compatible = "fixed-partitions";
205 #address-cells = <1>;
209 label = "factory-uboot";
210 reg = <0x000000 0x020000>;
216 reg = <0x020000 0x020000>;
222 reg = <0x040000 0xec0000>;
223 compatible = "denx,uimage";
226 info: partition@f00000 {
228 reg = <0xf00000 0x0f0000>;
232 art: partition@ff0000 {
234 reg = <0xff0000 0x010000>;
246 phy0: ethernet-phy@0 {
249 qca,mib-poll-interval = <500>;
251 qca,ar8327-initvals = <
252 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
253 0x7c 0x0000007e /* PORT0_STATUS */
254 0x94 0x00000200 /* PORT6_STATUS */
262 pll-data = <0x03000101 0x00000101 0x00001919>;
265 mtd-mac-address = <&info 0x8>;
266 phy-handle = <&phy0>;
272 mtd-cal-data = <&art 0x1000>;
273 mtd-mac-address = <&info 0x8>;