smsc,lan9115.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/net/smsc,lan9115.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller
  7. maintainers:
  8. - Shawn Guo <shawnguo@kernel.org>
  9. allOf:
  10. - $ref: ethernet-controller.yaml#
  11. - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml#
  12. properties:
  13. compatible:
  14. oneOf:
  15. - const: smsc,lan9115
  16. - items:
  17. - enum:
  18. - smsc,lan89218
  19. - smsc,lan9117
  20. - smsc,lan9118
  21. - smsc,lan9220
  22. - smsc,lan9221
  23. - const: smsc,lan9115
  24. reg:
  25. maxItems: 1
  26. reg-shift: true
  27. reg-io-width:
  28. enum: [ 2, 4 ]
  29. default: 2
  30. interrupts:
  31. minItems: 1
  32. items:
  33. - description:
  34. LAN interrupt line
  35. - description:
  36. Optional PME (power management event) interrupt that is able to wake
  37. up the host system with a 50ms pulse on network activity
  38. clocks:
  39. maxItems: 1
  40. phy-mode: true
  41. smsc,irq-active-high:
  42. type: boolean
  43. description: Indicates the IRQ polarity is active-high
  44. smsc,irq-push-pull:
  45. type: boolean
  46. description: Indicates the IRQ type is push-pull
  47. smsc,force-internal-phy:
  48. type: boolean
  49. description: Forces SMSC LAN controller to use internal PHY
  50. smsc,force-external-phy:
  51. type: boolean
  52. description: Forces SMSC LAN controller to use external PHY
  53. smsc,save-mac-address:
  54. type: boolean
  55. description:
  56. Indicates that MAC address needs to be saved before resetting the
  57. controller
  58. reset-gpios:
  59. maxItems: 1
  60. description:
  61. A GPIO line connected to the RESET (active low) signal of the device.
  62. On many systems this is wired high so the device goes out of reset at
  63. power-on, but if it is under program control, this optional GPIO can
  64. wake up in response to it.
  65. vdd33a-supply:
  66. description: 3.3V analog power supply
  67. vddvario-supply:
  68. description: IO logic power supply
  69. required:
  70. - compatible
  71. - reg
  72. - interrupts
  73. unevaluatedProperties: false
  74. examples:
  75. - |
  76. #include <dt-bindings/gpio/gpio.h>
  77. ethernet@f4000000 {
  78. compatible = "smsc,lan9220", "smsc,lan9115";
  79. reg = <0xf4000000 0x2000000>;
  80. phy-mode = "mii";
  81. interrupt-parent = <&gpio1>;
  82. interrupts = <31>, <32>;
  83. reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
  84. reg-io-width = <4>;
  85. smsc,irq-push-pull;
  86. };