[PATCH net-next v3 0/3] w5100: restore GPIO-based link detection
From: Arthur Crépin Leblond <hidden>
Date: 2026-08-06 15:00:25
Also in:
linux-devicetree, lkml
Hi, In the previous version of the w5100 driver, the LINKLED pin could be wired to a GPIO to detect the link status changes via an interrupt. This only works on w5500 as it is the only one documenting its LINKLED pin to hold the link status (on w5100 the LINKLED pin is changing with RX/TX activity). This series of patches is bringing back the link status detection on w5500 using the Link Status bit of the PHY Configuration Register. Additionally, the LINKLED pin can also be wired to detect link status changes and read the register in the interrupt handler. Arthur Crépin Leblond Signed-off-by: Arthur Crépin Leblond <redacted> --- Changes in v3: - Change cover letter - Fix DT binding errors - Use the Link Status bit of the PHY Configuration Register - Use the LINKLED gpio binding for change detection only - Link to v2: https://patch.msgid.link/20260804-wiznet-link-gpio-v2-0-3b1d0c870f35@marmottus.net Changes in v2: - Convert device tree binding to YAML - Use devm_request_threaded_irq instead of request_any_context_irq - Use devm_gpiod_get_optional instead of gpiod_get_optional - Call dev_err_probe on gpiod_to_irq failure - Remove link_irq from priv - Use a fixed string for the IRQ name - Remove empty new lines - Link to v1: https://patch.msgid.link/20260804-wiznet-link-gpio-v1-1-b626fd4f7ccb@marmottus.net --- Arthur Crépin Leblond (3): dt-bindings: net: wiznet,w5100: convert to DT schema dt-bindings: net: wiznet,w5100: add link-gpios w5100: detect carrier state using link status bit .../devicetree/bindings/net/wiznet,w5100.yaml | 74 ++++++++++++++++++++++ .../devicetree/bindings/net/wiznet,w5x00.txt | 50 --------------- drivers/net/ethernet/wiznet/w5100.c | 70 ++++++++++++++++++++ 3 files changed, 144 insertions(+), 50 deletions(-)