i wrote a patch for ath10k now which implements a gpio chip and led
subsystem for the ath10k driver.
all common ath10k chipsets are supported. so 99xx, 9984, 988x, ipq4019
etc. will work with the correct led pin assignment.
i will publish it here after i cleaned it up
sample:
Hi! You may find the following script I run on my ath10k board useful.
#!/bin/sh
DEVNAME=$1; shift
DEVPATH=/sys/class/net/${DEVNAME}/device
if [ ! -r ${DEVPATH}/vendor -o ! -r ${DEVPATH}/device ]; then
echo "Bad device name? No /vendor or /device sys file in ${DEVPATH}"
exit 1
fi
> Thanks to some hero's sleuthing around a GPL source dump
> (https://forum.openwrt.org/viewtopic.php?pid=336237#p336237) and a
> later suggestion to try flipping bits from userspace (using
> https://github.com/billfarrow/pcimem), I can report that, at least for
> the two QCA9980s in my possession