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 compatible = "fixed-layout";
133 #address-cells = <1>;
136 macaddr_info_8: macaddr@8 {
137 compatible = "mac-base";
139 #nvmem-cell-cells = <1>;
144 art: partition@7f0000 {
146 reg = <0x7f0000 0x010000>;
150 compatible = "fixed-layout";
151 #address-cells = <1>;
154 cal_art_5000: calibration@5000 {
155 reg = <0x5000 0x844>;
166 phy0: ethernet-phy@0 {
169 qca,mib-poll-interval = <500>;
171 qca,ar8327-initvals = <
172 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
173 0x7c 0x0000007e /* PORT0_STATUS */
182 compatible = "qcom,ath10k";
183 reg = <0x0000 0 0 0 0>;
184 nvmem-cells = <&cal_art_5000>, <&macaddr_info_8 (-1)>;
185 nvmem-cell-names = "calibration", "mac-address";
192 nvmem-cells = <&macaddr_info_8 0>;
193 nvmem-cell-names = "mac-address";
195 phy-handle = <&phy0>;
201 mtd-cal-data = <&art 0x1000>;
202 nvmem-cells = <&macaddr_info_8 0>;
203 nvmem-cell-names = "mac-address";