marvell-armada-370-neta.txt 1.7 KB
Newer Older
1 2 3
* Marvell Armada 370 / Armada XP Ethernet Controller (NETA)

Required properties:
4
- compatible: "marvell,armada-370-neta" or "marvell,armada-xp-neta".
5 6
- reg: address and length of the register set for the device.
- interrupts: interrupt for the device
7 8
- phy: See ethernet.txt file in the same directory.
- phy-mode: See ethernet.txt file in the same directory
9 10 11
- clocks: List of clocks for this device. At least one clock is
  mandatory for the core clock. If several clocks are given, then the
  clock-names property must be used to identify them.
12

13 14 15 16
Optional properties:
- tx-csum-limit: maximum mtu supported by port that allow TX checksum.
  Value is presented in bytes. If not used, by default 1600B is set for
  "marvell,armada-370-neta" and 9800B for others.
17 18 19
- clock-names: List of names corresponding to clocks property; shall be
  "core" for core clock and "bus" for the optional bus clock.

20

21 22 23 24 25 26 27 28 29 30 31 32
Optional properties (valid only for Armada XP/38x):

- buffer-manager: a phandle to a buffer manager node. Please refer to
  Documentation/devicetree/bindings/net/marvell-neta-bm.txt
- bm,pool-long: ID of a pool, that will accept all packets of a size
  higher than 'short' pool's threshold (if set) and up to MTU value.
  Obligatory, when the port is supposed to use hardware
  buffer management.
- bm,pool-short: ID of a pool, that will be used for accepting
  packets of a size lower than given threshold. If not set, the port
  will use a single 'long' pool for all packets, as defined above.

33 34
Example:

35
ethernet@70000 {
36
	compatible = "marvell,armada-370-neta";
37
	reg = <0x70000 0x2500>;
38
	interrupts = <8>;
T
Thomas Petazzoni 已提交
39
	clocks = <&gate_clk 4>;
40
	tx-csum-limit = <9800>
41 42 43
	status = "okay";
	phy = <&phy0>;
	phy-mode = "rgmii-id";
44 45 46
	buffer-manager = <&bm>;
	bm,pool-long = <0>;
	bm,pool-short = <1>;
47
};