072-v5.12-0001-dt-bindings-net-document-BCM4908-Ethernet-controller.patch 1.7 KB

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