vertexcom-mse102x.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/vertexcom-mse102x.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: The Vertexcom MSE102x (SPI)
  7. maintainers:
  8. - Stefan Wahren <stefan.wahren@chargebyte.com>
  9. description:
  10. Vertexcom's MSE102x are a family of HomePlug GreenPHY chips.
  11. They can be connected either via RGMII, RMII or SPI to a host CPU.
  12. In order to use a MSE102x chip as SPI device, it must be defined as
  13. a child of an SPI master device in the device tree.
  14. More information can be found at
  15. http://www.vertexcom.com/doc/MSE1022%20Product%20Brief.pdf
  16. allOf:
  17. - $ref: ethernet-controller.yaml#
  18. properties:
  19. compatible:
  20. enum:
  21. - vertexcom,mse1021
  22. - vertexcom,mse1022
  23. reg:
  24. maxItems: 1
  25. interrupts:
  26. maxItems: 1
  27. spi-cpha: true
  28. spi-cpol: true
  29. spi-max-frequency:
  30. minimum: 6000000
  31. maximum: 7142857
  32. required:
  33. - compatible
  34. - reg
  35. - interrupts
  36. - spi-cpha
  37. - spi-cpol
  38. - spi-max-frequency
  39. additionalProperties: false
  40. examples:
  41. - |
  42. #include <dt-bindings/interrupt-controller/irq.h>
  43. spi {
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. ethernet@0 {
  47. compatible = "vertexcom,mse1021";
  48. reg = <0>;
  49. interrupt-parent = <&gpio>;
  50. interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
  51. spi-cpha;
  52. spi-cpol;
  53. spi-max-frequency = <7142857>;
  54. };
  55. };