microchip,lan78xx.txt 1.4 KB

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