New ways for GPIO

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey all,

As of Linux Kernel version 2.6.27 which was released this morning, there's a new way to drive gpio. This is called gpio-sysfs and it's advantage is that it works on any gpio on any chip on any platform. It looks the same whether you're accessing PB5 on an AVR32 or whether you're accessing a pin on an SPI I/O expander.

I've put documentation on the wiki, here: https://www.avrfreaks.net/wiki/in...

While I was at it, I've moved all the HowTos which weren't specific to the NGW100 out of the NGW100 page and on to the main page. Next to them I'm starting to assemble a simple, clear and concise list of peripherals and how to drive them under Linux. If you have experience, especially with I2C/TWI, Framebuffers or the ISI, please add to the pages there! Hopefully it'll be easier for people to find what they need.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wonderful squidgit, is this your baby? I have been waiting for this.

When can we expect a Buildroot version ;-)

Garry

Regards,
Garry Hayne

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gpio-sysfs was written by David Brownell as was gpiolib, the in-kernel framework which gpio-sysfs builds on top of. I wrote the pin change notification (which didn't hit .27, hoping for .28) and spent a bit of time helping DB design the thing in the first place.

Donno when Buildroot will include a .27 kernel, prolly when a .27.atmel kernel is released. Maybe a week or 2..?

-S.