ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_ruckus_gd11.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.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 = "ruckus,gd11", "qca,ar7161";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_red;
17 label-mac-device = &eth0;
18 };
19
20 keys: keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33 dir-green {
34 label = "green:dir";
35 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
36 };
37
38 opt-green {
39 label = "green:opt";
40 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
41 };
42
43 led_power_green: power-green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
47 default-state = "on";
48 };
49
50 led_power_red: power-red {
51 function = LED_FUNCTION_POWER;
52 color = <LED_COLOR_ID_RED>;
53 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
54 panic-indicator;
55 };
56
57 wlan2g-green {
58 label = "green:wlan2g";
59 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "phy0assoc";
61 };
62
63 wlan2g-yellow {
64 label = "yellow:wlan2g";
65 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
66 linux,default-trigger = "phy0tpt";
67 };
68
69 wlan5g-green {
70 label = "green:wlan5g";
71 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
72 linux,default-trigger = "phy1assoc";
73 };
74
75 wlan5g-yellow {
76 label = "yellow:wlan5g";
77 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
78 linux,default-trigger = "phy1tpt";
79 };
80 };
81
82 reserved-memory {
83 #address-cells = <1>;
84 #size-cells = <1>;
85 ranges;
86
87 ruckus-himem@3ff0000 {
88 /* Ruckus Himem area used to control
89 * redundant boot image selection
90 */
91 compatible = "nvmem-rmem";
92 reg = <0x3ff0000 0x10000>;
93 no-map;
94 };
95 };
96
97 beamforming-2g-spi {
98 compatible = "spi-gpio";
99 mosi-gpios = <&ath9k0 5 GPIO_ACTIVE_HIGH>;
100 sck-gpios = <&ath9k0 6 GPIO_ACTIVE_HIGH>;
101 num-chipselects = <0>;
102 #address-cells = <1>;
103 #size-cells = <0>;
104
105 beamforming_2g_gpio: beamforming-2g-gpio@0 {
106 compatible = "fairchild,74hc595";
107 reg = <0>;
108 registers-number = <1>;
109 spi-max-frequency = <24000000>;
110 gpio-controller;
111 #gpio-cells = <2>;
112 };
113 };
114
115 beamforming-5g-spi {
116 compatible = "spi-gpio";
117 mosi-gpios = <&ath9k1 5 GPIO_ACTIVE_HIGH>;
118 sck-gpios = <&ath9k1 6 GPIO_ACTIVE_HIGH>;
119 num-chipselects = <0>;
120 #address-cells = <1>;
121 #size-cells = <0>;
122
123 beamforming_5g_gpio: beamforming-5g-gpio@0 {
124 compatible = "fairchild,74hc595";
125 reg = <0>;
126 registers-number = <1>;
127 spi-max-frequency = <24000000>;
128 gpio-controller;
129 #gpio-cells = <2>;
130 };
131 };
132 };
133
134 &pcie0 {
135 status = "okay";
136
137 ath9k0: wifi@11,0 { /* 2.4 GHz */
138 compatible = "pci168c,0029";
139 reg = <0x8800 0 0 0 0>;
140 nvmem-cells = <&macaddr_bdata_60>;
141 nvmem-cell-names = "mac-address";
142 #gpio-cells = <2>;
143 gpio-controller;
144 };
145
146 ath9k1: wifi@12,0 { /* 5 GHz */
147 compatible = "pci168c,0029";
148 reg = <0x9000 0 0 0 0>;
149 nvmem-cells = <&macaddr_bdata_76>;
150 nvmem-cell-names = "mac-address";
151 #gpio-cells = <2>;
152 gpio-controller;
153 };
154 };
155
156 &mdio0 {
157 status = "okay";
158
159 phy0: ethernet-phy@1e {
160 reg = <0x1e>;
161 };
162 };
163
164 &eth0 {
165 status = "okay";
166 nvmem-cells = <&macaddr_bdata_66>;
167 nvmem-cell-names = "mac-address";
168
169 pll-data = <0x00110000 0x00001099 0x00991099>;
170 phy-handle = <&phy0>;
171 phy-mode = "rgmii-id";
172 };
173
174 &spi {
175 status = "okay";
176
177 flash@0 {
178 compatible = "jedec,spi-nor";
179 reg = <0>;
180 spi-max-frequency = <104000000>;
181 m25p,fast-read;
182
183 partitions {
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 partition@0 {
189 reg = <0x0 0x40000>;
190 label = "u-boot";
191 read-only;
192 };
193
194 /* On stock FW this encompasses rcks_wlan.main,
195 * rcks_wlan.bkup and datafs partitions
196 */
197 partition@40000 {
198 compatible = "openwrt,uimage", "denx,uimage";
199 reg = <0x40000 0xf40000>;
200 label = "firmware";
201 };
202
203 partition@f80000 {
204 compatible = "u-boot,env";
205 reg = <0xf80000 0x40000>;
206 label = "u-boot-env";
207 };
208
209 board_data: partition@fc0000 {
210 reg = <0xfc0000 0x40000>;
211 label = "board-data";
212 read-only;
213 };
214 };
215 };
216 };
217
218 &usb1 {
219 status = "okay";
220 };
221
222 &usb2 {
223 status = "okay";
224 };
225
226 &usb_phy {
227 status = "okay";
228 };