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 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = ð0;
22 compatible = "spi-gpio";
26 sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; // 74HC595 SRCLK (Serial Clock)
27 mosi-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; // 74HC595 SER (Serial)
28 cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; // 74HC595 RCLK (Register Clock)
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-export";
44 gpio_shift_register_oe {
45 gpio-export,name = "tp-link:oe:sr";
46 gpio-export,output = <0>;
47 gpios = <&gpio 1 GPIO_ACTIVE_LOW>; // 74HC595 /OE (Output Enable)
50 gpio_shift_register_reset {
51 gpio-export,name = "tp-link:reset:sr";
52 gpio-export,output = <1>;
53 gpios = <&gpio 21 GPIO_ACTIVE_LOW>; // 74HC595 /SRCLR (Serial Clear)
58 compatible = "gpio-leds";
61 label = "tp-link:green:system";
62 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:usb1";
68 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
69 trigger-sources = <&hub_port1>;
70 linux,default-trigger = "usbport";
74 label = "tp-link:green:usb2";
75 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
76 trigger-sources = <&hub_port0>;
77 linux,default-trigger = "usbport";
81 label = "tp-link:green:wlan5g";
82 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0tpt";
87 label = "tp-link:green:wlan2g";
88 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
89 linux,default-trigger = "phy1tpt";
93 label = "tp-link:green:wan";
94 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
98 label = "tp-link:orange:wan";
99 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
103 label = "tp-link:green:lan1";
104 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
108 label = "tp-link:green:lan2";
109 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
113 label = "tp-link:green:lan3";
114 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
118 label = "tp-link:green:lan4";
119 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
123 label = "tp-link:green:wps";
124 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
129 compatible = "gpio-keys";
132 label = "Reset button";
133 linux,code = <KEY_RESTART>;
134 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
135 debounce-interval = <60>;
139 label = "WPS button";
140 linux,code = <KEY_WPS_BUTTON>;
141 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
142 debounce-interval = <60>;
164 #address-cells = <1>;
170 #trigger-source-cells = <0>;
179 #address-cells = <1>;
185 #trigger-source-cells = <0>;
195 compatible = "jedec,spi-nor";
197 spi-max-frequency = <25000000>;
200 compatible = "fixed-partitions";
201 #address-cells = <1>;
205 label = "factory-uboot";
206 reg = <0x000000 0x020000>;
212 reg = <0x020000 0x020000>;
218 reg = <0x040000 0xec0000>;
219 compatible = "denx,uimage";
222 info: partition@f00000 {
224 reg = <0xf00000 0x0f0000>;
228 art: partition@ff0000 {
230 reg = <0xff0000 0x010000>;
242 phy0: ethernet-phy@0 {
245 qca,mib-poll-interval = <500>;
247 qca,ar8327-initvals = <
248 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
249 0x7c 0x0000007e /* PORT0_STATUS */
250 0x94 0x00000200 /* PORT6_STATUS */
258 pll-data = <0x03000101 0x00000101 0x00001919>;
261 mtd-mac-address = <&info 0x8>;
262 phy-handle = <&phy0>;
268 mtd-cal-data = <&art 0x1000>;
269 mtd-mac-address = <&info 0x8>;