Skip to contentSkip to conversation

dt-bindings: net: ethernet-controller: Allow "ethernet-N" node names

PATCH Applied Rob Herring (Arm) 3 participants 3 messages Oct 9 – Oct 15

Subsystems (3)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: net: ethernet-controller: Allow "ethernet-N" node names

The HiSilicon hisilicon,hns-nic-v2 binding uses "ethernet-N" node names as there is no "reg" property and multiple instances. Add support for this pattern which is a common pattern on other node names.

---
 Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/net/ethernet-controller.yaml +1 -1
index 1bafd687dcb1..30b2a335116e 100644
@@ -11,7 +11,7 @@ maintainers:
 
 properties:
   $nodename:
-    pattern: "^ethernet(@.*)?$"
+    pattern: "^ethernet(@.+|-[0-9]+)?$"
 
   label:
     description: Human readable label on a port of a box.
Signature · 1 line
2.53.0
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rob Herring (Arm)

The HiSilicon hisilicon,hns-nic-v2 binding uses "ethernet-N" node names as there is no "reg" property and multiple instances. Add support for this pattern which is a common pattern on other node names.

Quoted 20 lines
---
 Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/net/ethernet-controller.yaml +1 -1
index 1bafd687dcb1..30b2a335116e 100644
@@ -11,7 +11,7 @@ maintainers:
 
 properties:
   $nodename:
-    pattern: "^ethernet(@.*)?$"
+    pattern: "^ethernet(@.+|-[0-9]+)?$"
 
   label:
     description: Human readable label on a port of a box.
Signature · 1 line
2.53.0
#2 lore raw
In reply to Rob Herring (Arm)
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Fri, 9 Oct 2026 10:54:45 -0500 you wrote:

The HiSilicon hisilicon,hns-nic-v2 binding uses "ethernet-N" node names as there is no "reg" property and multiple instances. Add support for this pattern which is a common pattern on other node names.

---
 Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] dt-bindings: net: ethernet-controller: Allow "ethernet-N" node names

    https://git.kernel.org/netdev/net-next/c/d8839381c196

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html