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>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <25000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
109 label = "factory-uboot";
110 reg = <0x000000 0x020000>;
116 reg = <0x020000 0x10000>;
122 reg = <0x030000 0x7A0000>;
123 compatible = "denx,uimage";
126 info: partition@7e0000 {
128 reg = <0x7e0000 0x010000>;
132 art: partition@7f0000 {
134 reg = <0x7f0000 0x010000>;
144 phy0: ethernet-phy@0 {
147 qca,mib-poll-interval = <500>;
149 qca,ar8327-initvals = <
150 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
151 0x7c 0x0000007e /* PORT0_STATUS */
163 nvmem-cells = <&macaddr_info_8>;
164 nvmem-cell-names = "mac-address";
166 phy-handle = <&phy0>;
172 mtd-cal-data = <&art 0x1000>;
173 nvmem-cells = <&macaddr_info_8>;
174 nvmem-cell-names = "mac-address";
178 compatible = "nvmem-cells";
179 #address-cells = <1>;
182 macaddr_info_8: macaddr@8 {