xref: /linux/Documentation/devicetree/bindings/net/microchip,lan78xx.txt (revision c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2)
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
10*687e3d55SPetr ŠtetiarThe MAC address will be determined using the optional properties
11*687e3d55SPetr Štetiardefined in ethernet.txt.
1201d26589SPhil Elwell
1301d26589SPhil ElwellOptional properties of the embedded PHY:
1401d26589SPhil Elwell- microchip,led-modes: a 0..4 element vector, with each element configuring
1501d26589SPhil Elwell  the operating mode of an LED. Omitted LEDs are turned off. Allowed values
1601d26589SPhil Elwell  are defined in "include/dt-bindings/net/microchip-lan78xx.h".
1701d26589SPhil Elwell
1801d26589SPhil ElwellExample:
1901d26589SPhil Elwell
2001d26589SPhil Elwell/* Based on the configuration for a Raspberry Pi 3 B+ */
2101d26589SPhil Elwell&usb {
2201d26589SPhil Elwell	usb-port@1 {
2301d26589SPhil Elwell		compatible = "usb424,2514";
2401d26589SPhil Elwell		reg = <1>;
2501d26589SPhil Elwell		#address-cells = <1>;
2601d26589SPhil Elwell		#size-cells = <0>;
2701d26589SPhil Elwell
2801d26589SPhil Elwell		usb-port@1 {
2901d26589SPhil Elwell			compatible = "usb424,2514";
3001d26589SPhil Elwell			reg = <1>;
3101d26589SPhil Elwell			#address-cells = <1>;
3201d26589SPhil Elwell			#size-cells = <0>;
3301d26589SPhil Elwell
3401d26589SPhil Elwell			ethernet: ethernet@1 {
3501d26589SPhil Elwell				compatible = "usb424,7800";
3601d26589SPhil Elwell				reg = <1>;
3701d26589SPhil Elwell				local-mac-address = [ 00 11 22 33 44 55 ];
3801d26589SPhil Elwell
3901d26589SPhil Elwell				mdio {
4001d26589SPhil Elwell					#address-cells = <0x1>;
4101d26589SPhil Elwell					#size-cells = <0x0>;
4201d26589SPhil Elwell					eth_phy: ethernet-phy@1 {
4301d26589SPhil Elwell						reg = <1>;
4401d26589SPhil Elwell						microchip,led-modes = <
4501d26589SPhil Elwell							LAN78XX_LINK_1000_ACTIVITY
4601d26589SPhil Elwell							LAN78XX_LINK_10_100_ACTIVITY
4701d26589SPhil Elwell						>;
4801d26589SPhil Elwell					};
4901d26589SPhil Elwell				};
5001d26589SPhil Elwell			};
5101d26589SPhil Elwell		};
5201d26589SPhil Elwell	};
5301d26589SPhil Elwell};
54