ti,dp83869.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
  2. # Copyright (C) 2019 Texas Instruments Incorporated
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/net/ti,dp83869.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: TI DP83869 ethernet PHY
  8. allOf:
  9. - $ref: ethernet-phy.yaml#
  10. maintainers:
  11. - Andrew Davis <afd@ti.com>
  12. description: |
  13. The DP83869HM device is a robust, fully-featured Gigabit (PHY) transceiver
  14. with integrated PMD sublayers that supports 10BASE-Te, 100BASE-TX and
  15. 1000BASE-T Ethernet protocols. The DP83869 also supports 1000BASE-X and
  16. 100BASE-FX Fiber protocols.
  17. This device interfaces to the MAC layer through Reduced GMII (RGMII) and
  18. SGMII The DP83869HM supports Media Conversion in Managed mode. In this mode,
  19. the DP83869HM can run 1000BASE-X-to-1000BASE-T and 100BASE-FX-to-100BASE-TX
  20. conversions. The DP83869HM can also support Bridge Conversion from RGMII to
  21. SGMII and SGMII to RGMII.
  22. Specifications about the Ethernet PHY can be found at:
  23. http://www.ti.com/lit/ds/symlink/dp83869hm.pdf
  24. properties:
  25. reg:
  26. maxItems: 1
  27. ti,min-output-impedance:
  28. type: boolean
  29. description: |
  30. MAC Interface Impedance control to set the programmable output impedance
  31. to a minimum value (35 ohms).
  32. ti,max-output-impedance:
  33. type: boolean
  34. description: |
  35. MAC Interface Impedance control to set the programmable output impedance
  36. to a maximum value (70 ohms).
  37. tx-fifo-depth:
  38. $ref: /schemas/types.yaml#/definitions/uint32
  39. description: |
  40. Transmitt FIFO depth see dt-bindings/net/ti-dp83869.h for values
  41. rx-fifo-depth:
  42. $ref: /schemas/types.yaml#/definitions/uint32
  43. description: |
  44. Receive FIFO depth see dt-bindings/net/ti-dp83869.h for values
  45. ti,clk-output-sel:
  46. $ref: /schemas/types.yaml#/definitions/uint32
  47. description: |
  48. Muxing option for CLK_OUT pin see dt-bindings/net/ti-dp83869.h for values.
  49. ti,op-mode:
  50. $ref: /schemas/types.yaml#/definitions/uint32
  51. description: |
  52. Operational mode for the PHY. If this is not set then the operational
  53. mode is set by the straps. see dt-bindings/net/ti-dp83869.h for values
  54. rx-internal-delay-ps:
  55. description: Delay is in pico seconds
  56. enum: [ 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000,
  57. 3250, 3500, 3750, 4000 ]
  58. default: 2000
  59. tx-internal-delay-ps:
  60. description: Delay is in pico seconds
  61. enum: [ 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000,
  62. 3250, 3500, 3750, 4000 ]
  63. default: 2000
  64. required:
  65. - reg
  66. unevaluatedProperties: false
  67. examples:
  68. - |
  69. #include <dt-bindings/net/ti-dp83869.h>
  70. mdio0 {
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. ethphy0: ethernet-phy@0 {
  74. reg = <0>;
  75. tx-fifo-depth = <DP83869_PHYCR_FIFO_DEPTH_4_B_NIB>;
  76. rx-fifo-depth = <DP83869_PHYCR_FIFO_DEPTH_4_B_NIB>;
  77. ti,op-mode = <DP83869_RGMII_COPPER_ETHERNET>;
  78. ti,max-output-impedance;
  79. ti,clk-output-sel = <DP83869_CLK_O_SEL_CHN_A_RCLK>;
  80. rx-internal-delay-ps = <2000>;
  81. tx-internal-delay-ps = <2000>;
  82. };
  83. };