nxp,dwmac-imx.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP i.MX8/9 DWMAC glue layer
  7. maintainers:
  8. - Clark Wang <xiaoning.wang@nxp.com>
  9. - Shawn Guo <shawnguo@kernel.org>
  10. - NXP Linux Team <linux-imx@nxp.com>
  11. # We need a select here so we don't match all nodes with 'snps,dwmac'
  12. select:
  13. properties:
  14. compatible:
  15. contains:
  16. enum:
  17. - nxp,imx8mp-dwmac-eqos
  18. - nxp,imx8dxl-dwmac-eqos
  19. - nxp,imx93-dwmac-eqos
  20. required:
  21. - compatible
  22. allOf:
  23. - $ref: snps,dwmac.yaml#
  24. properties:
  25. compatible:
  26. oneOf:
  27. - items:
  28. - enum:
  29. - nxp,imx8mp-dwmac-eqos
  30. - nxp,imx8dxl-dwmac-eqos
  31. - nxp,imx93-dwmac-eqos
  32. - const: snps,dwmac-5.10a
  33. clocks:
  34. minItems: 3
  35. items:
  36. - description: MAC host clock
  37. - description: MAC apb clock
  38. - description: MAC timer clock
  39. - description: MAC RGMII TX clock
  40. - description: EQOS MEM clock
  41. clock-names:
  42. minItems: 3
  43. maxItems: 5
  44. contains:
  45. enum:
  46. - stmmaceth
  47. - pclk
  48. - ptp_ref
  49. - tx
  50. - mem
  51. interrupts:
  52. maxItems: 2
  53. interrupt-names:
  54. items:
  55. - const: macirq
  56. - const: eth_wake_irq
  57. intf_mode:
  58. $ref: /schemas/types.yaml#/definitions/phandle-array
  59. items:
  60. - items:
  61. - description: phandle to the GPR syscon
  62. - description: the offset of the GPR register
  63. description:
  64. Should be phandle/offset pair. The phandle to the syscon node which
  65. encompases the GPR register, and the offset of the GPR register.
  66. nvmem-cells: true
  67. nvmem-cell-names: true
  68. snps,rmii_refclk_ext:
  69. $ref: /schemas/types.yaml#/definitions/flag
  70. description:
  71. To select RMII reference clock from external.
  72. required:
  73. - compatible
  74. - clocks
  75. - clock-names
  76. unevaluatedProperties: false
  77. examples:
  78. - |
  79. #include <dt-bindings/interrupt-controller/arm-gic.h>
  80. #include <dt-bindings/interrupt-controller/irq.h>
  81. #include <dt-bindings/clock/imx8mp-clock.h>
  82. eqos: ethernet@30bf0000 {
  83. compatible = "nxp,imx8mp-dwmac-eqos","snps,dwmac-5.10a";
  84. reg = <0x30bf0000 0x10000>;
  85. interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
  86. <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
  87. interrupt-names = "macirq", "eth_wake_irq";
  88. clocks = <&clk IMX8MP_CLK_ENET_QOS_ROOT>,
  89. <&clk IMX8MP_CLK_QOS_ENET_ROOT>,
  90. <&clk IMX8MP_CLK_ENET_QOS_TIMER>,
  91. <&clk IMX8MP_CLK_ENET_QOS>;
  92. clock-names = "stmmaceth", "pclk", "ptp_ref", "tx";
  93. phy-mode = "rgmii";
  94. };