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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,archer-c2-v3", "qca,qca9563";
11 model = "TP-Link Archer C2 v3";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 compatible = "gpio-leds";
24 label = "green:system";
25 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 label = "green:wifi2g";
31 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
36 label = "green:wifi5g";
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
42 function = LED_FUNCTION_WPS;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 function = LED_FUNCTION_WAN;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
54 function = LED_FUNCTION_WAN;
55 color = <LED_COLOR_ID_ORANGE>;
56 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
76 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-keys";
84 label = "Reset button";
85 linux,code = <KEY_RESTART>;
86 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
92 linux,code = <KEY_WPS_BUTTON>;
93 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
94 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 compatible = "fixed-layout";
137 #address-cells = <1>;
140 macaddr_info_8: macaddr@8 {
141 compatible = "mac-base";
143 #nvmem-cell-cells = <1>;
148 art: partition@7f0000 {
150 reg = <0x7f0000 0x010000>;
154 compatible = "fixed-layout";
155 #address-cells = <1>;
158 cal_art_5000: calibration@5000 {
159 reg = <0x5000 0x844>;
170 phy0: ethernet-phy@0 {
173 qca,mib-poll-interval = <500>;
175 qca,ar8327-initvals = <
176 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
177 0x7c 0x0000007e /* PORT0_STATUS */
186 compatible = "qcom,ath10k";
187 reg = <0x0000 0 0 0 0>;
188 nvmem-cells = <&cal_art_5000>, <&macaddr_info_8 (-1)>;
189 nvmem-cell-names = "calibration", "mac-address";
196 nvmem-cells = <&macaddr_info_8 0>;
197 nvmem-cell-names = "mac-address";
199 phy-handle = <&phy0>;
205 mtd-cal-data = <&art 0x1000>;
206 nvmem-cells = <&macaddr_info_8 0>;
207 nvmem-cell-names = "mac-address";