[Voyage-linux] LEDs and ledtrig stuff on APU

Jordi Ferrer Plana (spam-protected)
Tue Jun 10 17:31:51 HKT 2014


I've patched an already existing driver for the AMD 50 FCH present in the
APU board for using the GPIO (3 OUTs + 1 IN).
I also have implemented a driver for using the LEDs and the switch
connected to these GPIOs using the leds-gpio interface,
so hardrive, heartbeat, network, ... and other events can be mapped to
these leds.
To make everything work I had to pach the watchdog driver sp5100_tco as
well.

So you could use directly the GPIO interface or the LEDs interface
depending on your needs.
I've been testing all this stuff on the voyage 0.9.2 (amd64) + kernel
3.10.11. It seems to work fine.
I attach the patch that can be applied directly to the
linux-source-3.10.11-voyage and the patch for the config-3.10.11-voyage.

There is no major changes between kernel 3.10.11 and the last 3.15 related
to the GPIO/LEDs interfaces and drivers, so with
very few changes (in some Makefile) the same patch can be modified to be
applied to any kernel from 3.10.11 to 3.15.




On Thu, May 15, 2014 at 4:10 PM, <lutz.niederer at gmx.net> wrote:

> If x64 voyage kernel is the same as x32 version then it was 3.8.13 on
> voyage.  I do not remember the voyage x64 kernel but I have an x32 voyage
> that should have the same kernel version.
> For plain debian jessie it was 3.13.10.
> Both did not run.
>
> *Gesendet:* Donnerstag, 15. Mai 2014 um 11:27 Uhr
>
> *Von:* "Kim-man 'Punky' TSE" <punkytse at punknix.com>
> *An:* lutz.niederer at gmx.net, voyage-linux at voyage.hk
> *Betreff:* Re: Aw: Re: Re: [Voyage-linux] LEDs and ledtrig stuff on APU
> On 5/15/2014 4:43 PM, lutz.niederer at gmx.net wrote:
> > netdev may be the only trigger that does not work. debian 8 omits that
> one (and others) from triggers and debian 7
> > does not include it. Am I right, that netdev is non-standard? And
> changing Alix led driver to APU is ridiculous easy
> > (you just need to know the new ports). This is why I believe it has
> something to do with netdev trigger. Or the
> > combination of netdev trigger, APU led driver and kernel. Do you have an
> APU to test?
> I have APU to test with APU Led driver and netdev LED triggers, it hangs
> too.
>
> Did you try on 3.10 or 3.8 kernel?
>
> --
> Regards,
> Kim-man "Punky" Tse
>
> * Open Source Embedded Solutions and Systems
> - Voyage Linux (http://linux.voyage.hk)
> - Voyage MPD (http://linux.voyage.hk/voyage-mpd)
> - Voyage MuBox (http://mubox.voyage.hk)
> * Voyage Store (http://store.voyage.hk)
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20140610/bf768703/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-3.10.11-iGetech.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20140610/bf768703/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-source-3.10.11-iGetech.patch
Type: text/x-patch
Size: 15583 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20140610/bf768703/attachment-0001.bin>


More information about the Voyage-linux mailing list