Skip to content

Commit

Permalink
dt-bindings: phytmac: Add bindings for Phytium MAC 1.0 and 2.0
Browse files Browse the repository at this point in the history
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
Li Wencheng authored and wangzhimin1179 committed May 27, 2024
1 parent 4e5def3 commit 246bc9b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Documentation/devicetree/bindings/net/phytmac.yaml
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;
};
};

0 comments on commit 246bc9b

Please sign in to comment.