ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_dlink_dap-1720-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
9 / {
10 model = "D-Link DAP-1720 A1";
11 compatible = "dlink,dap-1720-a1", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
18
19 label-mac-device = &eth0;
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 button-reset {
26 label = "reset";
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 debounce-interval = <60>;
30 };
31
32 button-wps {
33 label = "wps";
34 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 debounce-interval = <60>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_status_red: led-status-red {
44 color = <LED_COLOR_ID_RED>;
45 function = LED_FUNCTION_STATUS;
46 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
47 panic-indicator;
48 };
49
50 led_status_green: led-status-green {
51 color = <LED_COLOR_ID_GREEN>;
52 function = LED_FUNCTION_STATUS;
53 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
54 default-state = "on";
55 };
56
57 led-rssi-middle {
58 color = <LED_COLOR_ID_GREEN>;
59 function = "signal"; //LED_FUNCTION_SIGNAL;
60 function-enumerator = <2>;
61 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 };
63
64 led-rssi-top {
65 color = <LED_COLOR_ID_GREEN>;
66 function = "signal"; //LED_FUNCTION_SIGNAL;
67 function-enumerator = <3>;
68 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
69 };
70
71 led-rssi-bottom-green {
72 color = <LED_COLOR_ID_GREEN>;
73 function = "signal"; //LED_FUNCTION_SIGNAL;
74 function-enumerator = <1>;
75 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
76 };
77
78 led-rssi-bottom-red {
79 color = <LED_COLOR_ID_RED>;
80 function = "signal"; //LED_FUNCTION_SIGNAL;
81 function-enumerator = <1>;
82 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
83 };
84 };
85 };
86
87 &spi {
88 status = "okay";
89
90 flash@0 {
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <25000000>;
94
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 partition@0 {
101 label = "u-boot"; // vendor calls it `bootloader`
102 reg = <0x000000 0x40000>;
103 read-only;
104 };
105
106 partition@40000 {
107 compatible = "u-boot,env";
108 label = "u-boot-env"; // vendor calls it `bdcfg`
109 reg = <0x040000 0x10000>;
110 read-only;
111 };
112
113 partition@50000 {
114 label = "devdata";
115 reg = <0x050000 0x10000>;
116 read-only;
117
118 nvmem-layout {
119 compatible = "fixed-layout";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 macaddr_ath10k: macaddr@94 {
124 compatible = "mac-base";
125 reg = <0x94 0x11>;
126 #nvmem-cell-cells = <1>;
127 };
128
129 macaddr_ath9k: macaddr@b0 {
130 compatible = "mac-base";
131 reg = <0xb0 0x11>;
132 #nvmem-cell-cells = <1>;
133 };
134
135 macaddr_lan: macaddr@c9 {
136 compatible = "mac-base";
137 reg = <0xc9 0x11>;
138 #nvmem-cell-cells = <1>;
139 };
140 };
141 };
142
143 partition@60000 {
144 label = "devconf";
145 reg = <0x060000 0x10000>;
146 read-only;
147 };
148
149 partition@70000 {
150 compatible = "seama";
151 label = "firmware";
152 reg = <0x070000 0xf80000>;
153 };
154
155 partition@ff0000 {
156 label = "art"; // vendor calls it `radiocfg`
157 reg = <0xff0000 0x010000>;
158 read-only;
159
160 nvmem-layout {
161 compatible = "fixed-layout";
162 #address-cells = <1>;
163 #size-cells = <1>;
164
165 cal_ath9k: cal@1000 {
166 reg = <0x1000 0x440>;
167 };
168
169 cal_ath10k: cal@5000 {
170 reg = <0x5000 0x844>;
171 };
172 };
173 };
174 };
175 };
176 };
177
178 &mdio0 {
179 status = "okay";
180
181 phy0: ethernet-phy@0 {
182 reg = <0>;
183 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
184 };
185 };
186
187 &eth0 {
188 status = "okay";
189
190 phy-handle = <&phy0>;
191 phy-mode = "sgmii";
192
193 nvmem-cells = <&macaddr_lan 0>;
194 nvmem-cell-names = "mac-address";
195 };
196
197 &pcie {
198 status = "okay";
199
200 wifi@0,0 {
201 compatible = "qcom,ath10k";
202 reg = <0x0000 0 0 0 0>;
203
204 nvmem-cells = <&cal_ath10k>, <&macaddr_ath10k 0>;
205 nvmem-cell-names = "calibration", "mac-address";
206 };
207 };
208
209 &wmac {
210 status = "okay";
211
212 nvmem-cells = <&cal_ath9k>, <&macaddr_ath9k 0>;
213 nvmem-cell-names = "calibration", "mac-address";
214 };