ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_dlink_covr-p2500-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
9
10 / {
11 compatible = "dlink,covr-p2500-a1", "qca,qca9563";
12 model = "D-Link COVR-P2500 A1";
13
14 aliases {
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_red;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 wps {
25 label = "wps";
26 linux,code = <KEY_WPS_BUTTON>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 };
29
30 reset {
31 label = "reset";
32 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&jtag_disable_pins>;
41
42 lan {
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
46 };
47
48 led_power_green: power_green {
49 function = LED_FUNCTION_POWER;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
52 default-state = "on";
53 };
54
55 wlan5g {
56 label = "green:wlan5g";
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0radio";
59 };
60
61 led_power_red: power_red {
62 function = LED_FUNCTION_POWER;
63 color = <LED_COLOR_ID_RED>;
64 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
65 };
66
67 wlan2g {
68 label = "green:wlan2g";
69 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "phy1radio";
71 };
72 };
73
74 virtual_flash {
75 compatible = "mtd-concat";
76
77 devices = <&fwconcat0 &fwconcat1>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 compatible = "openwrt,uimage", "denx,uimage";
86 openwrt,ih-magic = <0x68737173>;
87 label = "firmware";
88 reg = <0x0 0x0>;
89 };
90 };
91 };
92 };
93
94 &spi {
95 status = "okay";
96
97 flash@0 {
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <50000000>;
101
102 partitions {
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 partition@0 {
108 label = "u-boot";
109 reg = <0x0 0x40000>;
110 read-only;
111 };
112
113 partition@40000 {
114 label = "u-boot-env";
115 reg = <0x40000 0x10000>;
116 read-only;
117 };
118
119 fwconcat0: partition@50000 {
120 label = "fwconcat0";
121 reg = <0x50000 0xe30000>;
122 };
123
124 partition@e80000 {
125 label = "loader";
126 reg = <0xe80000 0x10000>;
127 read-only;
128 };
129
130 fwconcat1: partition@e90000 {
131 label = "fwconcat1";
132 reg = <0xe90000 0x160000>;
133 };
134
135 art: partition@ff0000 {
136 label = "art";
137 reg = <0xff0000 0x10000>;
138 read-only;
139
140 nvmem-layout {
141 compatible = "fixed-layout";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 calibration_ath9k: calibration@1000 {
146 reg = <0x1000 0x440>;
147 };
148
149 precalibration_ath10k: pre-calibration@5000 {
150 reg = <0x5000 0x2f20>;
151 };
152 };
153 };
154 };
155 };
156 };
157
158 &pcie {
159 status = "okay";
160
161 wifi@0,0 {
162 compatible = "qcom,ath10k";
163 reg = <0 0 0 0 0>;
164
165 nvmem-cells = <&precalibration_ath10k>;
166 nvmem-cell-names = "pre-calibration";
167 };
168 };
169
170 &gpio {
171 phy-reset {
172 gpio-hog;
173 gpios = <11 GPIO_ACTIVE_LOW>;
174 output-low;
175 line-name = "phy-reset";
176 };
177 };
178
179 &mdio0 {
180 status = "okay";
181
182 phy0: ethernet-phy@0 {
183 reg = <0>;
184 phy-mode = "sgmii";
185 qca,mib-poll-interval = <500>;
186
187 qca,ar8327-initvals = <
188 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
189 0x10 0x81000080 /* POWER_ON_STRAP */
190 0x50 0xcc35cc35 /* LED_CTRL0 */
191 0x54 0xcb37cb37 /* LED_CTRL1 */
192 0x58 0x00000000 /* LED_CTRL2 */
193 0x5c 0x00f3cf00 /* LED_CTRL3 */
194 0x7c 0x0000007e /* PORT0_STATUS */
195 >;
196 };
197 };
198
199 &eth0 {
200 status = "okay";
201
202 pll-data = <0x03000101 0x00000101 0x00001919>;
203
204 phy-mode = "sgmii";
205 phy-handle = <&phy0>;
206 };
207
208 &wmac {
209 status = "okay";
210
211 nvmem-cells = <&calibration_ath9k>;
212 nvmem-cell-names = "calibration";
213 };