Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: net: Define interrupt constraints for DWMAC vendor bindings

The `snps,dwmac.yaml` binding currently sets `maxItems: 3` for the
`interrupts` and `interrupt-names` properties, but vendor bindings
selecting `snps,dwmac.yaml` do not impose these limits.

Define constraints for `interrupts` and `interrupt-names` properties in
various DWMAC vendor bindings to ensure proper validation and consistency.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Link: https://patch.msgid.link/20250309003301.1152228-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Lad Prabhakar and committed by
Paolo Abeni
5a1dddd2 d28fcb72

+52
+6
Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
··· 152 152 The second range is is for the Amlogic specific configuration 153 153 (for example the PRG_ETHERNET register range on Meson8b and newer) 154 154 155 + interrupts: 156 + maxItems: 1 157 + 158 + interrupt-names: 159 + const: macirq 160 + 155 161 required: 156 162 - compatible 157 163 - reg
+6
Documentation/devicetree/bindings/net/intel,dwmac-plat.yaml
··· 41 41 - const: ptp_ref 42 42 - const: tx_clk 43 43 44 + interrupts: 45 + maxItems: 1 46 + 47 + interrupt-names: 48 + const: macirq 49 + 44 50 required: 45 51 - compatible 46 52 - clocks
+6
Documentation/devicetree/bindings/net/mediatek-dwmac.yaml
··· 64 64 - const: rmii_internal 65 65 - const: mac_cg 66 66 67 + interrupts: 68 + maxItems: 1 69 + 70 + interrupt-names: 71 + const: macirq 72 + 67 73 power-domains: 68 74 maxItems: 1 69 75
+8
Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
··· 56 56 - tx 57 57 - mem 58 58 59 + interrupts: 60 + maxItems: 2 61 + 62 + interrupt-names: 63 + items: 64 + - const: macirq 65 + - const: eth_wake_irq 66 + 59 67 intf_mode: 60 68 $ref: /schemas/types.yaml#/definitions/phandle-array 61 69 items:
+10
Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
··· 55 55 - rockchip,rv1126-gmac 56 56 - const: snps,dwmac-4.20a 57 57 58 + interrupts: 59 + minItems: 1 60 + maxItems: 2 61 + 62 + interrupt-names: 63 + minItems: 1 64 + items: 65 + - const: macirq 66 + - const: eth_wake_irq 67 + 58 68 clocks: 59 69 minItems: 5 60 70 maxItems: 8
+10
Documentation/devicetree/bindings/net/stm32-dwmac.yaml
··· 54 54 items: 55 55 - const: stmmaceth 56 56 57 + interrupts: 58 + minItems: 1 59 + maxItems: 2 60 + 61 + interrupt-names: 62 + minItems: 1 63 + items: 64 + - const: macirq 65 + - const: eth_wake_irq 66 + 57 67 clocks: 58 68 minItems: 3 59 69 items:
+6
Documentation/devicetree/bindings/net/toshiba,visconti-dwmac.yaml
··· 42 42 - const: stmmaceth 43 43 - const: phy_ref_clk 44 44 45 + interrupts: 46 + maxItems: 1 47 + 48 + interrupt-names: 49 + const: macirq 50 + 45 51 required: 46 52 - compatible 47 53 - reg