pse-controller.yaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/pse-pd/pse-controller.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Power Sourcing Equipment (PSE).
  7. description: Binding for the Power Sourcing Equipment (PSE) as defined in the
  8. IEEE 802.3 specification. It is designed for hardware which is delivering
  9. power over twisted pair/ethernet cable. The ethernet-pse nodes should be
  10. used to describe PSE controller and referenced by the ethernet-phy node.
  11. maintainers:
  12. - Oleksij Rempel <o.rempel@pengutronix.de>
  13. - Kory Maincent <kory.maincent@bootlin.com>
  14. properties:
  15. $nodename:
  16. pattern: "^ethernet-pse(@.*|-([0-9]|[1-9][0-9]+))?$"
  17. "#pse-cells":
  18. description:
  19. Used to uniquely identify a PSE instance within an IC. Will be
  20. 0 on PSE nodes with only a single output and at least 1 on nodes
  21. controlling several outputs which are not described in the pse-pis
  22. subnode. This property is deprecated, please use pse-pis instead.
  23. enum: [0, 1]
  24. pse-pis:
  25. type: object
  26. description:
  27. Overview of the PSE PIs provided by the controller.
  28. properties:
  29. "#address-cells":
  30. const: 1
  31. "#size-cells":
  32. const: 0
  33. required:
  34. - "#address-cells"
  35. - "#size-cells"
  36. patternProperties:
  37. "^pse-pi@[0-9a-f]+$":
  38. type: object
  39. description:
  40. PSE PI for power delivery via pairsets, compliant with IEEE
  41. 802.3-2022, Section 145.2.4. Each pairset comprises a positive and
  42. a negative VPSE pair, adhering to the pinout configurations
  43. detailed in the standard.
  44. See Documentation/networking/pse-pd/pse-pi.rst for details.
  45. properties:
  46. reg:
  47. description:
  48. Address describing the PSE PI index.
  49. maxItems: 1
  50. "#pse-cells":
  51. const: 0
  52. pairset-names:
  53. $ref: /schemas/types.yaml#/definitions/string-array
  54. description:
  55. Names of the pairsets as per IEEE 802.3-2022, Section 145.2.4.
  56. Each name should correspond to a phandle in the 'pairset'
  57. property pointing to the power supply for that pairset.
  58. minItems: 1
  59. maxItems: 2
  60. items:
  61. enum:
  62. - alternative-a
  63. - alternative-b
  64. pairsets:
  65. $ref: /schemas/types.yaml#/definitions/phandle-array
  66. description:
  67. List of phandles, each pointing to the power supply for the
  68. corresponding pairset named in 'pairset-names'. This property
  69. aligns with IEEE 802.3-2022, Section 33.2.3 and 145.2.4.
  70. PSE Pinout Alternatives (as per IEEE 802.3-2022 Table 145-3)
  71. |-----------|---------------|---------------|---------------|---------------|
  72. | Conductor | Alternative A | Alternative A | Alternative B | Alternative B |
  73. | | (MDI-X) | (MDI) | (X) | (S) |
  74. |-----------|---------------|---------------|---------------|---------------|
  75. | 1 | Negative VPSE | Positive VPSE | - | - |
  76. | 2 | Negative VPSE | Positive VPSE | - | - |
  77. | 3 | Positive VPSE | Negative VPSE | - | - |
  78. | 4 | - | - | Negative VPSE | Positive VPSE |
  79. | 5 | - | - | Negative VPSE | Positive VPSE |
  80. | 6 | Positive VPSE | Negative VPSE | - | - |
  81. | 7 | - | - | Positive VPSE | Negative VPSE |
  82. | 8 | - | - | Positive VPSE | Negative VPSE |
  83. minItems: 1
  84. maxItems: 2
  85. polarity-supported:
  86. $ref: /schemas/types.yaml#/definitions/string-array
  87. description:
  88. Polarity configuration supported by the PSE PI pairsets.
  89. minItems: 1
  90. maxItems: 4
  91. items:
  92. enum:
  93. - MDI-X
  94. - MDI
  95. - X
  96. - S
  97. vpwr-supply:
  98. description: Regulator power supply for the PSE PI.
  99. required:
  100. - reg
  101. - "#pse-cells"
  102. oneOf:
  103. - required:
  104. - "#pse-cells"
  105. - required:
  106. - pse-pis
  107. additionalProperties: true
  108. ...