-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: phytmac: Add bindings for Phytium MAC 1.0 and 2.0
This patch document the DT bindings for the Phytium MAC 1.0 and 2.0 controller. Signed-off-by: Li Wencheng <[email protected]> Signed-off-by: Wang Yinfeng <[email protected]> Signed-off-by: Wang Zhimin <[email protected]>
- Loading branch information
1 parent
4e5def3
commit 246bc9b
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
* Phytium xgmac Ethernet controller | ||
|
||
Required properties: | ||
- compatible: Should be "phytium,gmac-[version]" | ||
Use "phytium,gmac-1.0" for gmac version 1.0 on Phytium SoCs | ||
Use "phytium,gmac-2.0" for gmac version 2.0 on Phytium SoCs | ||
|
||
- reg: Address and length of the register set for the device | ||
- interrupts: Should contain phytmac interrupt | ||
- queue-number: The number of queues for the device | ||
- phy-mode: See ethernet.txt file in the same directory | ||
- fixed-link:See ethernet.txt file in the same directory | ||
- dma-coherent: Boolean property, must only be present if memory | ||
accesses performed by the device are cache coherent. | ||
|
||
The MAC address will be determined using the optional properties | ||
defined in ethernet.txt. | ||
|
||
Examples: | ||
|
||
eth0@36ce0000 { | ||
compatible = "phytium,gmac-1.0"; | ||
reg = <0x00 0x36ce0000 0x00 0x2000>; | ||
interrupts = <0x00 0x20 0x04 0x00 0x21 0x04 0x00 0x22 0x04 0x00 0x23 0x04>; | ||
queue-number = <0x04>; | ||
magic-packet; | ||
dma-coherent; | ||
phy-mode = "usxgmii"; | ||
status = "okay"; | ||
|
||
fixed-link { | ||
speed = <0x2710>; | ||
full-duplex; | ||
}; | ||
}; |