ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7240_ruckus_zf7025.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7240.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 / {
11 model = "Ruckus ZoneFlex 7025";
12 compatible = "ruckus,zf7025", "qca,ar7240";
13
14 aliases {
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_red;
19 label-mac-device = &eth0;
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 hard-reset {
26 label = "hard-reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
30 };
31 };
32
33 leds: leds {
34 compatible = "gpio-leds";
35
36 pinctrl-names = "default";
37 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
38
39 dir {
40 label = "green:dir";
41 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
42 };
43
44 lan1 {
45 label = "green:lan1";
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
47 };
48
49 lan2 {
50 label = "green:lan2";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 };
53
54 lan3 {
55 label = "green:lan3";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 };
58
59 lan4 {
60 label = "green:lan4";
61 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 };
63
64 lan5 {
65 label = "green:lan5";
66 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
67 };
68
69 opt {
70 label = "green:opt";
71 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
72 };
73
74 led_power_red: power-red {
75 function = LED_FUNCTION_POWER;
76 color = <LED_COLOR_ID_RED>;
77 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
78 panic-indicator;
79 };
80
81 led_power_green: power-green {
82 function = LED_FUNCTION_POWER;
83 color = <LED_COLOR_ID_GREEN>;
84 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
85 default-state = "on";
86 };
87
88 wlan-green {
89 function = LED_FUNCTION_WLAN;
90 color = <LED_COLOR_ID_GREEN>;
91 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
92 linux,default-trigger = "phy0assoc";
93 };
94
95 wlan-yellow {
96 function = LED_FUNCTION_WLAN;
97 color = <LED_COLOR_ID_YELLOW>;
98 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
99 linux,default-trigger = "phy0tpt";
100 };
101 };
102
103 reserved-memory {
104 #address-cells = <1>;
105 #size-cells = <1>;
106 ranges;
107
108 ruckus-himem@3ff0000 {
109 /* Ruckus Himem area used to control
110 * redundant boot image selection
111 */
112 compatible = "nvmem-rmem";
113 reg = <0x3ff0000 0x10000>;
114 no-map;
115 };
116 };
117 };
118
119 &spi {
120 status = "okay";
121
122 flash@0 {
123 compatible = "jedec,spi-nor";
124 reg = <0>;
125 spi-max-frequency = <104000000>;
126 m25p,fast-read;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 reg = <0x0 0x40000>;
135 label = "u-boot";
136 read-only;
137 };
138
139 /* On stock FW this encompasses rcks_wlan.main,
140 * rcks_wlan.bkup and datafs partitions
141 */
142 partition@40000 {
143 compatible = "openwrt,uimage", "denx,uimage";
144 reg = <0x40000 0xf40000>;
145 label = "firmware";
146 };
147
148 partition@f80000 {
149 compatible = "u-boot,env";
150 reg = <0xf80000 0x40000>;
151 label = "u-boot-env";
152 };
153
154 board_data: partition@fc0000 {
155 reg = <0xfc0000 0x40000>;
156 label = "board-data";
157 read-only;
158
159 nvmem-layout {
160 compatible = "fixed-layout";
161 #address-cells = <1>;
162 #size-cells = <1>;
163
164 macaddr_board_data_60: macaddr@60 {
165 reg = <0x60 0x6>;
166 };
167
168 macaddr_board_data_66: macaddr@66 {
169 reg = <0x66 0x6>;
170 };
171
172 macaddr_board_data_6c: macaddr@6c {
173 reg = <0x6c 0x6>;
174 };
175 };
176 };
177 };
178 };
179 };
180
181 &eth0 {
182 nvmem-cells = <&macaddr_board_data_66>;
183 nvmem-cell-names = "mac-address";
184 };
185
186 &eth1 {
187 status = "okay";
188 nvmem-cells = <&macaddr_board_data_6c>;
189 nvmem-cell-names = "mac-address";
190 };
191
192 &pcie {
193 status = "okay";
194
195 ath9k: wifi@0,0 {
196 compatible = "pci168c,002b";
197 reg = <0x0000 0 0 0 0>;
198 nvmem-cells = <&macaddr_board_data_60>;
199 nvmem-cell-names = "mac-address";
200 };
201 };