ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9557_extreme-networks_ws-ap3805i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 = "extreme-networks,ws-ap3805i", "qca,qca9557";
11 model = "Extreme Networks WS-AP3805i";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_power_green: power_green {
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
28 };
29
30 led_power_amber: power_amber {
31 function = LED_FUNCTION_POWER;
32 color = <LED_COLOR_ID_AMBER>;
33 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
34 };
35
36 wlan5 {
37 label = "green:wlan5";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0tpt";
40 };
41
42 wlan2 {
43 label = "green:wlan2";
44 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy1tpt";
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 reset {
53 label = "reset";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 watchdog {
60 compatible = "linux,wdt-gpio";
61 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
62 hw_algo = "toggle";
63 hw_margin_ms = <20000>;
64 always-running;
65 };
66 };
67
68 &wdt {
69 status = "disabled";
70 };
71
72 &wmac {
73 status = "okay";
74
75 qca,no-eeprom;
76 };
77
78 &pcie0 {
79 status = "okay";
80
81 wifi@0,0 {
82 compatible = "qcom,ath10k";
83 reg = <0x0 0 0 0 0>;
84 nvmem-cells = <&cal_art_5000>;
85 nvmem-cell-names = "calibration";
86 };
87 };
88
89 &mdio0 {
90 status = "okay";
91
92 phy5: ethernet-phy@5 {
93 reg = <5>;
94 };
95 };
96
97 &eth0 {
98 status = "okay";
99
100 phy-handle = <&phy5>;
101 phy-mode = "rgmii-id";
102
103 pll-data = <0x82000000 0x80000101 0x80001313>;
104
105 gmac-config {
106 device = <&gmac>;
107 rgmii-enabled = <1>;
108 };
109 };
110
111 &spi {
112 status = "okay";
113
114 flash@0 {
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <50000000>;
118 m25p,fast-read;
119
120 partitions {
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
123 #size-cells = <1>;
124
125 partition@0 {
126 label = "u-boot-bak";
127 reg = <0x0 0x80000>;
128 read-only;
129 };
130
131 partition@80000 {
132 label = "u-boot";
133 reg = <0x080000 0x80000>;
134 read-only;
135 };
136
137 partition@100000 {
138 label = "cfg1";
139 reg = <0x100000 0x40000>;
140 read-only;
141 };
142
143 partition@140000 {
144 label = "cfg2";
145 reg = <0x140000 0x40000>;
146 read-only;
147 };
148
149 partition@180000 {
150 label = "nvram4";
151 reg = <0x180000 0x40000>;
152 read-only;
153 };
154
155 partition@1c0000 {
156 label = "nvram3";
157 reg = <0x1c0000 0x40000>;
158 read-only;
159 };
160
161 partition@200000 {
162 label = "nvram2";
163 reg = <0x200000 0x40000>;
164 read-only;
165 };
166
167 partition@240000 {
168 label = "nvram1";
169 reg = <0x240000 0x40000>;
170 read-only;
171 };
172
173 partition@280000 {
174 label = "PriImg";
175 reg = <0x280000 0x1000000>;
176 read-only;
177 };
178
179 partition@1280000 {
180 label = "SecImg";
181 reg = <0x1280000 0x1000000>;
182 read-only;
183 };
184
185 partition@2280000 {
186 label = "firmware";
187 compatible = "denx,uimage";
188 reg = <0x2280000 0x1cc0000>;
189 };
190
191 partition@3f40000 {
192 label = "cert";
193 reg = <0x3f40000 0x80000>;
194 read-only;
195 };
196
197 partition@3fc0000 {
198 label = "art";
199 reg = <0x3fc0000 0x40000>;
200 read-only;
201
202 nvmem-layout {
203 compatible = "fixed-layout";
204 #address-cells = <1>;
205 #size-cells = <1>;
206
207 cal_art_5000: calibration@5000 {
208 reg = <0x5000 0x844>;
209 };
210 };
211 };
212 };
213 };
214 };