[LEDE-DEV] [PATCH] mt7621: add support for WeVO W2914NS v2

Mathias Kresin dev at kresin.me
Thu Nov 17 00:18:50 PST 2016


17.11.2016 03:11, perillamint:
> Hi, Mathias Kresin.
>
> It seems its Ethernet LEDs are directly hooked into switch chip. It
> flashes without defining them in DTB. I dunno about where WLAN LEDs are
> hooked. I failed to drive them with sysfs gpio driver.

It might be that they are driven directly by the wireless chips. In that 
case I would expect them to just work. But in contrast to the ethernet 
leds you didn't wrote that they work...

>
> I tried LED blinker script in
>
> https://wiki.openwrt.org/doc/hardware/port.gpio
>
> and it only blinked USB LED. So, I added that LED only.
>
> Is there any way to discover how to turn on that two WiFi LEDs?

You are aware that the mtk7621 has three gpio banks (gpio0, gpio1 & 
gpio2), each having 33 gpio pins?

I'm not sure how they are shown in /sys/class/gpio/. In case they are 
shown as individual gpio controllers, the script tests only the gpio 
lines of the first gpio controller:

  cat /sys/class/gpio/gpiochip*/base | head -n1
                                       ^^^^^^^^

Would you please test again with the following script: 
https://gist.github.com/mkresin/061ad551aa5391668ab20eb8c8abf01e

If it works for you, feel free to add/replace the script to the openwrt 
wiki article.

Mathias



More information about the Lede-dev mailing list