ti,dp83822.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
  2. # Copyright (C) 2020 Texas Instruments Incorporated
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/net/ti,dp83822.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: TI DP83822 ethernet PHY
  8. maintainers:
  9. - Andrew Davis <afd@ti.com>
  10. description: |
  11. The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It
  12. provides all of the physical layer functions needed to transmit and receive
  13. data over standard, twisted-pair cables or to connect to an external,
  14. fiber-optic transceiver. Additionally, the DP83822 provides flexibility to
  15. connect to a MAC through a standard MII, RMII, or RGMII interface
  16. Specifications about the Ethernet PHY can be found at:
  17. http://www.ti.com/lit/ds/symlink/dp83822i.pdf
  18. allOf:
  19. - $ref: ethernet-phy.yaml#
  20. properties:
  21. reg:
  22. maxItems: 1
  23. ti,link-loss-low:
  24. type: boolean
  25. description: |
  26. DP83822 PHY in Fiber mode only.
  27. Sets the DP83822 to detect a link drop condition when the signal goes
  28. high. If not set then link drop will occur when the signal goes low.
  29. This property is only applicable if the fiber mode support is strapped
  30. to on.
  31. ti,fiber-mode:
  32. type: boolean
  33. description: |
  34. DP83822 PHY only.
  35. If present the DP83822 PHY is configured to operate in fiber mode
  36. Fiber mode support can also be strapped. If the strap pin is not set
  37. correctly or not set at all then this boolean can be used to enable it.
  38. If the fiber mode is not strapped then signal detection for the PHY
  39. is disabled.
  40. In fiber mode, auto-negotiation is disabled and the PHY can only work in
  41. 100base-fx (full and half duplex) modes.
  42. This property is deprecated, for details please refer to
  43. Documentation/devicetree/bindings/net/ethernet-connector.yaml
  44. deprecated: true
  45. rx-internal-delay-ps:
  46. description: |
  47. DP83822 PHY only.
  48. Setting this property to a non-zero number sets the RX internal delay
  49. for the PHY. The internal delay for the PHY is fixed to 3.5ns relative
  50. to receive data.
  51. tx-internal-delay-ps:
  52. description: |
  53. DP83822 PHY only.
  54. Setting this property to a non-zero number sets the TX internal delay
  55. for the PHY. The internal delay for the PHY is fixed to 3.5ns relative
  56. to transmit data.
  57. ti,cfg-dac-minus-one-bp:
  58. description: |
  59. DP83826 PHY only.
  60. Sets the voltage ratio (with respect to the nominal value)
  61. of the logical level -1 for the MLT-3 encoded TX data.
  62. enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000,
  63. 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000]
  64. default: 10000
  65. ti,cfg-dac-plus-one-bp:
  66. description: |
  67. DP83826 PHY only.
  68. Sets the voltage ratio (with respect to the nominal value)
  69. of the logical level +1 for the MLT-3 encoded TX data.
  70. enum: [5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000,
  71. 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000]
  72. default: 10000
  73. ti,rmii-mode:
  74. description: |
  75. If present, select the RMII operation mode. Two modes are
  76. available:
  77. - RMII master, where the PHY outputs a 50MHz reference clock which can
  78. be connected to the MAC.
  79. - RMII slave, where the PHY expects a 50MHz reference clock input
  80. shared with the MAC.
  81. The RMII operation mode can also be configured by its straps.
  82. If the strap pin is not set correctly or not set at all, then this can be
  83. used to configure it.
  84. $ref: /schemas/types.yaml#/definitions/string
  85. enum:
  86. - master
  87. - slave
  88. ti,gpio2-clk-out:
  89. description: |
  90. DP83822 PHY only.
  91. The GPIO2 pin on the DP83822 can be configured as clock output. When
  92. omitted, the PHY's default will be left as is.
  93. - 'mac-if': In MII mode the clock frequency is 25-MHz, in RMII Mode the
  94. clock frequency is 50-MHz and in RGMII Mode the clock frequency is
  95. 25-MHz.
  96. - 'xi': XI clock(pass-through clock from XI pin).
  97. - 'int-ref': Internal reference clock 25-MHz.
  98. - 'rmii-master-mode-ref': RMII master mode reference clock 50-MHz. RMII
  99. master mode reference clock is identical to MAC IF clock in RMII master
  100. mode.
  101. - 'free-running': Free running clock 125-MHz.
  102. - 'recovered': Recovered clock is a 125-MHz recovered clock from a
  103. connected link partner.
  104. $ref: /schemas/types.yaml#/definitions/string
  105. enum:
  106. - mac-if
  107. - xi
  108. - int-ref
  109. - rmii-master-mode-ref
  110. - free-running
  111. - recovered
  112. mac-termination-ohms:
  113. enum: [43, 44, 46, 48, 50, 53, 55, 58, 61, 65, 69, 73, 78, 84, 91, 99]
  114. required:
  115. - reg
  116. unevaluatedProperties: false
  117. examples:
  118. - |
  119. mdio0 {
  120. #address-cells = <1>;
  121. #size-cells = <0>;
  122. ethphy0: ethernet-phy@0 {
  123. reg = <0>;
  124. rx-internal-delay-ps = <1>;
  125. tx-internal-delay-ps = <1>;
  126. ti,gpio2-clk-out = "xi";
  127. mac-termination-ohms = <43>;
  128. mdi {
  129. connector-0 {
  130. media = "BaseF";
  131. };
  132. };
  133. };
  134. };
  135. ...