4bf7276db5b58aab5df5bb4a4c194f67b7d78245
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9344_ruckus_zf7372.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar934x_ruckus_zf73xx.dtsi"
4
5 / {
6 model = "Ruckus ZoneFlex 7352/7372[-E/-U]";
7 compatible = "ruckus,zf7372", "qca,ar9344";
8
9 leds {
10 air-green {
11 label = "green:air";
12 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
13 };
14
15 air-yellow {
16 label = "yellow:air";
17 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
18 };
19
20 dir-green {
21 label = "green:dir";
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 };
24
25 eth1-green {
26 label = "green:eth1";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 };
29
30 power_red: power-red {
31 label = "red:power";
32 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
33 panic-indicator;
34 };
35
36 wlan2g-green {
37 label = "green:wlan2g";
38 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy0assoc";
40 };
41
42 wlan2g-yellow {
43 label = "yellow:wlan2g";
44 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
46 };
47
48 wlan5g-green {
49 label = "green:wlan5g";
50 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1assoc";
52 };
53
54 wlan5g-yellow {
55 label = "yellow:wlan5g";
56 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy1tpt";
58 };
59 };
60
61 beamforming-2g-spi {
62 compatible = "spi-gpio";
63 mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
64 sck-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
65 num-chipselects = <0>;
66
67 beamforming-2g-gpio@0 {
68 compatible = "fairchild,74hc595";
69 reg = <0>;
70 registers-number = <1>;
71 spi-max-frequency = <24000000>;
72 gpio-controller;
73 #gpio-cells = <2>;
74 };
75 };
76
77 beamforming-5g-spi {
78 compatible = "spi-gpio";
79 mosi-gpios = <&ath9k 15 GPIO_ACTIVE_HIGH>;
80 sck-gpios = <&ath9k 14 GPIO_ACTIVE_HIGH>;
81 num-chipselects = <0>;
82
83 beamforming-5g-gpio@0 {
84 compatible = "fairchild,74hc595";
85 reg = <0>;
86 registers-number = <1>;
87 spi-max-frequency = <24000000>;
88 gpio-controller;
89 #gpio-cells = <2>;
90 };
91 };
92 };
93
94 &eth0 {
95 nvmem-cells = <&macaddr_board_data_6c>;
96 };
97
98 &eth1 {
99 status = "okay";
100
101 nvmem-cells = <&macaddr_board_data_66>;
102 nvmem-cell-names = "mac-address";
103
104 gmac-config {
105 device = <&gmac>;
106 switch-phy-swap = <0>;
107 switch-only-mode = <1>;
108 };
109 };
110
111 &pcie {
112 status = "okay";
113
114 ath9k: wifi@0,0 {
115 compatible = "pci168c,0033";
116 reg = <0x0000 0 0 0 0>;
117 gpio-controller;
118 #gpio-cells = <2>;
119
120 nvmem-cells = <&macaddr_board_data_76>;
121 nvmem-cell-names = "mac-address";
122 };
123 };
124
125 &board_data {
126 macaddr_board_data_6c: macaddr@6c {
127 reg = <0x6c 0x6>;
128 };
129
130 macaddr_board_data_76: macaddr@76 {
131 reg = <0x76 0x6>;
132 };
133 };