nxp,lpc1850-dwmac.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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,lpc1850-dwmac.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP LPC1850 GMAC ethernet controller
  7. maintainers:
  8. - Frank Li <Frank.Li@nxp.com>
  9. # We need a select here so we don't match all nodes with 'snps,dwmac'
  10. select:
  11. properties:
  12. compatible:
  13. contains:
  14. enum:
  15. - nxp,lpc1850-dwmac
  16. required:
  17. - compatible
  18. properties:
  19. compatible:
  20. items:
  21. - enum:
  22. - nxp,lpc1850-dwmac
  23. - const: snps,dwmac-3.611
  24. - const: snps,dwmac
  25. reg:
  26. maxItems: 1
  27. clocks:
  28. maxItems: 1
  29. clock-names:
  30. items:
  31. - const: stmmaceth
  32. interrupts:
  33. maxItems: 1
  34. interrupt-names:
  35. items:
  36. - const: macirq
  37. resets:
  38. maxItems: 1
  39. reset-names:
  40. items:
  41. - const: stmmaceth
  42. required:
  43. - compatible
  44. - reg
  45. - clocks
  46. - clock-names
  47. - interrupts
  48. - interrupt-names
  49. allOf:
  50. - $ref: snps,dwmac.yaml#
  51. unevaluatedProperties: false
  52. examples:
  53. - |
  54. #include <dt-bindings/clock/lpc18xx-ccu.h>
  55. ethernet@40010000 {
  56. compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
  57. reg = <0x40010000 0x2000>;
  58. interrupts = <5>;
  59. interrupt-names = "macirq";
  60. clocks = <&ccu1 CLK_CPU_ETHERNET>;
  61. clock-names = "stmmaceth";
  62. resets = <&rgu 22>;
  63. reset-names = "stmmaceth";
  64. rx-fifo-depth = <256>;
  65. tx-fifo-depth = <256>;
  66. snps,pbl = <4>;
  67. snps,force_thresh_dma_mode;
  68. phy-mode = "rgmii-id";
  69. };