ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_eap245-v3.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
9 / {
10 compatible = "tplink,eap245-v3", "qca,qca9563";
11 model = "TP-Link EAP245 v3 / EAP265 HD v1";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_amber;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_amber;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_status_green: status_green {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
28 default-state = "on";
29 };
30
31 led_status_amber: status_amber {
32 function = LED_FUNCTION_STATUS;
33 color = <LED_COLOR_ID_AMBER>;
34 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "Reset button";
43 linux,code = <KEY_RESTART>;
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
46 };
47 };
48 };
49
50 &pcie {
51 status = "okay";
52
53 wifi@0,0 {
54 compatible = "qcom,ath10k";
55 reg = <0 0 0 0 0>;
56
57 nvmem-cells = <&macaddr_info_8 1>, <&calibration_ath10k>;
58 nvmem-cell-names = "mac-address", "pre-calibration";
59 };
60 };
61
62 &spi {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <25000000>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "factory-boot";
77 reg = <0x000000 0x040000>;
78 read-only;
79 };
80
81 partition@40000 {
82 label = "u-boot";
83 reg = <0x040000 0x040000>;
84 read-only;
85 };
86
87 partition@80000 {
88 label = "partition-table";
89 reg = <0x080000 0x010000>;
90 read-only;
91 };
92
93 info: partition@90000 {
94 label = "info";
95 reg = <0x090000 0x010000>;
96 read-only;
97
98 nvmem-layout {
99 compatible = "fixed-layout";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 macaddr_info_8: macaddr@8 {
104 compatible = "mac-base";
105 reg = <0x8 0x6>;
106 #nvmem-cell-cells = <1>;
107 };
108 };
109 };
110
111 partition@a0000 {
112 label = "art";
113 reg = <0x0a0000 0x010000>;
114 read-only;
115
116 nvmem-layout {
117 compatible = "fixed-layout";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 calibration_ath9k: calibration@1000 {
122 reg = <0x1000 0x440>;
123 };
124
125 calibration_ath10k: calibration@5000 {
126 reg = <0x5000 0x2f20>;
127 };
128 };
129 };
130
131 partition@b0000 {
132 label = "extra-para";
133 reg = <0x0b0000 0x010000>;
134 read-only;
135 };
136
137 partition@c0000 {
138 compatible = "openwrt,elf";
139 label = "firmware";
140 reg = <0x0c0000 0xe40000>;
141 };
142
143 partition@f00000 {
144 label = "config";
145 reg = <0xf00000 0x030000>;
146 read-only;
147 };
148
149 partition@f30000 {
150 label = "mutil-log";
151 reg = <0xf30000 0x080000>;
152 read-only;
153 };
154
155 partition@fb0000 {
156 label = "oops";
157 reg = <0xfb0000 0x040000>;
158 read-only;
159 };
160 };
161 };
162 };
163
164 &mdio0 {
165 status = "okay";
166
167 phy0: ethernet-phy@0 {
168 reg = <0>;
169 phy-mode = "sgmii";
170 qca,ar8327-initvals = <
171 0x04 0x00080080 /* PAD0 */
172 0x7c 0x0000007e /* PORT0_STATUS */
173 0xe0 0xc74164de /* SGMII_CTRL */
174 >;
175 };
176 };
177
178 &eth0 {
179 status = "okay";
180
181 phy-handle = <&phy0>;
182 phy-mode = "sgmii";
183
184 nvmem-cells = <&macaddr_info_8 0>;
185 nvmem-cell-names = "mac-address";
186 };
187
188 &wmac {
189 status = "okay";
190
191 nvmem-cells = <&macaddr_info_8 0>, <&calibration_ath9k>;
192 nvmem-cell-names = "mac-address", "calibration";
193 };