Commit 8c989368 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Jakub Kicinski
Browse files

dt-bindings: net: dwmac: Increase 'maxItems' for 'interrupts' and 'interrupt-names'



Increase the `maxItems` value for the `interrupts` and `interrupt-names`
properties to 11 to support additional per-channel Tx/Rx completion
interrupts on the Renesas RZ/V2H(P) SoC, which features the
`snps,dwmac-5.20` IP.

Refactor the `interrupt-names` property by replacing repeated `enum`
entries with a `oneOf` list. Add support for per-channel receive and
transmit completion interrupts using regex patterns.

Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20250417084015.74154-2-prabhakar.mahadev-lad.rj@bp.renesas.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a7696fb2
Loading
Loading
Loading
Loading
+15 −9
Original line number Diff line number Diff line
@@ -114,19 +114,25 @@ properties:

  interrupts:
    minItems: 1
    maxItems: 11

  interrupt-names:
    minItems: 1
    maxItems: 11
    items:
      oneOf:
        - description: Combined signal for various interrupt events
          const: macirq
        - description: The interrupt to manage the remote wake-up packet detection
          const: eth_wake_irq
        - description: The interrupt that occurs when Rx exits the LPI state
          const: eth_lpi
        - description: The interrupt that occurs when HW safety error triggered

  interrupt-names:
    minItems: 1
    items:
      - const: macirq
      - enum: [eth_wake_irq, eth_lpi, sfty]
      - enum: [eth_wake_irq, eth_lpi, sfty]
      - enum: [eth_wake_irq, eth_lpi, sfty]
          const: sfty
        - description: Per channel receive completion interrupt
          pattern: '^rx-queue-[0-3]$'
        - description: Per channel transmit completion interrupt
          pattern: '^tx-queue-[0-3]$'

  clocks:
    minItems: 1