Merge remote-tracking branches 'spi/topic/spidev', 'spi/topic/spidev-test', 'spi...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / net / marvell-pp2.txt
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).
31
32 Example:
33
34 ethernet@f0000 {
35         compatible = "marvell,armada-375-pp2";
36         reg = <0xf0000 0xa000>,
37               <0xc0000 0x3060>,
38               <0xc4000 0x100>,
39               <0xc5000 0x100>;
40         clocks = <&gateclk 3>, <&gateclk 19>;
41         clock-names = "pp_clk", "gop_clk";
42         status = "okay";
43
44         eth0: eth0@c4000 {
45                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
46                 port-id = <0>;
47                 status = "okay";
48                 phy = <&phy0>;
49                 phy-mode = "gmii";
50         };
51
52         eth1: eth1@c5000 {
53                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
54                 port-id = <1>;
55                 status = "okay";
56                 phy = <&phy3>;
57                 phy-mode = "gmii";
58         };
59 };