armada-385-turris-omnia.dts 5.6 KB
Newer Older
1
2
/dts-v1/;

3
4
5
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "armada-385.dtsi"
6
7

/ {
8
9
10
11
12
13
14
15
16
17
18
19
20
	model = "Turris Omnia";
	compatible = "marvell,armada385","marvell,armada380";

	chosen {
		bootargs = "console=ttyS0,115200";
		stdout-path = &uart0;
	};

	memory {
		device_type = "memory";
		reg = <0x00000000 0x40000000>; /* 1024 MB */
	};

21
	soc {
22
		ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
Tomas Hlavacek's avatar
Tomas Hlavacek committed
23
24
25
			  MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
			  MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
			  MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
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

		internal-regs {
			sdhci@d8000 {
				status = "okay";
				bus-width = <8>;
				no-1-8-v;
				non-removable;
			};

			sata@a8000 {
				status = "okay";
			};

			/* USB part of the eSATA/USB 2.0 port */
			usb@58000 {
				status = "okay";
			};

			/* 2x external USB3 */
			usb3@f0000 {
				status = "okay";
			};

			usb3@f8000 {
				status = "okay";
			};
		};

		pcie-controller {
			status = "okay";

			pcie@1,0 {
				/* Port 0, Lane 0 */
				status = "okay";
			};

			pcie@2,0 {
				/* Port 2, Lane 0 */
				status = "okay";
			};

			pcie@3,0 {
				/* Port 3, Lane 0 */
				status = "okay";
			};

72
73
74
		};
	};

75
76
77
78
79
80
81
82
83
84
85
86
87
	gpio-keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;

		button@212 {
			label = "mcuint";
			linux,code = <BTN_MISC>;
			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
			debounce-interval = <0>;
		};
	};

88
89
90
91
92
93
94
95
	mvsw61xx {
		status = "okay";
		compatible = "marvell,88e6176";
		reg = <0x10>;
		is-indirect;
		mii-bus = <&mdio>;
		cpu-port-0 = <5>;
		cpu-port-1 = <6>;
Tomas Hlavacek's avatar
Tomas Hlavacek committed
96
97

		/* IRQ connected to MPP45. */
98
		/* interrupt-parent = <&gpio1>;
Tomas Hlavacek's avatar
Tomas Hlavacek committed
99
		interrupts = <13 IRQ_TYPE_LEVEL_LOW>; */
100
	};
101
};
Tomas Hlavacek's avatar
Tomas Hlavacek committed
102

103
104
&spi0 {
	status = "okay";
Tomas Hlavacek's avatar
Tomas Hlavacek committed
105

106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
	spi-nor@0 {
		compatible = "spansion,s25fl164k", "jedec,spi-nor";
		#address-cells = <1>;
		#size-cells = <1>;
		reg = <0>;
		spi-max-frequency = <40000000>;

		partition@0 {
			reg = <0x0 0x00100000>;
			label = "U-Boot";
		};
		partition@1 {
			reg = <0x00100000 0x00700000>;
			label = "Rescue system";
		};

	};
123
124
125
126
127
	spidev@2 {
		spi-max-frequency = <1000000>;
		reg = <2>;
		compatible = "linux,spidev";
	};
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
};

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pins>;
	status = "okay";
	clock-frequency = <100000>;

	i2cmux@70 {
		compatible = "nxp,pca9547";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0x70>;
		status = "okay";
		i2c@0 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0>;
			status = "okay";

			/* Config memory */
			eeprom@54 {
				compatible = "at,24c64";
				reg = <0x54>;
			};

			/* Additional device: STM-32, address 0x2a, INT on 43. */
			leds@2b {
				compatible = "turris-leds,omnia";
				reg = <0x2b>;
				#address-cells = <1>;
				#size-cells = <0>;

				led0 {
					label = "user2";
					reg = <0x0>;
				};

				led1 {
					label = "user1";
					reg = <0x1>;
				};

				led2 {
					label = "pci3";
					reg = <0x2>;
				};

				led3 {
					label = "pci2";
					reg = <0x3>;
				};

				led4 {
					label = "pci1";
					reg = <0x4>;
				};

				led5 {
					label = "wan";
					reg = <0x5>;
				};

				led6 {
					label = "lan4";
					reg = <0x6>;
				};

				led7 {
					label = "lan3";
					reg = <0x7>;
				};

				led8 {
					label = "lan2";
					reg = <0x8>;
				};

				led9 {
					label = "lan1";
					reg = <0x9>;
				};

				led10 {
					label = "lan0";
					reg = <0xa>;
				};

				led11 {
					label = "power";
					reg = <0xb>;
				};

				led12 {
					label = "all";
					reg = <0xc>;
				};
			};
		};

		i2c@1 {
			/* SATA */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <1>;
		};

		i2c@2 {
			/* PCI 1 */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <2>;
		};

		i2c@3 {
			/* PCI 0 */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <3>;
		};

		i2c@4 {
			/* SFP */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <4>;
		};

		i2c@5 {
			/* ATSHA */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <5>;
		};

		i2c@6 {
			/* User GPIO header */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <6>;
		};

		i2c@7 {
			/* SFP+ GPIO expander */
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <7>;

			sfpgpio: gpio@71 {
				compatible = "nxp,pca9538";
				reg = <0x71>;
				interrupt-parent = <&gpio1>;
				interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
				gpio-controller;
				#gpio-cells = <2>;
			};
		};
	};
};

&uart0 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart0_pins>;
	status = "okay";
};

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pins>;
	status = "okay";
};

&mdio {
	status = "okay";

	phy1: phy@1 {
		status = "okay";
		compatible = "marvell,88E1514", "marvell,88E1510", "ethernet-phy-ieee802.3-c22";
		reg = <1>;
		/* IRQ connected to MPP46. */
		/* interrupt-parent = <&gpio1>;
		interrupts = <14 IRQ_TYPE_LEVEL_LOW>; */
	};
};

&eth0 {
	status = "okay";
	pinctrl-0 = <&ge0_rgmii_pins>;
	phy-mode = "rgmii-id";

	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&eth1 {
	status = "okay";
	pinctrl-0 = <&ge1_rgmii_pins>;
	phy-mode = "rgmii-id";

	fixed-link {
		speed = <1000>;
		full-duplex;
	};
};

&eth2 {
	status = "okay";

	phy-def {
		phy-mode = "sgmii";
		phy = <&phy1>;
	};

	phy-sfp {
		phy-mode = "sgmii";
		managed = "1000base-x";

		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	phy-sfp-noneg {
		phy-mode = "sgmii";
		managed = "1000base-x-noneg";

		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};

	phy-sfp-sgmii {
		phy-mode = "sgmii";
		managed = "in-band-status";

		fixed-link {
			speed = <1000>;
			full-duplex;
		};
	};
372
};
373
374
375
376
377
378
379
380
381

&pinctrl {
	user_pin: user-pin {
		marvell,pins = "mpp18", "mpp33", "mpp34", "mpp35", "mpp36",
				"mpp42", "mpp44", "mpp47", "mpp51", "mpp56";
		marvell,function = "gpio";
	};
};