Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 1 | * STMicroelectronics 10/100/1000 Ethernet driver (GMAC) |
| 2 | |
| 3 | Required properties: |
Dinh Nguyen | 84c9f8c4 | 2012-07-18 13:28:26 +0000 | [diff] [blame] | 4 | - compatible: Should be "snps,dwmac-<ip_version>" "snps,dwmac" |
| 5 | For backwards compatibility: "st,spear600-gmac" is also supported. |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 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 |
Sergei Shtylyov | e8f08ee | 2014-02-18 02:41:59 +0300 | [diff] [blame] | 13 | - phy-mode: See ethernet.txt file in the same directory. |
Srinivas Kandagatla | 0e07647 | 2013-07-04 10:35:48 +0100 | [diff] [blame] | 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. |
Srinivas Kandagatla | 25c83b5 | 2013-07-04 10:35:41 +0100 | [diff] [blame] | 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 |
Sonic Zhang | e2a240c | 2013-08-28 18:55:39 +0800 | [diff] [blame] | 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. |
Vince Bridgers | 94ceaa2 | 2014-07-31 15:49:15 -0500 | [diff] [blame] | 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 |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 32 | |
| 33 | Optional properties: |
Chen-Yu Tsai | c5e4ddb | 2014-01-17 21:24:41 +0800 | [diff] [blame] | 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 |
Sergei Shtylyov | e8f08ee | 2014-02-18 02:41:59 +0300 | [diff] [blame] | 37 | - max-frame-size: See ethernet.txt file in the same directory |
Dinh Nguyen | 50b4af4 | 2014-03-26 22:45:12 -0500 | [diff] [blame] | 38 | - clocks: If present, the first clock should be the GMAC main clock, |
| 39 | further clocks may be specified in derived bindings. |
Geert Uytterhoeven | ae107d0 | 2014-04-22 20:40:25 +0200 | [diff] [blame] | 40 | - clock-names: One name for each entry in the clocks property, the |
Dinh Nguyen | 50b4af4 | 2014-03-26 22:45:12 -0500 | [diff] [blame] | 41 | first one should be "stmmaceth". |
Giuseppe CAVALLARO | 5566401 | 2014-08-27 10:37:49 +0200 | [diff] [blame^] | 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. |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 46 | |
| 47 | Examples: |
| 48 | |
| 49 | gmac0: ethernet@e0800000 { |
| 50 | compatible = "st,spear600-gmac"; |
| 51 | reg = <0xe0800000 0x8000>; |
| 52 | interrupt-parent = <&vic1>; |
| 53 | interrupts = <24 23>; |
| 54 | interrupt-names = "macirq", "eth_wake_irq"; |
| 55 | mac-address = [000000000000]; /* Filled in by U-Boot */ |
Vince Bridgers | 369ea81 | 2014-01-20 05:39:00 -0600 | [diff] [blame] | 56 | max-frame-size = <3800>; |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 57 | phy-mode = "gmii"; |
Vince Bridgers | 94ceaa2 | 2014-07-31 15:49:15 -0500 | [diff] [blame] | 58 | snps,multicast-filter-bins = <256>; |
| 59 | snps,perfect-filter-entries = <128>; |
Dinh Nguyen | 50b4af4 | 2014-03-26 22:45:12 -0500 | [diff] [blame] | 60 | clocks = <&clock>; |
| 61 | clock-names = "stmmaceth">; |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 62 | }; |