Thread (8 messages) flat view 8 messages, 2 authors, 2d ago
WARM2d

[PATCH net-next v5 2/3] dt-bindings: net: wiznet,w5100: add link status interrupt

From: Arthur Crepin Leblond <hidden>
Date: 2026-08-13 08:58:36
Also in: linux-devicetree, lkml
Subsystem: networking drivers, open firmware and flattened device tree bindings, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

Add an optional link status interrupt which can be connected to the
LINKLED pin on the device to detect link status changes.

Signed-off-by: Arthur Crepin Leblond <redacted>
---
 .../devicetree/bindings/net/wiznet,w5100.yaml      | 34 ++++++++++++++++++----
 1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/wiznet,w5100.yaml b/Documentation/devicetree/bindings/net/wiznet,w5100.yaml
index 217f301db182..81f4382eb96c 100644
--- a/Documentation/devicetree/bindings/net/wiznet,w5100.yaml
+++ b/Documentation/devicetree/bindings/net/wiznet,w5100.yaml
@@ -15,6 +15,33 @@ description: |
 allOf:
   - $ref: /schemas/net/ethernet-controller.yaml#
   - $ref: /schemas/spi/spi-peripheral-props.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - wiznet,w5500
+    then:
+      properties:
+        interrupts:
+          minItems: 1
+          items:
+            - description: Main interrupt (INT pin on the device).
+            - description:
+                Optional interrupt for link status changes (LINKLED pin on
+                w5500).
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - wiznet,w5100
+              - wiznet,w5200
+    then:
+      properties:
+        interrupts:
+          items:
+            - description: Main interrupt (INT pin on the device).
 
 properties:
   compatible:
@@ -23,10 +50,6 @@ properties:
       - wiznet,w5200
       - wiznet,w5500
 
-  interrupts:
-    items:
-      - description: Main interrupt (INT pin on the device).
-
   reg:
     maxItems: 1
 
@@ -59,7 +82,8 @@ examples:
             pinctrl-names = "default";
             pinctrl-0 = <&eth1_pins>;
             interrupt-parent = <&gpio>;
-            interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
+            interrupts = <25 IRQ_TYPE_EDGE_FALLING>,
+                         <24 IRQ_TYPE_EDGE_BOTH>;
             spi-max-frequency = <30000000>;
             local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
         };
-- 
2.55.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help