101d26589SPhil ElwellMicrochip LAN78xx Gigabit Ethernet controller
201d26589SPhil Elwell
301d26589SPhil ElwellThe LAN78XX devices are usually configured by programming their OTP or with
401d26589SPhil Elwellan external EEPROM, but some platforms (e.g. Raspberry Pi 3 B+) have neither.
501d26589SPhil ElwellThe Device Tree properties, if present, override the OTP and EEPROM.
601d26589SPhil Elwell
701d26589SPhil ElwellRequired properties:
801d26589SPhil Elwell- compatible: Should be one of "usb424,7800", "usb424,7801" or "usb424,7850".
901d26589SPhil Elwell
1001d26589SPhil ElwellOptional properties:
1101d26589SPhil Elwell- local-mac-address:   see ethernet.txt
1201d26589SPhil Elwell- mac-address:         see ethernet.txt
1301d26589SPhil Elwell
1401d26589SPhil ElwellOptional properties of the embedded PHY:
1501d26589SPhil Elwell- microchip,led-modes: a 0..4 element vector, with each element configuring
1601d26589SPhil Elwell  the operating mode of an LED. Omitted LEDs are turned off. Allowed values
1701d26589SPhil Elwell  are defined in "include/dt-bindings/net/microchip-lan78xx.h".
1801d26589SPhil Elwell
1901d26589SPhil ElwellExample:
2001d26589SPhil Elwell
2101d26589SPhil Elwell/* Based on the configuration for a Raspberry Pi 3 B+ */
2201d26589SPhil Elwell&usb {
2301d26589SPhil Elwell	usb-port@1 {
2401d26589SPhil Elwell		compatible = "usb424,2514";
2501d26589SPhil Elwell		reg = <1>;
2601d26589SPhil Elwell		#address-cells = <1>;
2701d26589SPhil Elwell		#size-cells = <0>;
2801d26589SPhil Elwell
2901d26589SPhil Elwell		usb-port@1 {
3001d26589SPhil Elwell			compatible = "usb424,2514";
3101d26589SPhil Elwell			reg = <1>;
3201d26589SPhil Elwell			#address-cells = <1>;
3301d26589SPhil Elwell			#size-cells = <0>;
3401d26589SPhil Elwell
3501d26589SPhil Elwell			ethernet: ethernet@1 {
3601d26589SPhil Elwell				compatible = "usb424,7800";
3701d26589SPhil Elwell				reg = <1>;
3801d26589SPhil Elwell				local-mac-address = [ 00 11 22 33 44 55 ];
3901d26589SPhil Elwell
4001d26589SPhil Elwell				mdio {
4101d26589SPhil Elwell					#address-cells = <0x1>;
4201d26589SPhil Elwell					#size-cells = <0x0>;
4301d26589SPhil Elwell					eth_phy: ethernet-phy@1 {
4401d26589SPhil Elwell						reg = <1>;
4501d26589SPhil Elwell						microchip,led-modes = <
4601d26589SPhil Elwell							LAN78XX_LINK_1000_ACTIVITY
4701d26589SPhil Elwell							LAN78XX_LINK_10_100_ACTIVITY
4801d26589SPhil Elwell						>;
4901d26589SPhil Elwell					};
5001d26589SPhil Elwell				};
5101d26589SPhil Elwell			};
5201d26589SPhil Elwell		};
5301d26589SPhil Elwell	};
5401d26589SPhil Elwell};
55