ethernet-connector.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/ethernet-connector.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Generic Ethernet Connector
  7. maintainers:
  8. - Maxime Chevallier <maxime.chevallier@bootlin.com>
  9. description:
  10. An Ethernet Connector represents the output of a network component such as
  11. a PHY, an Ethernet controller with no PHY, or an SFP module.
  12. properties:
  13. pairs:
  14. description:
  15. Defines the number of BaseT pairs that are used on the connector.
  16. $ref: /schemas/types.yaml#/definitions/uint32
  17. enum: [1, 2, 4]
  18. media:
  19. description:
  20. The mediums, as defined in 802.3, that can be used on the port.
  21. enum:
  22. - BaseT
  23. - BaseK
  24. - BaseS
  25. - BaseC
  26. - BaseL
  27. - BaseD
  28. - BaseE
  29. - BaseF
  30. - BaseV
  31. - BaseMLD
  32. required:
  33. - media
  34. allOf:
  35. - if:
  36. properties:
  37. media:
  38. const: BaseT
  39. then:
  40. required:
  41. - pairs
  42. else:
  43. properties:
  44. pairs: false
  45. additionalProperties: true
  46. ...