xref: /freebsd/sys/contrib/device-tree/Bindings/net/microchip,lan78xx.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMicrochip LAN78xx Gigabit Ethernet controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe LAN78XX devices are usually configured by programming their OTP or with
4*c66ec88fSEmmanuel Vadotan external EEPROM, but some platforms (e.g. Raspberry Pi 3 B+) have neither.
5*c66ec88fSEmmanuel VadotThe Device Tree properties, if present, override the OTP and EEPROM.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot- compatible: Should be one of "usb424,7800", "usb424,7801" or "usb424,7850".
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotThe MAC address will be determined using the optional properties
11*c66ec88fSEmmanuel Vadotdefined in ethernet.txt.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties of the embedded PHY:
14*c66ec88fSEmmanuel Vadot- microchip,led-modes: a 0..4 element vector, with each element configuring
15*c66ec88fSEmmanuel Vadot  the operating mode of an LED. Omitted LEDs are turned off. Allowed values
16*c66ec88fSEmmanuel Vadot  are defined in "include/dt-bindings/net/microchip-lan78xx.h".
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotExample:
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot/* Based on the configuration for a Raspberry Pi 3 B+ */
21*c66ec88fSEmmanuel Vadot&usb {
22*c66ec88fSEmmanuel Vadot	usb-port@1 {
23*c66ec88fSEmmanuel Vadot		compatible = "usb424,2514";
24*c66ec88fSEmmanuel Vadot		reg = <1>;
25*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
26*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot		usb-port@1 {
29*c66ec88fSEmmanuel Vadot			compatible = "usb424,2514";
30*c66ec88fSEmmanuel Vadot			reg = <1>;
31*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
32*c66ec88fSEmmanuel Vadot			#size-cells = <0>;
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot			ethernet: ethernet@1 {
35*c66ec88fSEmmanuel Vadot				compatible = "usb424,7800";
36*c66ec88fSEmmanuel Vadot				reg = <1>;
37*c66ec88fSEmmanuel Vadot				local-mac-address = [ 00 11 22 33 44 55 ];
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot				mdio {
40*c66ec88fSEmmanuel Vadot					#address-cells = <0x1>;
41*c66ec88fSEmmanuel Vadot					#size-cells = <0x0>;
42*c66ec88fSEmmanuel Vadot					eth_phy: ethernet-phy@1 {
43*c66ec88fSEmmanuel Vadot						reg = <1>;
44*c66ec88fSEmmanuel Vadot						microchip,led-modes = <
45*c66ec88fSEmmanuel Vadot							LAN78XX_LINK_1000_ACTIVITY
46*c66ec88fSEmmanuel Vadot							LAN78XX_LINK_10_100_ACTIVITY
47*c66ec88fSEmmanuel Vadot						>;
48*c66ec88fSEmmanuel Vadot					};
49*c66ec88fSEmmanuel Vadot				};
50*c66ec88fSEmmanuel Vadot			};
51*c66ec88fSEmmanuel Vadot		};
52*c66ec88fSEmmanuel Vadot	};
53*c66ec88fSEmmanuel Vadot};
54