Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH wireless-next 0/2] wifi: mt76: mt7925: LED support for USB adapters
@ 2026-11-03 13:35 Josef Schlehofer
  2026-11-03 13:35 ` [PATCH wireless-next 1/2] wifi: mt76: allow LEDs with only brightness_set_blocking Josef Schlehofer
  2026-11-03 13:35 ` [PATCH wireless-next 2/2] wifi: mt76: mt7925: add LED support for USB adapters Josef Schlehofer
  0 siblings, 2 replies; 3+ messages in thread
From: Josef Schlehofer @ 2026-11-03 13:35 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi, Ryder Lee, Shayne Chen,
	Sean Wang
  Cc: Matthias Brugger, AngeloGioacchino Del Regno, Ming Yen Hsieh,
	JB Tsai, Allan Wang, Quan Zhou, linux-wireless, linux-mediatek,
	linux-arm-kernel, linux-kernel

MT7925 USB adapters such as the NETGEAR A9000 have a status LED on
GPIO 8 of the chip. MediaTek's Windows driver asks the firmware to
switch it with UNI command 0x2a, but the firmware in linux-firmware
does not act on that command [1].

This series drives the pin from the host instead. The layout of the
CBTOP GPIO block comes from the coda headers in MediaTek's gen4m driver
for MT6639, which uses the same CBTOP register map as MT7925. The first
patch lets the mt76 core register an LED that only provides
brightness_set_blocking, which a USB driver needs. The second patch
adds the LED to mt7925.

Tested on a Turris Omnia with an A9000 and firmware 20231227 over
several days. The LED follows the throughput trigger and manual
brightness changes, and turns off when the radio goes down.

Sean, JB, is it fine to drive these GPIO registers from the host, or
does the firmware rely on GPIO 8 staying in its default function?

[1] https://lore.kernel.org/linux-wireless/20261012125310.13917-1-pepe.schlehofer@gmail.com/

Josef Schlehofer (2):
  wifi: mt76: allow LEDs with only brightness_set_blocking
  wifi: mt76: mt7925: add LED support for USB adapters

 drivers/net/wireless/mediatek/mt76/mac80211.c | 12 ++++-
 .../net/wireless/mediatek/mt76/mt7925/init.c  | 51 +++++++++++++++++++
 .../net/wireless/mediatek/mt76/mt7925/mcu.c   |  2 +
 .../net/wireless/mediatek/mt76/mt7925/regs.h  |  8 +++
 drivers/net/wireless/mediatek/mt76/mt792x.h   |  2 +
 5 files changed, 73 insertions(+), 2 deletions(-)


base-commit: 991a73f4909f1348ffb4b38765cdb522a775e4c2
-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-03 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 13:35 [PATCH wireless-next 0/2] wifi: mt76: mt7925: LED support for USB adapters Josef Schlehofer
2026-11-03 13:35 ` [PATCH wireless-next 1/2] wifi: mt76: allow LEDs with only brightness_set_blocking Josef Schlehofer
2026-11-03 13:35 ` [PATCH wireless-next 2/2] wifi: mt76: mt7925: add LED support for USB adapters Josef Schlehofer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox