xref: /linux/Documentation/devicetree/bindings/net/marvell-orion-net.txt (revision bb9707077b4ee5f77bc9939b057ff8a0d410296f)
1Marvell Orion/Discovery ethernet controller
2=============================================
3
4The Marvell Discovery ethernet controller can be found on Marvell Orion SoCs
5(Kirkwood, Dove, Orion5x, and Discovery Innovation) and as part of Marvell
6Discovery system controller chips (mv64[345]60).
7
8The Discovery ethernet controller is described with two levels of nodes. The
9first level describes the ethernet controller itself and the second level
10describes up to 3 ethernet port nodes within that controller. The reason for
11the multiple levels is that the port registers are interleaved within a single
12set of controller registers. Each port node describes port-specific properties.
13
14Note: The above separation is only true for Discovery system controllers.
15For Orion SoCs we stick to the separation, although there each controller has
16only one port associated. Multiple ports are implemented as multiple single-port
17controllers. As Kirkwood has some issues with proper initialization after reset,
18an extra compatible string is added for it.
19
20* Ethernet controller node
21
22Required controller properties:
23 - #address-cells: shall be 1.
24 - #size-cells: shall be 0.
25 - compatible: shall be one of "marvell,orion-eth", "marvell,kirkwood-eth".
26 - reg: address and length of the controller registers.
27
28Optional controller properties:
29 - clocks: phandle reference to the controller clock.
30 - marvell,tx-checksum-limit: max tx packet size for hardware checksum.
31
32* Ethernet port node
33
34Required port properties:
35 - compatible: shall be one of "marvell,orion-eth-port",
36      "marvell,kirkwood-eth-port".
37 - reg: port number relative to ethernet controller, shall be 0, 1, or 2.
38 - interrupts: port interrupt.
39 - local-mac-address: See ethernet.txt file in the same directory.
40
41Optional port properties:
42 - marvell,tx-queue-size: size of the transmit ring buffer.
43 - marvell,tx-sram-addr: address of transmit descriptor buffer located in SRAM.
44 - marvell,tx-sram-size: size of transmit descriptor buffer located in SRAM.
45 - marvell,rx-queue-size: size of the receive ring buffer.
46 - marvell,rx-sram-addr: address of receive descriptor buffer located in SRAM.
47 - marvell,rx-sram-size: size of receive descriptor buffer located in SRAM.
48
49and
50
51 - phy-handle: See ethernet.txt file in the same directory.
52
53or
54
55 - speed: port speed if no PHY connected.
56 - duplex: port mode if no PHY connected.
57
58* Node example:
59
60mdio-bus {
61	...
62	ethphy: ethernet-phy@8 {
63		...
64	};
65};
66
67eth: ethernet-controller@72000 {
68	compatible = "marvell,orion-eth";
69	#address-cells = <1>;
70	#size-cells = <0>;
71	reg = <0x72000 0x2000>;
72	clocks = <&gate_clk 2>;
73	marvell,tx-checksum-limit = <1600>;
74
75	ethernet@0 {
76		compatible = "marvell,orion-eth-port";
77		reg = <0>;
78		interrupts = <29>;
79		phy-handle = <&ethphy>;
80		local-mac-address = [00 00 00 00 00 00];
81	};
82};
83