Commit | Line | Data |
---|---|---|
6a228452 SR |
1 | * STMicroelectronics 10/100/1000 Ethernet driver (GMAC) |
2 | ||
3 | Required properties: | |
84c9f8c4 DN |
4 | - compatible: Should be "snps,dwmac-<ip_version>" "snps,dwmac" |
5 | For backwards compatibility: "st,spear600-gmac" is also supported. | |
6a228452 SR |
6 | - reg: Address and length of the register set for the device |
7 | - interrupt-parent: Should be the phandle for the interrupt controller | |
8 | that services interrupts for this device | |
9 | - interrupts: Should contain the STMMAC interrupts | |
10 | - interrupt-names: Should contain the interrupt names "macirq" | |
11 | "eth_wake_irq" if this interrupt is supported in the "interrupts" | |
12 | property | |
e8f08ee0 | 13 | - phy-mode: See ethernet.txt file in the same directory. |
0e076471 SK |
14 | - snps,reset-gpio gpio number for phy reset. |
15 | - snps,reset-active-low boolean flag to indicate if phy reset is active low. | |
16 | - snps,reset-delays-us is triplet of delays | |
17 | The 1st cell is reset pre-delay in micro seconds. | |
18 | The 2nd cell is reset pulse in micro seconds. | |
19 | The 3rd cell is reset post-delay in micro seconds. | |
25c83b5c SK |
20 | - snps,pbl Programmable Burst Length |
21 | - snps,fixed-burst Program the DMA to use the fixed burst mode | |
22 | - snps,mixed-burst Program the DMA to use the mixed burst mode | |
e2a240c7 SZ |
23 | - snps,force_thresh_dma_mode Force DMA to use the threshold mode for |
24 | both tx and rx | |
25 | - snps,force_sf_dma_mode Force DMA to use the Store and Forward | |
26 | mode for both tx and rx. This flag is | |
27 | ignored if force_thresh_dma_mode is set. | |
94ceaa26 VB |
28 | - snps,multicast-filter-bins: Number of multicast filter hash bins |
29 | supported by this device instance | |
30 | - snps,perfect-filter-entries: Number of perfect filter entries supported | |
31 | by this device instance | |
6a228452 SR |
32 | |
33 | Optional properties: | |
c5e4ddbd CYT |
34 | - resets: Should contain a phandle to the STMMAC reset signal, if any |
35 | - reset-names: Should contain the reset signal name "stmmaceth", if a | |
36 | reset phandle is given | |
e8f08ee0 | 37 | - max-frame-size: See ethernet.txt file in the same directory |
50b4af41 DN |
38 | - clocks: If present, the first clock should be the GMAC main clock, |
39 | further clocks may be specified in derived bindings. | |
ae107d06 | 40 | - clock-names: One name for each entry in the clocks property, the |
50b4af41 | 41 | first one should be "stmmaceth". |
5566401f GC |
42 | - clk_ptp_ref: this is the PTP reference clock; in case of the PTP is |
43 | available this clock is used for programming the Timestamp Addend Register. | |
44 | If not passed then the system clock will be used and this is fine on some | |
45 | platforms. | |
fa067467 | 46 | - snps,burst_len: The AXI burst lenth value of the AXI BUS MODE register. |
6a228452 SR |
47 | |
48 | Examples: | |
49 | ||
50 | gmac0: ethernet@e0800000 { | |
51 | compatible = "st,spear600-gmac"; | |
52 | reg = <0xe0800000 0x8000>; | |
53 | interrupt-parent = <&vic1>; | |
54 | interrupts = <24 23>; | |
55 | interrupt-names = "macirq", "eth_wake_irq"; | |
56 | mac-address = [000000000000]; /* Filled in by U-Boot */ | |
369ea818 | 57 | max-frame-size = <3800>; |
6a228452 | 58 | phy-mode = "gmii"; |
94ceaa26 VB |
59 | snps,multicast-filter-bins = <256>; |
60 | snps,perfect-filter-entries = <128>; | |
50b4af41 | 61 | clocks = <&clock>; |
924064e9 | 62 | clock-names = "stmmaceth"; |
6a228452 | 63 | }; |