xref: /freebsd/sys/contrib/device-tree/Bindings/net/brcm,systemport.txt (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel Vadot* Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT)
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotRequired properties:
4c66ec88fSEmmanuel Vadot- compatible: should be one of:
5c66ec88fSEmmanuel Vadot	      "brcm,systemport-v1.00"
6c66ec88fSEmmanuel Vadot	      "brcm,systemportlite-v1.00" or
7c66ec88fSEmmanuel Vadot	      "brcm,systemport"
8c66ec88fSEmmanuel Vadot- reg: address and length of the register set for the device.
9c66ec88fSEmmanuel Vadot- interrupts: interrupts for the device, first cell must be for the rx
10c66ec88fSEmmanuel Vadot  interrupts, and the second cell should be for the transmit queues. An
11c66ec88fSEmmanuel Vadot  optional third interrupt cell for Wake-on-LAN can be specified
12c66ec88fSEmmanuel Vadot- local-mac-address: Ethernet MAC address (48 bits) of this adapter
13c66ec88fSEmmanuel Vadot- phy-mode: Should be a string describing the PHY interface to the
14c66ec88fSEmmanuel Vadot  Ethernet switch/PHY, see Documentation/devicetree/bindings/net/ethernet.txt
15c66ec88fSEmmanuel Vadot- fixed-link: see Documentation/devicetree/bindings/net/fixed-link.txt for
16c66ec88fSEmmanuel Vadot  the property specific details
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel VadotOptional properties:
19c66ec88fSEmmanuel Vadot- systemport,num-tier2-arb: number of tier 2 arbiters, an integer
20c66ec88fSEmmanuel Vadot- systemport,num-tier1-arb: number of tier 1 arbiters, an integer
21c66ec88fSEmmanuel Vadot- systemport,num-txq: number of HW transmit queues, an integer
22c66ec88fSEmmanuel Vadot- systemport,num-rxq: number of HW receive queues, an integer
23*6be33864SEmmanuel Vadot- clocks: When provided, must be two phandles to the functional clocks nodes of
24*6be33864SEmmanuel Vadot  the SYSTEMPORT block. The first phandle is the main SYSTEMPORT clock used
25*6be33864SEmmanuel Vadot  during normal operation, while the second phandle is the Wake-on-LAN clock.
26*6be33864SEmmanuel Vadot- clock-names: When provided, names of the functional clock phandles, first
27*6be33864SEmmanuel Vadot  name should be "sw_sysport" and second should be "sw_sysportwol".
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel VadotExample:
30c66ec88fSEmmanuel Vadotethernet@f04a0000 {
31c66ec88fSEmmanuel Vadot	compatible = "brcm,systemport-v1.00";
32c66ec88fSEmmanuel Vadot	reg = <0xf04a0000 0x4650>;
33c66ec88fSEmmanuel Vadot	local-mac-address = [ 00 11 22 33 44 55 ];
34c66ec88fSEmmanuel Vadot	fixed-link = <0 1 1000 0 0>;
35c66ec88fSEmmanuel Vadot	phy-mode = "gmii";
36c66ec88fSEmmanuel Vadot	interrupts = <0x0 0x16 0x0>,
37c66ec88fSEmmanuel Vadot		<0x0 0x17 0x0>;
38c66ec88fSEmmanuel Vadot};
39