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