xref: /freebsd/sys/contrib/device-tree/Bindings/net/samsung-sxgbe.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Samsung 10G Ethernet driver (SXGBE)
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: Should be "samsung,sxgbe-v2.0a"
5*c66ec88fSEmmanuel Vadot- reg: Address and length of the register set for the device
6*c66ec88fSEmmanuel Vadot- interrupts: Should contain the SXGBE interrupts
7*c66ec88fSEmmanuel Vadot  These interrupts are ordered by fixed and follows variable
8*c66ec88fSEmmanuel Vadot  trasmit DMA interrupts, receive DMA interrupts and lpi interrupt.
9*c66ec88fSEmmanuel Vadot  index 0 - this is fixed common interrupt of SXGBE and it is always
10*c66ec88fSEmmanuel Vadot  available.
11*c66ec88fSEmmanuel Vadot  index 1 to 25 - 8 variable trasmit interrupts, variable 16 receive interrupts
12*c66ec88fSEmmanuel Vadot  and 1 optional lpi interrupt.
13*c66ec88fSEmmanuel Vadot- phy-mode: String, operation mode of the PHY interface.
14*c66ec88fSEmmanuel Vadot  Supported values are: "sgmii", "xgmii".
15*c66ec88fSEmmanuel Vadot- samsung,pbl: Integer, Programmable Burst Length.
16*c66ec88fSEmmanuel Vadot  Supported values are 1, 2, 4, 8, 16, or 32.
17*c66ec88fSEmmanuel Vadot- samsung,burst-map: Integer, Program the possible bursts supported by sxgbe
18*c66ec88fSEmmanuel Vadot  This is an integer and represents allowable DMA bursts when fixed burst.
19*c66ec88fSEmmanuel Vadot  Allowable range is 0x01-0x3F. When this field is set fixed burst is enabled.
20*c66ec88fSEmmanuel Vadot  When fixed length is needed for burst mode, it can be set within allowable
21*c66ec88fSEmmanuel Vadot  range.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotOptional properties:
24*c66ec88fSEmmanuel Vadot- max-frame-size: Maximum Transfer Unit (IEEE defined MTU), rather
25*c66ec88fSEmmanuel Vadot		  than the maximum frame size.
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel VadotThe MAC address will be determined using the optional properties
28*c66ec88fSEmmanuel Vadotdefined in ethernet.txt.
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel VadotExample:
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot	aliases {
33*c66ec88fSEmmanuel Vadot		ethernet0 = <&sxgbe0>;
34*c66ec88fSEmmanuel Vadot	};
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	sxgbe0: ethernet@1a040000 {
37*c66ec88fSEmmanuel Vadot		compatible = "samsung,sxgbe-v2.0a";
38*c66ec88fSEmmanuel Vadot		reg = <0 0x1a040000 0 0x10000>;
39*c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic>;
40*c66ec88fSEmmanuel Vadot		interrupts = <0 209 4>, <0 185 4>, <0 186 4>, <0 187 4>,
41*c66ec88fSEmmanuel Vadot			     <0 188 4>, <0 189 4>, <0 190 4>, <0 191 4>,
42*c66ec88fSEmmanuel Vadot			     <0 192 4>, <0 193 4>, <0 194 4>, <0 195 4>,
43*c66ec88fSEmmanuel Vadot			     <0 196 4>, <0 197 4>, <0 198 4>, <0 199 4>,
44*c66ec88fSEmmanuel Vadot			     <0 200 4>, <0 201 4>, <0 202 4>, <0 203 4>,
45*c66ec88fSEmmanuel Vadot			     <0 204 4>, <0 205 4>, <0 206 4>, <0 207 4>,
46*c66ec88fSEmmanuel Vadot			     <0 208 4>, <0 210 4>;
47*c66ec88fSEmmanuel Vadot		samsung,pbl = <0x08>
48*c66ec88fSEmmanuel Vadot		samsung,burst-map = <0x20>
49*c66ec88fSEmmanuel Vadot		mac-address = [ 00 11 22 33 44 55 ]; /* Filled in by U-Boot */
50*c66ec88fSEmmanuel Vadot		max-frame-size = <9000>;
51*c66ec88fSEmmanuel Vadot		phy-mode = "xgmii";
52*c66ec88fSEmmanuel Vadot	};
53