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