-
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: 368639 b: refs/heads/master c: f5a03cf h: refs/heads/master i: 368637: 36103f3 368635: 304cfb5 368631: 02ac103 368623: 0f8c664 368607: 53d89eb 368575: bb9b152 368511: c877ebc 368383: 7fcd104 368127: ce02e51 367615: 2f1afb9 366591: 93d68ee 364543: 0e4ad2a 360447: 3a4bf49 v: v3
- Loading branch information
David S. Miller
committed
Mar 24, 2013
1 parent
fc43376
commit ff4a465
Showing
1,379 changed files
with
31,130 additions
and
14,592 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: 8559e7f0694e3fb192aab00a495be5a510afc8c3 | ||
refs/heads/master: f5a03cf461f225d03ec7bf18b10b74e6f620cb49 |
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
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,91 @@ | ||
Marvell Distributed Switch Architecture Device Tree Bindings | ||
------------------------------------------------------------ | ||
|
||
Required properties: | ||
- compatible : Should be "marvell,dsa" | ||
- #address-cells : Must be 2, first cell is the address on the MDIO bus | ||
and second cell is the address in the switch tree. | ||
Second cell is used only when cascading/chaining. | ||
- #size-cells : Must be 0 | ||
- dsa,ethernet : Should be a phandle to a valid Ethernet device node | ||
- dsa,mii-bus : Should be a phandle to a valid MDIO bus device node | ||
|
||
Optionnal properties: | ||
- interrupts : property with a value describing the switch | ||
interrupt number (not supported by the driver) | ||
|
||
A DSA node can contain multiple switch chips which are therefore child nodes of | ||
the parent DSA node. The maximum number of allowed child nodes is 4 | ||
(DSA_MAX_SWITCHES). | ||
Each of these switch child nodes should have the following required properties: | ||
|
||
- reg : Describes the switch address on the MII bus | ||
- #address-cells : Must be 1 | ||
- #size-cells : Must be 0 | ||
|
||
A switch may have multiple "port" children nodes | ||
|
||
Each port children node must have the following mandatory properties: | ||
- reg : Describes the port address in the switch | ||
- label : Describes the label associated with this port, special | ||
labels are "cpu" to indicate a CPU port and "dsa" to | ||
indicate an uplink/downlink port. | ||
|
||
Note that a port labelled "dsa" will imply checking for the uplink phandle | ||
described below. | ||
|
||
Optionnal property: | ||
- link : Should be a phandle to another switch's DSA port. | ||
This property is only used when switches are being | ||
chained/cascaded together. | ||
|
||
Example: | ||
|
||
dsa@0 { | ||
compatible = "marvell,dsa"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
interrupts = <10>; | ||
dsa,ethernet = <ðernet0>; | ||
dsa,mii-bus = <&mii_bus0>; | ||
|
||
switch@0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <16 0>; /* MDIO address 16, switch 0 in tree */ | ||
|
||
port@0 { | ||
reg = <0>; | ||
label = "lan1"; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
label = "lan2"; | ||
}; | ||
|
||
port@5 { | ||
reg = <5>; | ||
label = "cpu"; | ||
}; | ||
|
||
switch0uplink: port@6 { | ||
reg = <6>; | ||
label = "dsa"; | ||
link = <&switch1uplink>; | ||
}; | ||
}; | ||
|
||
switch@1 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <17 1>; /* MDIO address 17, switch 1 in tree */ | ||
|
||
switch1uplink: port@0 { | ||
reg = <0>; | ||
label = "dsa"; | ||
link = <&switch0uplink>; | ||
}; | ||
}; | ||
}; |
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
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
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.