170-0001-dt-bindings-net-document-BCM4908-Ethernet-controller.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  2. Date: Fri, 5 Feb 2021 21:57:41 +0100
  3. Subject: [PATCH 1/2] dt-bindings: net: document BCM4908 Ethernet controller
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. BCM4908 is a family of SoCs with integrated Ethernet controller.
  8. Signed-off-by: Rafał Miłecki <[email protected]>
  9. ---
  10. .../bindings/net/brcm,bcm4908-enet.yaml | 43 +++++++++++++++++++
  11. 1 file changed, 43 insertions(+)
  12. create mode 100644 Documentation/devicetree/bindings/net/brcm,bcm4908-enet.yaml
  13. --- /dev/null
  14. +++ b/Documentation/devicetree/bindings/net/brcm,bcm4908-enet.yaml
  15. @@ -0,0 +1,43 @@
  16. +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  17. +%YAML 1.2
  18. +---
  19. +$id: http://devicetree.org/schemas/net/brcm,bcm4908-enet.yaml#
  20. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  21. +
  22. +title: Broadcom BCM4908 Ethernet controller
  23. +
  24. +description: Broadcom's Ethernet controller integrated into BCM4908 family SoCs
  25. +
  26. +maintainers:
  27. + - Rafał Miłecki <[email protected]>
  28. +
  29. +allOf:
  30. + - $ref: ethernet-controller.yaml#
  31. +
  32. +properties:
  33. + compatible:
  34. + const: brcm,bcm4908-enet
  35. +
  36. + reg:
  37. + maxItems: 1
  38. +
  39. + interrupts:
  40. + description: RX interrupt
  41. +
  42. +required:
  43. + - reg
  44. + - interrupts
  45. +
  46. +additionalProperties: false
  47. +
  48. +examples:
  49. + - |
  50. + #include <dt-bindings/interrupt-controller/irq.h>
  51. + #include <dt-bindings/interrupt-controller/arm-gic.h>
  52. +
  53. + ethernet@80002000 {
  54. + compatible = "brcm,bcm4908-enet";
  55. + reg = <0x80002000 0x1000>;
  56. +
  57. + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
  58. + };