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-c2-v3", "qca,qca9563";
11 model = "TP-Link Archer C2 v3";
14 bootargs = "console=ttyS0,115200n8";
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
25 compatible = "gpio-leds";
28 label = "tp-link:green:system";
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
34 label = "tp-link:green:wifi2g";
35 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
40 label = "tp-link:green:wifi5g";
41 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
46 label = "tp-link:green:wps";
47 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
51 label = "tp-link:green:wan";
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 label = "tp-link:orange:wan";
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 label = "tp-link:green:lan1";
62 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
66 label = "tp-link:green:lan2";
67 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
71 label = "tp-link:green:lan3";
72 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
76 label = "tp-link:green:lan4";
77 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys";
85 label = "Reset button";
86 linux,code = <KEY_RESTART>;
87 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
88 debounce-interval = <60>;
93 linux,code = <KEY_WPS_BUTTON>;
94 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
95 debounce-interval = <60>;
109 compatible = "jedec,spi-nor";
111 spi-max-frequency = <25000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
119 label = "factory-uboot";
120 reg = <0x000000 0x020000>;
126 reg = <0x020000 0x10000>;
131 reg = <0x030000 0x7A0000>;
132 compatible = "denx,uimage";
135 info: partition@7e0000 {
136 label = "product-info";
137 reg = <0x7e0000 0x010000>;
141 art: partition@7f0000 {
143 reg = <0x7f0000 0x010000>;
158 phy0: ethernet-phy@0 {
162 qca,ar8327-initvals = <
163 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
164 0x7c 0x0000007e /* PORT0_STATUS */
176 mtd-mac-address = <&info 0x8>;
178 phy-handle = <&phy0>;
183 mtd-cal-data = <&art 0x1000>;
184 mtd-mac-address = <&info 0x8>;