stm32-dwmac.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. STMicroelectronics STM32 / MCU DWMAC glue layer controller
  2. This file documents platform glue layer for stmmac.
  3. Please see stmmac.txt for the other unchanged properties.
  4. The device node has following properties.
  5. Required properties:
  6. - compatible: For MCU family should be "st,stm32-dwmac" to select glue, and
  7. "snps,dwmac-3.50a" to select IP version.
  8. For MPU family should be "st,stm32mp1-dwmac" to select
  9. glue, and "snps,dwmac-4.20a" to select IP version.
  10. - clocks: Must contain a phandle for each entry in clock-names.
  11. - clock-names: Should be "stmmaceth" for the host clock.
  12. Should be "mac-clk-tx" for the MAC TX clock.
  13. Should be "mac-clk-rx" for the MAC RX clock.
  14. For MPU family need to add also "ethstp" for power mode clock and,
  15. "syscfg-clk" for SYSCFG clock.
  16. - interrupt-names: Should contain a list of interrupt names corresponding to
  17. the interrupts in the interrupts property, if available.
  18. Should be "macirq" for the main MAC IRQ
  19. Should be "eth_wake_irq" for the IT which wake up system
  20. - st,syscon : Should be phandle/offset pair. The phandle to the syscon node which
  21. encompases the glue register, and the offset of the control register.
  22. Optional properties:
  23. - clock-names: For MPU family "mac-clk-ck" for PHY without quartz
  24. - st,int-phyclk (boolean) : valid only where PHY do not have quartz and need to be clock
  25. by RCC
  26. Example:
  27. ethernet@40028000 {
  28. compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
  29. reg = <0x40028000 0x8000>;
  30. reg-names = "stmmaceth";
  31. interrupts = <0 61 0>, <0 62 0>;
  32. interrupt-names = "macirq", "eth_wake_irq";
  33. clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
  34. clocks = <&rcc 0 25>, <&rcc 0 26>, <&rcc 0 27>;
  35. st,syscon = <&syscfg 0x4>;
  36. snps,pbl = <8>;
  37. snps,mixed-burst;
  38. dma-ranges;
  39. };