aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar934x_ruckus_zf73xx.dtsi
blob: a0348e7213a8a80c56b37f715be6a29d53a766e2 (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "ar9344.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/mtd/partitions/uimage.h>

/ {
	aliases {
		led-boot = &power_green;
		led-failsafe = &power_red;
		led-running = &power_green;
		led-upgrade = &power_red;
	};

	firmware-concat {
		compatible = "mtd-concat";
		devices = <&fwconcat0 &fwconcat1>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				reg = <0x0 0x1f00000>;
				label = "firmware";
				compatible = "openwrt,uimage", "denx,uimage";
			};
		};
	};

	keys {
		compatible = "gpio-keys";

		reset {
			linux,code = <KEY_RESTART>;
			label = "Reset button";
			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
			debounce-interval = <50>;
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&enable_gpio_11>,
			    <&enable_gpio_16>,
			    <&enable_gpio_4>,
			    <&clks_disable_pins>;

		power_green: power-green {
			label = "green:power";
			gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
			default-state = "on";
		};
	};

	reserved-memory {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		ruckus-himem@7ff0000 {
			/* Ruckus Himem area used to control
			 * redundant boot image selection
			 */
			compatible = "nvmem-rmem";
			reg = <0x7ff0000 0x10000>;
			no-map;
		};
	};
};

&ref {
	clock-frequency = <40000000>;
};

&spi {
	status = "okay";

	flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <25000000>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x040000>;
				read-only;
			};

			fwconcat0: partition@40000 {
				label = "fwconcat0";
				reg = <0x040000 0xf00000>;
			};

			partition@f40000 {
				compatible = "u-boot,env";
				label = "u-boot-env";
				reg = <0xf40000 0x040000>;
			};

			board_data: partition@f80000 {
				label = "board-data";
				reg = <0xf80000 0x080000>;
				read-only;
			};

			fwconcat1: partition@1000000 {
				label = "fwconcat1";
				reg = <0x1000000 0x1000000>;
			};
		};
	};
};

&mdio0 {
	status = "okay";

	phy: ethernet-phy@6 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <6>;
	};
};

&eth0 {
	status = "okay";
	pll-data = <0x02000000 0x00000101 0x00001313>;
	phy-mode = "rgmii-id";
	phy-handle = <&phy>;

	nvmem-cell-names = "mac-address";

	gmac-config {
		device = <&gmac>;
		rgmii-gmac0 = <1>;
		rxdv-delay = <3>;
		rxd-delay = <3>;
	};
};

&pinmux {
	clks_disable_pins: pinmux_clks_disable_pins {
		pinctrl-single,bits = <0x40 0x0 0x20>;
	};

	enable_gpio_4: pinctrl_enable_gpio_4 {
		pinctrl-single,bits = <0x4 0x0 0xff>;
	};

	enable_gpio_11: pinctrl_enable_gpio_11 {
		pinctrl-single,bits = <0x8 0x0 0xff000000>;
	};

	enable_gpio_16: pinctrl_enable_gpio_16 {
		pinctrl-single,bits = <0x10 0x0 0xff>;
	};
};

&wmac {
	status = "okay";

	nvmem-cells = <&macaddr_board_data_60>, <&cal_board_data_41000>;
	nvmem-cell-names = "mac-address", "calibration";
};

&usb {
	status = "okay";
};

&usb_phy {
	status = "okay";
};

&board_data {
	compatible = "nvmem-cells";
	#address-cells = <1>;
	#size-cells = <1>;

	macaddr_board_data_60: macaddr@60 {
		reg = <0x60 0x6>;
	};

	macaddr_board_data_66: macaddr@66 {
		reg = <0x66 0x6>;
	};

	cal_board_data_41000: cal@41000 {
		reg = <0x41000 0x440>;
	};
};