summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/dts/falcon.dtsi
blob: 30025e0dc278663ae77e63fedc7031decbe27d16 (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
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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
/ {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "lantiq,falcon";

	cpus {
		cpu@0 {
			compatible = "mips,mips34kc";
		};
	};

	aliases {
		serial0 = &serial0;
		serial1 = &serial1;
		gpio0 = &gpio0;
		gpio1 = &gpio1;
		gpio2 = &gpio2;
		gpio3 = &gpio3;
		gpio4 = &gpio4;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	clocks {
		compatible = "simple-bus";

		cpu_clk: cpu {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <400000000>;
			clock-output-names = "cpu";
		};

		io_clk: io {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <200000000>;
			clock-output-names = "io";
		};

		fpi_clk: fpi {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <100000000>;
			clock-output-names = "fpi";
		};
	};

	ebu_cs0: localbus@10000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "lantiq,localbus", "simple-bus";
		reg = <0x10000000 0x4000000>;
		ranges = <0x0 0x10000000 0x4000000>;
	};
	ebu_cs1: localbus@14000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "lantiq,localbus", "simple-bus";
		reg = <0x14000000 0x4000000>;
		ranges = <0x0 0x14000000 0x4000000>;
	};

	ebu@18000000 {
		compatible = "lantiq,ebu-falcon";
		reg = <0x18000000 0x100>;
	};

	sbs2@1D000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "lantiq,sysb2", "simple-bus";
		reg = <0x1D000000 0x1000000>;
		ranges = <0x0 0x1D000000 0x1000000>;

		clock_sysgpe: clock-controller@700000 {
			compatible = "lantiq,sysgpe-falcon";
			reg = <0x700000 0x100>;
			#clock-cells = <1>;
		};

		mps@4000 {
			compatible = "lantiq,mps-falcon", "lantiq,mps-xrx100";
			reg = <0x4000 0x1000>;
			interrupt-parent = <&icu0>;
			interrupts = <154 155>;
			lantiq,mbx = <&mpsmbx>;
		};

		gpio0: gpio@810000 {
			compatible = "lantiq,falcon-gpio";
			gpio-controller;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
			interrupt-parent = <&icu0>;
			interrupts = <44>;
			reg = <0x810000 0x80>;
			clocks = <&clock_syseth 16>;
		};

		gpio2: gpio@810100 {
			compatible = "lantiq,falcon-gpio";
			gpio-controller;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
			interrupt-parent = <&icu0>;
			interrupts = <46>;
			reg = <0x810100 0x80>;
			clocks = <&clock_syseth 17>;
		};

		clock_syseth: clock-controller@B00000 {
			compatible = "lantiq,syseth-falcon";
			reg = <0xB00000 0x100>;
			#clock-cells = <1>;
		};

		pad@B01000 {
			compatible = "lantiq,pad-falcon";
			reg = <0xB01000 0x100>;
			lantiq,bank = <0>;
			clocks = <&clock_syseth 20>;
		};

		pad@B02000 {
			compatible = "lantiq,pad-falcon";
			reg = <0xB02000 0x100>;
			lantiq,bank = <2>;
			clocks = <&clock_syseth 21>;
		};
	};

	fpi@1E000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "lantiq,fpi", "simple-bus";
		reg = <0x1E000000 0x1000000>;
		ranges = <0x0 0x1E000000 0x1000000>;

		serial1: serial@100B00 {
			status = "disabled";
			compatible = "lantiq,asc";
			reg = <0x100B00 0x100>;
			interrupt-parent = <&icu0>;
			interrupts = <112 113 114>;
			line = <1>;
			pinctrl-names = "default";
			pinctrl-0 = <&asc1_pins>;
			clocks = <&clock_sys1 11>;
		};

		serial0: serial@100C00 {
			compatible = "lantiq,asc";
			reg = <0x100C00 0x100>;
			interrupt-parent = <&icu0>;
			interrupts = <104 105 106>;
			line = <0>;
			pinctrl-names = "default";
			pinctrl-0 = <&asc0_pins>;
			clocks = <&clock_sys1 12>;
		};

		spi: spi@100D00 {
			status = "disabled";
			compatible = "intel,falcon-spi", "intel,xrx100-spi", "lantiq,spi-lantiq-ssc";
			interrupts = <22 23 24 25>;
			interrupt-names = "spi_tx", "spi_rx", "spi_err", "spi_frm";
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0x100D00 0x100>;
			interrupt-parent = <&icu0>;
			clocks = <&clock_sys1 13>;
			base_cs = <1>;
			num_cs = <2>;
		};

		gptc@100E00 {
			compatible = "lantiq,gptc-falcon";
			reg = <0x100E00 0x100>;
		};

		i2c: i2c@200000 {
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
			compatible = "lantiq,lantiq-i2c";
			reg = <0x200000 0x10000>;
			interrupt-parent = <&icu0>;
			interrupts = <18 19 20 21>;
			gpios = <&gpio1 7 0 &gpio1 8 0>;
			pinctrl-names = "default";
			pinctrl-0 = <&i2c_pins>;
			clocks = <&clock_sys1 14>;
		};

		gpio1: gpio@800100 {
			compatible = "lantiq,falcon-gpio";
			gpio-controller;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
			interrupt-parent = <&icu0>;
			interrupts = <45>;
			reg = <0x800100 0x100>;
			clocks = <&clock_sys1 16>;
		};

		gpio3: gpio@800200 {
			compatible = "lantiq,falcon-gpio";
			gpio-controller;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
			interrupt-parent = <&icu0>;
			interrupts = <47>;
			reg = <0x800200 0x100>;
			clocks = <&clock_sys1 17>;
		};

		gpio4: gpio@800300 {
			compatible = "lantiq,falcon-gpio";
			gpio-controller;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
			interrupt-parent = <&icu0>;
			interrupts = <48>;
			reg = <0x800300 0x100>;
			clocks = <&clock_sys1 18>;
		};

		pad@800400 {
			compatible = "lantiq,pad-falcon";
			reg = <0x800400 0x100>;
			lantiq,bank = <1>;
			clocks = <&clock_sys1 20>;
		};

		pad@800500 {
			compatible = "lantiq,pad-falcon";
			reg = <0x800500 0x100>;
			lantiq,bank = <3>;
			clocks = <&clock_sys1 21>;
		};

		pad@800600 {
			compatible = "lantiq,pad-falcon";
			reg = <0x800600 0x100>;
			lantiq,bank = <4>;
			clocks = <&clock_sys1 22>;
		};

		status@802000 {
			compatible = "lantiq,status-falcon";
			reg = <0x802000 0x80>;
		};

		clock_sys1: clock-controller@F00000 {
			compatible = "lantiq,sys1-falcon";
			reg = <0xF00000 0x100>;
			#clock-cells = <1>;
		};
	};

	sbs0@1F000000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "simple-bus";
		reg = <0x1F000000 0x400000>;
		ranges = <0x0 0x1F000000 0x400000>;

		mpsmbx: mpsmbx@200000 {
			reg = <0x200000 0x200>;
		};
	};

	sbs1@1F700000 {

	};

	biu@1F800000 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "lantiq,biu", "simple-bus";
		reg = <0x1F800000 0x800000>;
		ranges = <0x0 0x1F800000 0x800000>;

		icu0: icu@80200 {
			#interrupt-cells = <1>;
			interrupt-controller;
			compatible = "lantiq,icu";
			reg = <0x80200 0x28
				0x80228 0x28
				0x80250 0x28
				0x80278 0x28
				0x802a0 0x28>;
		};

		watchdog@803F0 {
			compatible = "lantiq,wdt";
			reg = <0x803F0 0x10>;
			clocks = <&io_clk>; /* currently no effect */
		};
	};

	pinctrl {
		compatible = "lantiq,pinctrl-falcon";
		pinctrl-names = "default";
		pinctrl-0 = <&state_default>;

		state_default: pinctrl0 {
			/*ntr {
				lantiq,groups = "ntr8k";
				lantiq,function = "ntr";
			};*/
			hrst {
				lantiq,groups = "hrst";
				lantiq,function = "rst";
			};
		};

		asc0_pins: asc0 {
			asc0 {
				lantiq,groups = "asc0";
				lantiq,function = "asc";
			};
		};
		asc1_pins: asc1 {
			asc1 {
				lantiq,groups = "asc1";
				lantiq,function = "asc";
			};
		};
		i2c_pins: i2c {
			i2c {
				lantiq,groups = "i2c";
				lantiq,function = "i2c";
			};
		};
		bootled_pins: bootled {
			bootled {
				lantiq,groups = "bootled";
				lantiq,function = "led";
			};
		};
		ntr_ntr8k: ntr8k {
			ntr8k {
				lantiq,groups = "ntr8k";
				lantiq,function = "ntr";
			};
		};
		ntr_pps: pps {
			pps {
				lantiq,groups = "pps";
				lantiq,function = "ntr";
			};
		};
		ntr_gpio: gpio {
			gpio {
				lantiq,pins = "io5";
				lantiq,mux = <1>;
				lantiq,output = <0>;
			};
		};
		slic_pins: slic {
			slic {
				lantiq,groups = "slic";
				lantiq,function = "slic";
			};
		};
	};

	pinselect-ntr {
		compatible = "lantiq,onu-ntr","lantiq,pinselect-ntr";
		pinctrl-names = "ntr8k", "pps", "gpio";
		pinctrl-0 = <&ntr_ntr8k>;
		pinctrl-1 = <&ntr_pps>;
		pinctrl-2 = <&ntr_gpio>;
	};

	pinselect-asc1 {
		compatible = "lantiq,onu-asc1","lantiq,pinselect-asc1";
		pinctrl-names = "default", "asc1";
		pinctrl-0 = <&slic_pins>;
		pinctrl-1 = <&asc1_pins>;
	};

};