engleder,tsnep.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/engleder,tsnep.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TSN endpoint Ethernet MAC
  7. maintainers:
  8. - Gerhard Engleder <gerhard@engleder-embedded.com>
  9. allOf:
  10. - $ref: ethernet-controller.yaml#
  11. properties:
  12. compatible:
  13. const: engleder,tsnep
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. minItems: 1
  18. maxItems: 8
  19. interrupt-names:
  20. minItems: 1
  21. items:
  22. - const: mac
  23. - const: txrx-1
  24. - const: txrx-2
  25. - const: txrx-3
  26. - const: txrx-4
  27. - const: txrx-5
  28. - const: txrx-6
  29. - const: txrx-7
  30. description:
  31. The main interrupt for basic MAC features and the first TX/RX queue pair
  32. is named "mac". "txrx-[1-7]" are the interrupts for additional TX/RX
  33. queue pairs.
  34. dma-coherent: true
  35. local-mac-address: true
  36. mac-address: true
  37. nvmem-cells: true
  38. nvmem-cell-names: true
  39. phy-connection-type:
  40. enum:
  41. - mii
  42. - gmii
  43. - rgmii
  44. - rgmii-id
  45. phy-mode: true
  46. phy-handle: true
  47. mdio:
  48. type: object
  49. $ref: mdio.yaml#
  50. unevaluatedProperties: false
  51. description: optional node for embedded MDIO controller
  52. required:
  53. - compatible
  54. - reg
  55. - interrupts
  56. additionalProperties: false
  57. examples:
  58. - |
  59. axi {
  60. #address-cells = <2>;
  61. #size-cells = <2>;
  62. tsnep0: ethernet@a0000000 {
  63. compatible = "engleder,tsnep";
  64. reg = <0x0 0xa0000000 0x0 0x10000>;
  65. interrupts = <0 89 1>;
  66. interrupt-parent = <&gic>;
  67. local-mac-address = [00 00 00 00 00 00];
  68. phy-mode = "rgmii";
  69. phy-handle = <&phy0>;
  70. mdio {
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. suppress-preamble;
  74. phy0: ethernet-phy@1 {
  75. reg = <1>;
  76. rxc-skew-ps = <1080>;
  77. };
  78. };
  79. };
  80. tsnep1: ethernet@a0010000 {
  81. compatible = "engleder,tsnep";
  82. reg = <0x0 0xa0010000 0x0 0x10000>;
  83. interrupts = <0 93 1>, <0 94 1>, <0 95 1>, <0 96 1>;
  84. interrupt-names = "mac", "txrx-1", "txrx-2", "txrx-3";
  85. interrupt-parent = <&gic>;
  86. local-mac-address = [00 00 00 00 00 00];
  87. phy-mode = "rgmii";
  88. phy-handle = <&phy1>;
  89. mdio {
  90. #address-cells = <1>;
  91. #size-cells = <0>;
  92. suppress-preamble;
  93. phy1: ethernet-phy@1 {
  94. reg = <1>;
  95. rxc-skew-ps = <1080>;
  96. };
  97. };
  98. };
  99. };