1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tplink,archer-c2-v3", "qca,qca9563";
10 model = "TP-Link Archer C2 v3";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
20 compatible = "gpio-leds";
23 label = "green:system";
24 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
29 label = "green:wifi2g";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,default-trigger = "phy1tpt";
35 label = "green:wifi5g";
36 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
77 compatible = "gpio-keys";
80 label = "Reset button";
81 linux,code = <KEY_RESTART>;
82 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
88 linux,code = <KEY_WPS_BUTTON>;
89 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
105 compatible = "jedec,spi-nor";
107 spi-max-frequency = <25000000>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
115 label = "factory-uboot";
116 reg = <0x000000 0x020000>;
122 reg = <0x020000 0x10000>;
128 reg = <0x030000 0x7A0000>;
129 compatible = "denx,uimage";
132 info: partition@7e0000 {
134 reg = <0x7e0000 0x010000>;
138 art: partition@7f0000 {
140 reg = <0x7f0000 0x010000>;
151 phy0: ethernet-phy@0 {
154 qca,mib-poll-interval = <500>;
156 qca,ar8327-initvals = <
157 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
158 0x7c 0x0000007e /* PORT0_STATUS */
170 mtd-mac-address = <&info 0x8>;
172 phy-handle = <&phy0>;
178 mtd-cal-data = <&art 0x1000>;
179 mtd-mac-address = <&info 0x8>;