forked from Minki/linux
0e0764715d
This patch adds phy reset callback support for stmmac driver via device trees. It adds three new properties to gmac device tree bindings to define the reset signal via gpio. With this patch users can conveniently pass reset gpio number with pre, pulse and post delay in micro secs via DTs. active low: _________ ____________ <pre-delay> |<pulse-delay> |<post-delay> | | |_______________| active high: ________________ <pre-delay> |<pulse-delay> |<post-delay> | | ________| |___________ Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
* STMicroelectronics 10/100/1000 Ethernet driver (GMAC)
|
|
|
|
Required properties:
|
|
- compatible: Should be "snps,dwmac-<ip_version>" "snps,dwmac"
|
|
For backwards compatibility: "st,spear600-gmac" is also supported.
|
|
- reg: Address and length of the register set for the device
|
|
- interrupt-parent: Should be the phandle for the interrupt controller
|
|
that services interrupts for this device
|
|
- interrupts: Should contain the STMMAC interrupts
|
|
- interrupt-names: Should contain the interrupt names "macirq"
|
|
"eth_wake_irq" if this interrupt is supported in the "interrupts"
|
|
property
|
|
- phy-mode: String, operation mode of the PHY interface.
|
|
Supported values are: "mii", "rmii", "gmii", "rgmii".
|
|
- snps,phy-addr phy address to connect to.
|
|
- snps,reset-gpio gpio number for phy reset.
|
|
- snps,reset-active-low boolean flag to indicate if phy reset is active low.
|
|
- snps,reset-delays-us is triplet of delays
|
|
The 1st cell is reset pre-delay in micro seconds.
|
|
The 2nd cell is reset pulse in micro seconds.
|
|
The 3rd cell is reset post-delay in micro seconds.
|
|
- snps,pbl Programmable Burst Length
|
|
- snps,fixed-burst Program the DMA to use the fixed burst mode
|
|
- snps,mixed-burst Program the DMA to use the mixed burst mode
|
|
|
|
Optional properties:
|
|
- mac-address: 6 bytes, mac address
|
|
|
|
Examples:
|
|
|
|
gmac0: ethernet@e0800000 {
|
|
compatible = "st,spear600-gmac";
|
|
reg = <0xe0800000 0x8000>;
|
|
interrupt-parent = <&vic1>;
|
|
interrupts = <24 23>;
|
|
interrupt-names = "macirq", "eth_wake_irq";
|
|
mac-address = [000000000000]; /* Filled in by U-Boot */
|
|
phy-mode = "gmii";
|
|
};
|