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 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 compatible = "gpio-leds";
24 label = "tp-link:green:system";
25 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 label = "tp-link:green:wifi2g";
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
36 label = "tp-link:green:wifi5g";
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
42 label = "tp-link:green:wps";
43 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 label = "tp-link:green:wan";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 label = "tp-link:orange:wan";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57 label = "tp-link:green:lan1";
58 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
62 label = "tp-link:green:lan2";
63 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
67 label = "tp-link:green:lan3";
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 label = "tp-link:green:lan4";
73 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
78 compatible = "gpio-keys";
81 label = "Reset button";
82 linux,code = <KEY_RESTART>;
83 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
89 linux,code = <KEY_WPS_BUTTON>;
90 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
91 debounce-interval = <60>;
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <25000000>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
116 label = "factory-uboot";
117 reg = <0x000000 0x020000>;
123 reg = <0x020000 0x10000>;
129 reg = <0x030000 0x7A0000>;
130 compatible = "denx,uimage";
133 info: partition@7e0000 {
135 reg = <0x7e0000 0x010000>;
139 art: partition@7f0000 {
141 reg = <0x7f0000 0x010000>;
156 phy0: ethernet-phy@0 {
159 qca,mib-poll-interval = <500>;
161 qca,ar8327-initvals = <
162 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
163 0x7c 0x0000007e /* PORT0_STATUS */
175 mtd-mac-address = <&info 0x8>;
177 phy-handle = <&phy0>;
183 mtd-cal-data = <&art 0x1000>;
184 mtd-mac-address = <&info 0x8>;