diff options
Diffstat (limited to 'Documentation/devicetree/bindings/net/marvell-pp2.txt')
-rw-r--r-- | Documentation/devicetree/bindings/net/marvell-pp2.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/marvell-pp2.txt b/Documentation/devicetree/bindings/net/marvell-pp2.txt new file mode 100644 index 000000000000..aa4f4230bfd7 --- /dev/null +++ b/Documentation/devicetree/bindings/net/marvell-pp2.txt | |||
@@ -0,0 +1,61 @@ | |||
1 | * Marvell Armada 375 Ethernet Controller (PPv2) | ||
2 | |||
3 | Required properties: | ||
4 | |||
5 | - compatible: should be "marvell,armada-375-pp2" | ||
6 | - reg: addresses and length of the register sets for the device. | ||
7 | Must contain the following register sets: | ||
8 | - common controller registers | ||
9 | - LMS registers | ||
10 | In addition, at least one port register set is required. | ||
11 | - clocks: a pointer to the reference clocks for this device, consequently: | ||
12 | - main controller clock | ||
13 | - GOP clock | ||
14 | - clock-names: names of used clocks, must be "pp_clk" and "gop_clk". | ||
15 | |||
16 | The ethernet ports are represented by subnodes. At least one port is | ||
17 | required. | ||
18 | |||
19 | Required properties (port): | ||
20 | |||
21 | - interrupts: interrupt for the port | ||
22 | - port-id: should be '0' or '1' for ethernet ports, and '2' for the | ||
23 | loopback port | ||
24 | - phy-mode: See ethernet.txt file in the same directory | ||
25 | |||
26 | Optional properties (port): | ||
27 | |||
28 | - marvell,loopback: port is loopback mode | ||
29 | - phy: a phandle to a phy node defining the PHY address (as the reg | ||
30 | property, a single integer). Note: if this property isn't present, | ||
31 | then fixed link is assumed, and the 'fixed-link' property is | ||
32 | mandatory. | ||
33 | |||
34 | Example: | ||
35 | |||
36 | ethernet@f0000 { | ||
37 | compatible = "marvell,armada-375-pp2"; | ||
38 | reg = <0xf0000 0xa000>, | ||
39 | <0xc0000 0x3060>, | ||
40 | <0xc4000 0x100>, | ||
41 | <0xc5000 0x100>; | ||
42 | clocks = <&gateclk 3>, <&gateclk 19>; | ||
43 | clock-names = "pp_clk", "gop_clk"; | ||
44 | status = "okay"; | ||
45 | |||
46 | eth0: eth0@c4000 { | ||
47 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; | ||
48 | port-id = <0>; | ||
49 | status = "okay"; | ||
50 | phy = <&phy0>; | ||
51 | phy-mode = "gmii"; | ||
52 | }; | ||
53 | |||
54 | eth1: eth1@c5000 { | ||
55 | interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; | ||
56 | port-id = <1>; | ||
57 | status = "okay"; | ||
58 | phy = <&phy3>; | ||
59 | phy-mode = "gmii"; | ||
60 | }; | ||
61 | }; | ||