ath79: ar: convert to nvmem-layout
[openwrt/staging/hauke.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 #address-cells = <1>;
67 #size-cells = <0>;
68
69 beamforming-2g-gpio@0 {
70 compatible = "fairchild,74hc595";
71 reg = <0>;
72 registers-number = <1>;
73 spi-max-frequency = <24000000>;
74 gpio-controller;
75 #gpio-cells = <2>;
76 };
77 };
78
79 beamforming-5g-spi {
80 compatible = "spi-gpio";
81 mosi-gpios = <&ath9k 15 GPIO_ACTIVE_HIGH>;
82 sck-gpios = <&ath9k 14 GPIO_ACTIVE_HIGH>;
83 num-chipselects = <0>;
84 #address-cells = <1>;
85 #size-cells = <0>;
86
87 beamforming-5g-gpio@0 {
88 compatible = "fairchild,74hc595";
89 reg = <0>;
90 registers-number = <1>;
91 spi-max-frequency = <24000000>;
92 gpio-controller;
93 #gpio-cells = <2>;
94 };
95 };
96 };
97
98 &eth0 {
99 nvmem-cells = <&macaddr_board_data_6c>;
100 };
101
102 &eth1 {
103 status = "okay";
104
105 nvmem-cells = <&macaddr_board_data_66>;
106 nvmem-cell-names = "mac-address";
107
108 gmac-config {
109 device = <&gmac>;
110 switch-phy-swap = <0>;
111 switch-only-mode = <1>;
112 };
113 };
114
115 &pcie {
116 status = "okay";
117
118 ath9k: wifi@0,0 {
119 compatible = "pci168c,0033";
120 reg = <0x0000 0 0 0 0>;
121 gpio-controller;
122 #gpio-cells = <2>;
123
124 nvmem-cells = <&macaddr_board_data_76>;
125 nvmem-cell-names = "mac-address";
126 };
127 };
128
129 &board_data {
130 nvmem-layout {
131 compatible = "fixed-layout";
132 #address-cells = <1>;
133 #size-cells = <1>;
134
135 macaddr_board_data_60: macaddr@60 {
136 reg = <0x60 0x6>;
137 };
138
139 macaddr_board_data_66: macaddr@66 {
140 reg = <0x66 0x6>;
141 };
142
143 macaddr_board_data_6c: macaddr@6c {
144 reg = <0x6c 0x6>;
145 };
146
147 macaddr_board_data_76: macaddr@76 {
148 reg = <0x76 0x6>;
149 };
150
151 cal_board_data_41000: cal@41000 {
152 reg = <0x41000 0x440>;
153 };
154 };
155 };