microchip,lan8650.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/microchip,lan8650.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Microchip LAN8650/1 10BASE-T1S MACPHY Ethernet Controllers
  7. maintainers:
  8. - Parthiban Veerasooran <parthiban.veerasooran@microchip.com>
  9. description:
  10. The LAN8650/1 combines a Media Access Controller (MAC) and an Ethernet
  11. PHY to enable 10BASE‑T1S networks. The Ethernet Media Access Controller
  12. (MAC) module implements a 10 Mbps half duplex Ethernet MAC, compatible
  13. with the IEEE 802.3 standard and a 10BASE-T1S physical layer transceiver
  14. integrated into the LAN8650/1. The communication between the Host and
  15. the MAC-PHY is specified in the OPEN Alliance 10BASE-T1x MACPHY Serial
  16. Interface (TC6).
  17. allOf:
  18. - $ref: /schemas/net/ethernet-controller.yaml#
  19. - $ref: /schemas/spi/spi-peripheral-props.yaml#
  20. properties:
  21. compatible:
  22. oneOf:
  23. - const: microchip,lan8650
  24. - items:
  25. - const: microchip,lan8651
  26. - const: microchip,lan8650
  27. reg:
  28. maxItems: 1
  29. interrupts:
  30. description:
  31. Interrupt from MAC-PHY asserted in the event of Receive Chunks
  32. Available, Transmit Chunk Credits Available and Extended Status
  33. Event.
  34. maxItems: 1
  35. spi-max-frequency:
  36. minimum: 15000000
  37. maximum: 25000000
  38. required:
  39. - compatible
  40. - reg
  41. - interrupts
  42. - spi-max-frequency
  43. unevaluatedProperties: false
  44. examples:
  45. - |
  46. #include <dt-bindings/interrupt-controller/irq.h>
  47. #include <dt-bindings/gpio/gpio.h>
  48. spi {
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. ethernet@0 {
  52. compatible = "microchip,lan8651", "microchip,lan8650";
  53. reg = <0>;
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&eth0_pins>;
  56. interrupt-parent = <&gpio>;
  57. interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
  58. local-mac-address = [04 05 06 01 02 03];
  59. spi-max-frequency = <15000000>;
  60. };
  61. };