ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_enterasys_ws-ap3705i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.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 = "enterasys,ws-ap3705i", "qca,ar9344";
11 model = "Enterasys WS-AP3705i";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &led_power_green;
19 led-failsafe = &led_power_red;
20 led-running = &led_power_green;
21 led-upgrade = &led_power_red;
22 label-mac-device = &eth0;
23 };
24
25 mtd-concat {
26 compatible = "mtd-concat";
27 devices = <&fwconcat0 &fwconcat1>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 compatible = "denx,uimage";
36 label = "firmware";
37 reg = <0x0 0x1dd0000>;
38 };
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 pinctrl-names = "default";
46 pinctrl-0 = <&enable_gpio_11 &enable_gpio_16>;
47
48 led_power_green: power_green {
49 function = LED_FUNCTION_POWER;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 };
53
54 led_power_red: power_red {
55 function = LED_FUNCTION_POWER;
56 color = <LED_COLOR_ID_RED>;
57 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
58 };
59
60 lan_blue {
61 function = LED_FUNCTION_LAN;
62 color = <LED_COLOR_ID_BLUE>;
63 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
64 };
65
66 lan_green {
67 function = LED_FUNCTION_LAN;
68 color = <LED_COLOR_ID_GREEN>;
69 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
70 };
71
72 radio2 {
73 label = "green:radio2";
74 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
75 linux,default-trigger = "phy0tpt";
76 };
77 };
78
79 ath9k-leds {
80 compatible = "gpio-leds";
81
82 radio1 {
83 label = "green:radio1";
84 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
85 linux,default-trigger = "phy1tpt";
86 };
87 };
88
89 keys {
90 compatible = "gpio-keys";
91
92 reset {
93 label = "Reset button";
94 linux,code = <KEY_RESTART>;
95 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
96 };
97 };
98 };
99
100 &ref {
101 clock-frequency = <40000000>;
102 };
103
104 &pinmux {
105 enable_gpio_16: pinmux_enable_gpio_16 {
106 pinctrl-single,bits = <0x10 0x0 0x000000ff>;
107 };
108
109 enable_gpio_11: pinmux_enable_gpio_11 {
110 pinctrl-single,bits = <0x8 0x0 0xff000000>;
111 };
112 };
113
114 &wmac {
115 status = "okay";
116 qca,no-eeprom;
117 };
118
119 &spi {
120 status = "okay";
121
122 flash@0 {
123 compatible = "jedec,spi-nor";
124 reg = <0>;
125 spi-max-frequency = <25000000>;
126
127 partitions {
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 partition@0 {
133 label = "u-boot-bak";
134 reg = <0x0 0x80000>;
135 read-only;
136 };
137
138 partition@80000 {
139 label = "u-boot-env0";
140 reg = <0x80000 0x10000>;
141 read-only;
142 };
143
144 partition@90000 {
145 label = "u-boot-env1";
146 reg = <0x90000 0x10000>;
147 read-only;
148 };
149
150 partition@a0000 {
151 label = "u-boot";
152 reg = <0xa0000 0x80000>;
153 read-only;
154 };
155
156 partition@120000 {
157 label = "calibrate";
158 reg = <0x120000 0x10000>;
159 read-only;
160 };
161
162 partition@130000 {
163 label = "nvram";
164 reg = <0x130000 0x100000>;
165 read-only;
166 };
167
168 fwconcat0: partition@230000 {
169 label = "fwconcat0";
170 reg = <0x230000 0xdd0000>;
171 };
172 };
173 };
174
175 flash@1 {
176 compatible = "jedec,spi-nor";
177 reg = <1>;
178 spi-max-frequency = <25000000>;
179
180 partitions {
181 compatible = "fixed-partitions";
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 fwconcat1: partition@0 {
186 label = "fwconcat1";
187 reg = <0x0 0x1000000>;
188 };
189 };
190 };
191 };
192
193 &pcie {
194 status = "okay";
195
196 ath9k: wifi@0,0 {
197 compatible = "pci168c,0033";
198 reg = <0x0000 0 0 0 0>;
199 qca,no-eeprom;
200 #gpio-cells = <2>;
201 gpio-controller;
202 };
203 };
204
205 &mdio0 {
206 status = "okay";
207
208 phy0: ethernet-phy@0 {
209 reg = <0>;
210 };
211 };
212
213 &eth0 {
214 status = "okay";
215
216 pll-data = <0x1e000000 0x08000101 0x08001313>;
217
218 phy-mode = "rgmii";
219 phy-handle = <&phy0>;
220
221 gmac-config {
222 device = <&gmac>;
223 rgmii-gmac0 = <1>;
224 rxd-delay = <0>;
225 rxdv-delay = <0>;
226 txen-delay = <0>;
227 txd-delay = <0>;
228 };
229 };