wifi: mt76: mt7921e: add LED control support
authorHao Zhang <hao.zhang@mediatek.com>
Thu, 11 Apr 2024 05:41:35 +0000 (13:41 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 2 May 2024 10:47:04 +0000 (12:47 +0200)
commit06777c8fdda53687a69eb5a782c443d6e2da1dcc
treeb40ce3b41ceffa20e7aa3784316459cd77a6c8ea
parent2706c5c7c9012074ce406b4783b54b3c6b309ad7
wifi: mt76: mt7921e: add LED control support

Introduce wifi LED switch control, add flow to Control a wifi
gpio pin based on the status of WIFI radio, if the pin is connected
to an LED, the LED will indicate the status of the WiFi radio.

Signed-off-by: Hao Zhang <hao.zhang@mediatek.com>
Co-developed-by: Quan Zhou <quan.zhou@mediatek.com>
Signed-off-by: Quan Zhou <quan.zhou@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
drivers/net/wireless/mediatek/mt76/mt7921/main.c
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h
drivers/net/wireless/mediatek/mt76/mt7921/pci.c