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. |
Giuseppe Cavallaro | afea036 | 2016-02-29 14:27:28 +0100 | [diff] [blame] | 20 | |
| 21 | Optional properties: |
| 22 | - resets: Should contain a phandle to the STMMAC reset signal, if any |
| 23 | - reset-names: Should contain the reset signal name "stmmaceth", if a |
| 24 | reset phandle is given |
| 25 | - max-frame-size: See ethernet.txt file in the same directory |
| 26 | - clocks: If present, the first clock should be the GMAC main clock and |
| 27 | the second clock should be peripheral's register interface clock. Further |
| 28 | clocks may be specified in derived bindings. |
| 29 | - clock-names: One name for each entry in the clocks property, the |
| 30 | first one should be "stmmaceth" and the second one should be "pclk". |
| 31 | - clk_ptp_ref: this is the PTP reference clock; in case of the PTP is |
| 32 | available this clock is used for programming the Timestamp Addend Register. |
| 33 | If not passed then the system clock will be used and this is fine on some |
| 34 | platforms. |
| 35 | - tx-fifo-depth: See ethernet.txt file in the same directory |
| 36 | - rx-fifo-depth: See ethernet.txt file in the same directory |
Srinivas Kandagatla | 25c83b5 | 2013-07-04 10:35:41 +0100 | [diff] [blame] | 37 | - snps,pbl Programmable Burst Length |
Giuseppe Cavallaro | afea036 | 2016-02-29 14:27:28 +0100 | [diff] [blame] | 38 | - snps,aal Address-Aligned Beats |
Srinivas Kandagatla | 25c83b5 | 2013-07-04 10:35:41 +0100 | [diff] [blame] | 39 | - snps,fixed-burst Program the DMA to use the fixed burst mode |
| 40 | - snps,mixed-burst Program the DMA to use the mixed burst mode |
Sonic Zhang | e2a240c | 2013-08-28 18:55:39 +0800 | [diff] [blame] | 41 | - snps,force_thresh_dma_mode Force DMA to use the threshold mode for |
| 42 | both tx and rx |
| 43 | - snps,force_sf_dma_mode Force DMA to use the Store and Forward |
| 44 | mode for both tx and rx. This flag is |
| 45 | ignored if force_thresh_dma_mode is set. |
Vince Bridgers | 94ceaa2 | 2014-07-31 15:49:15 -0500 | [diff] [blame] | 46 | - snps,multicast-filter-bins: Number of multicast filter hash bins |
| 47 | supported by this device instance |
| 48 | - snps,perfect-filter-entries: Number of perfect filter entries supported |
| 49 | by this device instance |
Giuseppe Cavallaro | afea036 | 2016-02-29 14:27:28 +0100 | [diff] [blame] | 50 | - AXI BUS Mode parameters: below the list of all the parameters to program the |
| 51 | AXI register inside the DMA module: |
| 52 | - snps,lpi_en: enable Low Power Interface |
| 53 | - snps,xit_frm: unlock on WoL |
Eric Engestrom | dd346f27 | 2016-04-25 01:24:15 +0100 | [diff] [blame^] | 54 | - snps,wr_osr_lmt: max write outstanding req. limit |
| 55 | - snps,rd_osr_lmt: max read outstanding req. limit |
Giuseppe Cavallaro | afea036 | 2016-02-29 14:27:28 +0100 | [diff] [blame] | 56 | - snps,kbbe: do not cross 1KiB boundary. |
| 57 | - snps,axi_all: align address |
| 58 | - snps,blen: this is a vector of supported burst length. |
| 59 | - snps,fb: fixed-burst |
| 60 | - snps,mb: mixed-burst |
| 61 | - snps,rb: rebuild INCRx Burst |
Phil Reid | e34d656 | 2015-12-14 11:31:59 +0800 | [diff] [blame] | 62 | - mdio: with compatible = "snps,dwmac-mdio", create and register mdio bus. |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 63 | |
| 64 | Examples: |
| 65 | |
Giuseppe Cavallaro | afea036 | 2016-02-29 14:27:28 +0100 | [diff] [blame] | 66 | stmmac_axi_setup: stmmac-axi-config { |
| 67 | snps,wr_osr_lmt = <0xf>; |
| 68 | snps,rd_osr_lmt = <0xf>; |
| 69 | snps,blen = <256 128 64 32 0 0 0>; |
| 70 | }; |
| 71 | |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 72 | gmac0: ethernet@e0800000 { |
| 73 | compatible = "st,spear600-gmac"; |
| 74 | reg = <0xe0800000 0x8000>; |
| 75 | interrupt-parent = <&vic1>; |
| 76 | interrupts = <24 23>; |
| 77 | interrupt-names = "macirq", "eth_wake_irq"; |
| 78 | mac-address = [000000000000]; /* Filled in by U-Boot */ |
Vince Bridgers | 369ea81 | 2014-01-20 05:39:00 -0600 | [diff] [blame] | 79 | max-frame-size = <3800>; |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 80 | phy-mode = "gmii"; |
Vince Bridgers | 94ceaa2 | 2014-07-31 15:49:15 -0500 | [diff] [blame] | 81 | snps,multicast-filter-bins = <256>; |
| 82 | snps,perfect-filter-entries = <128>; |
Vince Bridgers | 13967f0 | 2015-04-15 11:17:38 -0500 | [diff] [blame] | 83 | rx-fifo-depth = <16384>; |
| 84 | tx-fifo-depth = <16384>; |
Dinh Nguyen | 50b4af4 | 2014-03-26 22:45:12 -0500 | [diff] [blame] | 85 | clocks = <&clock>; |
Pavel Machek | 924064e | 2014-08-18 23:59:28 +0200 | [diff] [blame] | 86 | clock-names = "stmmaceth"; |
Giuseppe Cavallaro | afea036 | 2016-02-29 14:27:28 +0100 | [diff] [blame] | 87 | snps,axi-config = <&stmmac_axi_setup>; |
Phil Reid | e34d656 | 2015-12-14 11:31:59 +0800 | [diff] [blame] | 88 | mdio0 { |
| 89 | #address-cells = <1>; |
| 90 | #size-cells = <0>; |
| 91 | compatible = "snps,dwmac-mdio"; |
| 92 | phy1: ethernet-phy@0 { |
| 93 | }; |
| 94 | }; |
Stefan Roese | 6a22845 | 2012-03-13 04:56:37 +0000 | [diff] [blame] | 95 | }; |