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";
18 led-boot = &led_system;
19 led-failsafe = &led_system;
20 led-running = &led_system;
21 led-upgrade = &led_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>;
110 compatible = "jedec,spi-nor";
112 spi-max-frequency = <25000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
120 label = "factory-uboot";
121 reg = <0x000000 0x020000>;
127 reg = <0x020000 0x10000>;
133 reg = <0x030000 0x7A0000>;
134 compatible = "denx,uimage";
137 info: partition@7e0000 {
139 reg = <0x7e0000 0x010000>;
143 art: partition@7f0000 {
145 reg = <0x7f0000 0x010000>;
160 phy0: ethernet-phy@0 {
163 qca,mib-poll-interval = <500>;
165 qca,ar8327-initvals = <
166 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
167 0x7c 0x0000007e /* PORT0_STATUS */
179 mtd-mac-address = <&info 0x8>;
181 phy-handle = <&phy0>;
187 mtd-cal-data = <&art 0x1000>;
188 mtd-mac-address = <&info 0x8>;