aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9344_ruckus_zf7372.dts
blob: 2cf7240931177c6894b9eff7069522455385ad27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "ar934x_ruckus_zf73xx.dtsi"

/ {
	model = "Ruckus ZoneFlex 7352/7372[-E/-U]";
	compatible = "ruckus,zf7372", "qca,ar9344";

	leds {
		air-green {
			label = "green:air";
			gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
		};

		air-yellow {
			label = "yellow:air";
			gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
		};

		dir-green {
			label = "green:dir";
			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
		};

		eth1-green {
			label = "green:eth1";
			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
		};

		power_red: power-red {
			label = "red:power";
			gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
			panic-indicator;
		};

		wlan2g-green {
			label = "green:wlan2g";
			gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy0assoc";
		};

		wlan2g-yellow {
			label = "yellow:wlan2g";
			gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy0tpt";
		};

		wlan5g-green {
			label = "green:wlan5g";
			gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy1assoc";
		};

		wlan5g-yellow {
			label = "yellow:wlan5g";
			gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy1tpt";
		};
	};

	beamforming-2g-spi {
		compatible = "spi-gpio";
		mosi-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
		sck-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
		num-chipselects = <0>;
		#address-cells = <1>;
		#size-cells = <0>;

		beamforming-2g-gpio@0 {
			compatible = "fairchild,74hc595";
			reg = <0>;
			registers-number = <1>;
			spi-max-frequency = <24000000>;
			gpio-controller;
			#gpio-cells = <2>;
		};
	};

	beamforming-5g-spi {
		compatible = "spi-gpio";
		mosi-gpios = <&ath9k 15 GPIO_ACTIVE_HIGH>;
		sck-gpios = <&ath9k 14 GPIO_ACTIVE_HIGH>;
		num-chipselects = <0>;
		#address-cells = <1>;
		#size-cells = <0>;

		beamforming-5g-gpio@0 {
			compatible = "fairchild,74hc595";
			reg = <0>;
			registers-number = <1>;
			spi-max-frequency = <24000000>;
			gpio-controller;
			#gpio-cells = <2>;
		};
	};
};

&eth0 {
	nvmem-cells = <&macaddr_board_data_6c>;
};

&eth1 {
	status = "okay";

	nvmem-cells = <&macaddr_board_data_66>;
	nvmem-cell-names = "mac-address";

	gmac-config {
		device = <&gmac>;
		switch-phy-swap = <0>;
		switch-only-mode = <1>;
	};
};

&pcie {
	status = "okay";

	ath9k: wifi@0,0 {
		compatible = "pci168c,0033";
		reg = <0x0000 0 0 0 0>;
		gpio-controller;
		#gpio-cells = <2>;

		nvmem-cells = <&macaddr_board_data_76>;
		nvmem-cell-names = "mac-address";
	};
};

&board_data {
	macaddr_board_data_6c: macaddr@6c {
		reg = <0x6c 0x6>;
	};

	macaddr_board_data_76: macaddr@76 {
		reg = <0x76 0x6>;
	};
};