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>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <25000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
113 label = "factory-uboot";
114 reg = <0x000000 0x020000>;
120 reg = <0x020000 0x10000>;
126 reg = <0x030000 0x7A0000>;
127 compatible = "denx,uimage";
130 info: partition@7e0000 {
132 reg = <0x7e0000 0x010000>;
136 art: partition@7f0000 {
138 reg = <0x7f0000 0x010000>;
149 phy0: ethernet-phy@0 {
152 qca,mib-poll-interval = <500>;
154 qca,ar8327-initvals = <
155 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
156 0x7c 0x0000007e /* PORT0_STATUS */
168 mtd-mac-address = <&info 0x8>;
170 phy-handle = <&phy0>;
176 mtd-cal-data = <&art 0x1000>;
177 mtd-mac-address = <&info 0x8>;