-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 344306 b: refs/heads/master c: 32d6448 h: refs/heads/master v: v3
- Loading branch information
Jason Cooper
committed
Nov 21, 2012
1 parent
497d3d7
commit 8092d63
Showing
29 changed files
with
3,993 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e60304f8cb7bb545e79fe62d9b9762460c254ec2 | ||
refs/heads/master: 32d6448a08bdbe6d22fcff1dfffb8399003282df |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
* Marvell XOR engines | ||
|
||
Required properties: | ||
- compatible: Should be "marvell,orion-xor" | ||
- reg: Should contain registers location and length (two sets) | ||
the first set is the low registers, the second set the high | ||
registers for the XOR engine. | ||
- clocks: pointer to the reference clock | ||
|
||
The DT node must also contains sub-nodes for each XOR channel that the | ||
XOR engine has. Those sub-nodes have the following required | ||
properties: | ||
- interrupts: interrupt of the XOR channel | ||
|
||
And the following optional properties: | ||
- dmacap,memcpy to indicate that the XOR channel is capable of memcpy operations | ||
- dmacap,memset to indicate that the XOR channel is capable of memset operations | ||
- dmacap,xor to indicate that the XOR channel is capable of xor operations | ||
|
||
Example: | ||
|
||
xor@d0060900 { | ||
compatible = "marvell,orion-xor"; | ||
reg = <0xd0060900 0x100 | ||
0xd0060b00 0x100>; | ||
clocks = <&coreclk 0>; | ||
status = "okay"; | ||
|
||
xor00 { | ||
interrupts = <51>; | ||
dmacap,memcpy; | ||
dmacap,xor; | ||
}; | ||
xor01 { | ||
interrupts = <52>; | ||
dmacap,memcpy; | ||
dmacap,xor; | ||
dmacap,memset; | ||
}; | ||
}; |
23 changes: 23 additions & 0 deletions
23
trunk/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
* Marvell Armada 370 / Armada XP Ethernet Controller (NETA) | ||
|
||
Required properties: | ||
- compatible: should be "marvell,armada-370-neta". | ||
- reg: address and length of the register set for the device. | ||
- interrupts: interrupt for the device | ||
- phy: A phandle to a phy node defining the PHY address (as the reg | ||
property, a single integer). | ||
- phy-mode: The interface between the SoC and the PHY (a string that | ||
of_get_phy_mode() can understand) | ||
- clocks: a pointer to the reference clock for this device. | ||
|
||
Example: | ||
|
||
ethernet@d0070000 { | ||
compatible = "marvell,armada-370-neta"; | ||
reg = <0xd0070000 0x2500>; | ||
interrupts = <8>; | ||
clocks = <&gate_clk 4>; | ||
status = "okay"; | ||
phy = <&phy0>; | ||
phy-mode = "rgmii-id"; | ||
}; |
35 changes: 35 additions & 0 deletions
35
trunk/Documentation/devicetree/bindings/net/marvell-orion-mdio.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
* Marvell MDIO Ethernet Controller interface | ||
|
||
The Ethernet controllers of the Marvel Kirkwood, Dove, Orion5x, | ||
MV78xx0, Armada 370 and Armada XP have an identical unit that provides | ||
an interface with the MDIO bus. This driver handles this MDIO | ||
interface. | ||
|
||
Required properties: | ||
- compatible: "marvell,orion-mdio" | ||
- reg: address and length of the SMI register | ||
|
||
The child nodes of the MDIO driver are the individual PHY devices | ||
connected to this MDIO bus. They must have a "reg" property given the | ||
PHY address on the MDIO bus. | ||
|
||
Example at the SoC level: | ||
|
||
mdio { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "marvell,orion-mdio"; | ||
reg = <0xd0072004 0x4>; | ||
}; | ||
|
||
And at the board level: | ||
|
||
mdio { | ||
phy0: ethernet-phy@0 { | ||
reg = <0>; | ||
}; | ||
|
||
phy1: ethernet-phy@1 { | ||
reg = <1>; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Device Tree file for Globalscale Mirabox | ||
* | ||
* Gregory CLEMENT <gregory.clement@free-electrons.com> | ||
* | ||
* This file is licensed under the terms of the GNU General Public | ||
* License version 2. This program is licensed "as is" without any | ||
* warranty of any kind, whether express or implied. | ||
*/ | ||
|
||
/dts-v1/; | ||
/include/ "armada-370.dtsi" | ||
|
||
/ { | ||
model = "Globalscale Mirabox"; | ||
compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp"; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200 earlyprintk"; | ||
}; | ||
|
||
memory { | ||
device_type = "memory"; | ||
reg = <0x00000000 0x20000000>; /* 512 MB */ | ||
}; | ||
|
||
soc { | ||
serial@d0012000 { | ||
clock-frequency = <200000000>; | ||
status = "okay"; | ||
}; | ||
timer@d0020300 { | ||
clock-frequency = <600000000>; | ||
status = "okay"; | ||
}; | ||
mdio { | ||
phy0: ethernet-phy@0 { | ||
reg = <0>; | ||
}; | ||
|
||
phy1: ethernet-phy@1 { | ||
reg = <1>; | ||
}; | ||
}; | ||
ethernet@d0070000 { | ||
status = "okay"; | ||
phy = <&phy0>; | ||
phy-mode = "rgmii-id"; | ||
}; | ||
ethernet@d0074000 { | ||
status = "okay"; | ||
phy = <&phy1>; | ||
phy-mode = "rgmii-id"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.