summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/powerpc/fsl/fman_device_tree.txt
blob: 0d670b095b3e3918fe3442e1af387d03c9c32047 (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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
=================================================================================
P4080 Frame Manager Device Bindings
Copyright 2008 Freescale Semiconductor Inc.
Version 1, September 16, 2008

CONTENTS
  - FMan Node
  - FMan Port Node
  - FMan MURAM Node
  - FMan Parser Node
  - FMan KeyGen Node
  - FMan Coarse-Classification Node
  - FMan Policer Node
  - FMan dTSEC/XGEC Node
  - FMan MDIO Node
  - Example

NOTE: The bindings described in this document are preliminary and subject to
change.

=================================================================================
FMan Node

DESCRIPTION

Due to the fact that the FMan is an aggregation of sub-engines (ports, MACs,
KeyGen, etc.) the FMan node will have child nodes for each of them. In order for
these child nodes to be probed by the kernel, the FMan node must be "simple-bus"
compatible.

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: Must include "fsl,fman" and "simple-bus"

  - #address-cells
      Usage: required
      Value type: <u32>
      Definition: A standard property.  Defines the number of cells
          for representing physical addresses in child nodes.  Must
          have a value of 1.

  - #size-cells
      Usage: required
      Value type: <u32>
      Definition: A standard property.  Defines the number of cells
          for representing the size of physical addresses in
          child nodes.  Must have a value of 1.

  - cell-index
      Usage: required
      Value type: <u32>
      Definition: Specifies the index of the FMan unit. In P4080 there
          two FMan blocks.

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical
          address and length of the FMan configuration (SkyBlue)
          registers

  - ranges
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          and length of the FMan memory space
 
  - clock-frequency
      Usage: required  
      Value type: <u32>
      Definition: Specifies the FM clock frequency in Hz units.

Note(s): All other standard properties (see the ePAPR) are allowed but are
         optional.

=================================================================================
FMan MURAM Node

DESCRIPTION

FMan Internal memory - shared between all the FMan modules.
It contains data structures that are common and written to or read by the modules.
FMan internal memory is split into the following parts:
 Packet buffering (Tx/Rx FIFOs)
 Coarse classification table
 Frames internal context

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: Must include "fsl,fman-muram"

  - ranges
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          and length of the FMan memory space

EXAMPLE

muram@0 {
	compatible = "fsl,fman-muram";
	ranges = <0 0x000000 0x28000>;
};

=================================================================================
FMan Port Node

DESCRIPTION

The Frame Manager (FMan) supports several types of hardware ports:
 Ethernet receiver (RX)
 Ethernet transmitter (TX)
 Offline (O/H) 
 Host command (O/H)

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-port".
          An OH must include "fsl,fman-port-hc" for Host-Command port
          or "fsl,fman-port-op" for Offline-Parsing port.
          The Rx port must include "fsl,fman-port-rx" or "fsl,fman-port-xgrx"
          for 10G Rx ports.
          The Tx port must include "fsl,fman-port-tx" or "fsl,fman-port-xgtx"
          for 10G Tx ports.

  - cell-index
      Usage: optional
      Value type: <u32>
      Definition: Specifies the index of the FMan Port unit. Note that there are
          types of ports: host-command/offline-parsing, Rx, 10G Rx, Tx and 10G Tx
          ports. The index is the port location according to its memory-map.
          I.e. the index is relative for each group/type of ports (rx, 10grx, tx,
          10gtx, oh).

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the port configuration (SkyBlue)
          registers within the Fman node's address space.

  - fsl,liodn
      Usage: see definition
      Value type: <u32>
      Definition: The logical I/O device number (LIODN) for this
          device.  The LIODN is a number expressed by this device
          and used to perform look-ups in the IOMMU (PAMU) address
          table when performing DMAs.  This property is required
          if the PAMU is enabled.

  - fsl,qman-channel-id
      Usage: required for Tx, HC, and OP ports, unused for Rx ports.
      Value type <u32>
      Definition: Specifies the channel to dequeue from for this port.

Note(s): All other standard properties (see the ePAPR) are allowed but are
         optional.

EXAMPLE

fman0_tx0: port@a8000 {
	cell-index = <0>;
	compatible = "fsl,p4080-fman-port-1g-tx", "fsl,fman-port-1g-tx";
	reg = <0xa8000 0x1000>;
	fsl,qman-channel-id = <0x47>;
};

=================================================================================
FMan Parser Node

DESCRIPTION

The FMan Parser parses incoming frames and generates parser results that
contain header types and indexes to the headers

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-parser".

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the KeyGen configuration (SkyBlue)
          registers within the Fman node's address space.

EXAMPLE

parser@80000 {
	compatible = "fsl,fman-parser";
	reg = <0x80000 0x1000>;
};

=================================================================================
FMan KeyGen Node

DESCRIPTION

KeyGen - key generator module.
 This module determines how frames are distributed to a range of FQs

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-keygen".

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the KeyGen configuration (SkyBlue)
          registers within the Fman node's address space.

EXAMPLE

keygen@c1000 {
	compatible = "fsl,fman-keygen";
	reg = <0xc1000 0x1000>;
};

=================================================================================
FMan Coarse-Classification Node

DESCRIPTION

The Coarse Classification block is a tree data structure inside the FMan controller
that provides exact matching by searching predefined classification tables.

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-cc".

EXAMPLE

cc: {
	compatible = "fsl,fman-cc";
};

=================================================================================
FMan Policer Node

DESCRIPTION

The Ploicer provides means to configure policy profiles that are used to
prioritize a flow of frames over the other

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-policer".

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the KeyGen configuration (SkyBlue)
          registers within the Fman node's address space.

EXAMPLE

policer@c2000 {
	compatible = "fsl,fman-policer";
	reg = <0xc2000 0x1000>;
};

=================================================================================
FMan common BMI Node

DESCRIPTION

Tha BMI is the FMan interfacet to the Buffer Manager (BMan)
which allocates/deallocates frames buffers

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-bmi".

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the KeyGen configuration (SkyBlue)
          registers within the Fman node's address space.

EXAMPLE

bmi@80000 {
	compatible = "fsl,p4080-fman-bmi", "fsl,fman-bmi";
	reg = <0x80000 0x400>;
};

=================================================================================
FMan common QMI Node

DESCRIPTION

The QMI is the FMan interface to the Queue Manager (QMan)
It dequeues/enqueues frame descriptors (FD) from/to the QMan

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-qmi".

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the KeyGen configuration (SkyBlue)
          registers within the Fman node's address space.

EXAMPLE

bmi@80400 {
	compatible = "fsl,p4080-fman-qmi", "fsl,fman-qmi";
	reg = <0x80400 0x400>;
};

=================================================================================
FMan dTSEC/XGEC Node

DESCRIPTION

dTSEC/XGEC are the Ethernet network interfaces

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-mac".
      dTSEC MAC must include "fsl,fman-mac-dtsec".
      10G MAC must include "fsl,fman-mac-xgec".

  - cell-index
      Usage: optional
      Value type: <u32>
      Definition: Specifies the index of the FMan MAC unit. Note that there are
          types of MACs: dTSEC and XGMAC. The index is the MAC location according
          to its memory-map. I.e. the index is relative for each group/type of MACs.

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the MAC configuration (SkyBlue)
          registers within the Fman node's address space.

  - fsl,port-handles
      Usage: required
      Value type: <prop-encoded-array>
      Definition: An array of two phandles-- the first references the
          FMan RX port and the second the TX port used by this MAC.

  - local-mac-address
      Usage: required
      Value type: <prop-encoded-array>, encoded as array of 6 hex numbers
      Definition: Specifies IEEE 802.3 MAC address for this MAC.

  - phy-handle
      Usage: required
      Value type: <phandle>
      Definition: Specifies the PHY connected to this MAC

  - phy-connection-type
      Usage: required
      Value type: <string>
      Definition: Specifies the PHY type connected to this MAC.
          Defaults to "mii".  See the ePAPR for further details.

Note(s): All other standard properties (see the ePAPR) are allowed but are
         optional.

EXAMPLE

enet0: ethernet@e0000 {
	cell-index = <0>;
	compatible = "fsl,p4080-fman-1g-mac", "fsl,fman-1g-mac";
	reg = <0xe0000 0x1000>;
	fsl,port-handles = <&fman0_rx0 &fman0_tx0>;
	phy-handle = <&phy0>;
	phy-connection-type = "rgmii-id";
};

=================================================================================
FMan MDIO Node

DESCRIPTION

The MDIO is a bus to which network PHY devices are attached. Each PHY device on
the MDIO bus should be represented by a child node.

PROPERTIES

  - compatible
      Usage: required
      Value type: <string>
      Definition: A standard property.  Must include "fsl,fman-mdio".

  - #address-cells
      Usage: required
      Value type: <u32>
      Definition: A standard property.  Defines the number of cells
          for representing physical addresses in child node.  Must
          have a value of 1.

  - #size-cells
      Usage: required
      Value type: <u32>
      Definition: A standard property.  Must be 0.

  - reg
      Usage: required
      Value type: <prop-encoded-array>
      Definition: A standard property.  Specifies the physical address
          offset and length of the MDIO configuration (SkyBlue)
          registers within the Fman node's address space.

Note(s): All other standard properties (see the ePAPR) are allowed but are
         optional.

EXAMPLE

mdio@e1000 {
	#address-cells = <1>;
	#size-cells = <0>;
	compatible = "fsl,fman-mdio";
	reg = <0xe1000 0x1000>;
	interrupts = <100 1>;

	phy0: ethernet-phy@0 {
		reg = <0>;
	};
};

=================================================================================
Example

fman0: fman@400000 {
	#address-cells = <1>;
	#size-cells = <1>;
	cell-index = <0>;
	compatible = "fsl,p4080-fman", "fsl,fman", "simple-bus";
	ranges = <0 0x400000 0x100000>;
	reg = <0x400000 0x100000>;
	clock-frequency = <666>;
	interrupts = <96 2 16 2>;
	interrupt-parent = <&mpic>;

	cc@0 {
		compatible = "fsl,p4080-fman-cc", "fsl,fman-cc";
	};

	parser@c7000 {
		compatible = "fsl,p4080-fman-parser", "fsl,fman-parser";
		reg = <0xc7000 0x1000>;
	};

	keygen@c1000 {
		compatible = "fsl,p4080-fman-keygen", "fsl,fman-keygen";
		reg = <0xc1000 0x1000>;
	};

	policer@c0000 {
		compatible = "fsl,p4080-fman-policer", "fsl,fman-policer";
		reg = <0xc0000 0x1000>;
	};

	muram@0 {
		compatible = "fsl,p4080-fman-muram", "fsl,fman-muram";
		reg = <0x0 0x28000>;
	};

	bmi@80000 {
		compatible = "fsl,p4080-fman-bmi", "fsl,fman-bmi";
		reg = <0x80000 0x400>;
	};

	qmi@80400 {
		compatible = "fsl,p4080-fman-qmi", "fsl,fman-qmi";
		reg = <0x80400 0x400>;
	};

	fman0_oh0: port@81000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x81000 0x1000>;
		fsl,qman-channel-id = <0x40>;
	};
	fman0_oh1: port@82000 {
		cell-index = <1>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x82000 0x1000>;
		fsl,qman-channel-id = <0x41>;
	};
	fman0_oh2: port@83000 {
		cell-index = <2>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x83000 0x1000>;
		fsl,qman-channel-id = <0x42>;
	};
	fman0_oh3: port@84000 {
		cell-index = <3>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x84000 0x1000>;
		fsl,qman-channel-id = <0x43>;
	};
	fman0_oh4: port@85000 {
		cell-index = <4>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x85000 0x1000>;
		fsl,qman-channel-id = <0x44>;
	};
	fman0_oh5: port@86000 {
		cell-index = <5>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x86000 0x1000>;
		fsl,qman-channel-id = <0x45>;
	};
	fman0_oh6: port@87000 {
		cell-index = <6>;
		compatible = "fsl,p4080-fman-port-oh", "fsl,fman-port-oh";
		reg = <0x87000 0x1000>;
		fsl,qman-channel-id = <0x46>;
	};

	fman0_rx0: port@88000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-port-1g-rx", "fsl,fman-port-1g-rx";
		reg = <0x88000 0x1000>;
	};
	fman0_rx1: port@89000 {
		cell-index = <1>;
		compatible = "fsl,p4080-fman-port-1g-rx", "fsl,fman-port-1g-rx";
		reg = <0x89000 0x1000>;
	};
	fman0_rx2: port@8a000 {
		cell-index = <2>;
		compatible = "fsl,p4080-fman-port-1g-rx", "fsl,fman-port-1g-rx";
		reg = <0x8a000 0x1000>;
	};
	fman0_rx3: port@8b000 {
		cell-index = <3>;
		compatible = "fsl,p4080-fman-port-1g-rx", "fsl,fman-port-1g-rx";
		reg = <0x8b000 0x1000>;
	};
	fman0_rx4: port@90000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-port-10g-rx", "fsl,fman-port-10g-rx";
		reg = <0x90000 0x1000>;
	};

	fman0_tx0: port@a8000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-port-1g-tx", "fsl,fman-port-1g-tx";
		reg = <0xa8000 0x1000>;
		fsl,qman-channel-id = <0x47>;
	};
	fman0_tx1: port@a9000 {
		cell-index = <1>;
		compatible = "fsl,p4080-fman-port-1g-tx", "fsl,fman-port-1g-tx";
		reg = <0xa9000 0x1000>;
		fsl,qman-channel-id = <0x48>;
	};
	fman0_tx2: port@aa000 {
		cell-index = <2>;
		compatible = "fsl,p4080-fman-port-1g-tx", "fsl,fman-port-1g-tx";
		reg = <0xaa000 0x1000>;
		fsl,qman-channel-id = <0x49>;
	};
	fman0_tx3: port@ab000 {
		cell-index = <3>;
		compatible = "fsl,p4080-fman-port-1g-tx", "fsl,fman-port-1g-tx";
		reg = <0xab000 0x1000>;
		fsl,qman-channel-id = <0x4a>;
	};
	fman0_tx4: port@b0000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-port-10g-tx", "fsl,fman-port-10g-tx";
		reg = <0xb0000 0x1000>;
		fsl,qman-channel-id = <0x4b>;
	};

	enet0: ethernet@e0000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-1g-mac", "fsl,fman-1g-mac";
		reg = <0xe0000 0x1000>;
		fsl,port-handles = <&fman0_rx0 &fman0_tx0>;
		phy-handle = <&phy0>;
		phy-connection-type = "rgmii-id";
	};

	mdio@e1000 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "fsl,fman-mdio";
		reg = <0xe1000 0x1000>;
		interrupts = <100 1>;

		phy0: ethernet-phy@0 {
			reg = <0>;
		};
	};

	enet1: ethernet@e2000 {
		cell-index = <1>;
		compatible = "fsl,p4080-fman-1g-mac", "fsl,fman-1g-mac";
		reg = <0xe2000 0x1000>;
		fsl,port-handles = <&fman0_rx1 &fman0_tx1>;
		phy-handle = <&phy1>;
		phy-connection-type = "rgmii-id";
	};

	mdio@e3000 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "fsl,fman-mdio";
		reg = <0xe3000 0x1000>;
		interrupts = <100 1>;

		phy1: ethernet-phy@0 {
			reg = <0>;
		};
	};

	enet2: ethernet@e4000 {
		cell-index = <2>;
		compatible = "fsl,p4080-fman-1g-mac", "fsl,fman-1g-mac";
		reg = <0xe4000 0x1000>;
		fsl,port-handles = <&fman0_rx2 &fman0_tx2>;
		phy-handle = <&phy2>;
		phy-connection-type = "rgmii-id";
	};

	mdio@e5000 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "fsl,fman-mdio";
		reg = <0xe5000 0x1000>;
		interrupts = <100 1>;

		phy2: ethernet-phy@0 {
			reg = <0>;
		};
	};

	enet3: ethernet@e6000 {
		cell-index = <3>;
		compatible = "fsl,p4080-fman-1g-mac", "fsl,fman-1g-mac";
		reg = <0xe6000 0x1000>;
		fsl,port-handles = <&fman0_rx3 &fman0_tx3>;
		phy-handle = <&phy3>;
		phy-connection-type = "rgmii-id";
	};

	mdio@e7000 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "fsl,fman-mdio";
		reg = <0xe7000 0x1000>;
		interrupts = <100 1>;

		phy3: ethernet-phy@0 {
			reg = <0>;
		};
	};

	enet4: ethernet@f0000 {
		cell-index = <0>;
		compatible = "fsl,p4080-fman-10g-mac", "fsl,fman-10g-mac";
		reg = <0xf0000 0x1000>;
		fsl,port-handles = <&fman0_rx4 &fman0_tx4>;
		phy-handle = <&phy4>;
		phy-connection-type = "rgmii-id";
	};

	mdio@f1000 {
		#address-cells = <1>;
		#size-cells = <0>;
		compatible = "fsl,fman-mdio";
		reg = <0xf1000 0x1000>;
		interrupts = <100 1>;

		phy4: ethernet-phy@0 {
			reg = <0>;
		};
	};
};