On Mon, 21 Feb 2011, erik_dykema wrote:
> Hi Joel-
> Thanks for your response! I think you're answering a slightly
> different question than I'm asking, probably because my question was
> screwy.
> To restate my question, whichever numbers we use to refer to the pins,
> how do I address those pins via sysfs? These are the pin numbers (using
> Joel's numbering scheme) that I've been able to successfully address, and use
> to light LEDs:
>
> Top down view of the header showing pin numbers (Joel's numbers):
> ----------------------------------
> 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16
> ----------------------------------
> 1 | 3 | 5 | 7 | 9 | 11 | 13 | 15
> ----------------------------------
>
> Format: /sys/class/gpio/gpio# -> Pin #
> 8:1
> 9:3
> 10:5
> 11: ??
> 12: ??
> 13:11
> 14:13
> 15:15
>
> So, I know that I can address the bottom row of pins using
> /sys/class/gpio/gpio8-15 , except for pins 7 and 9. So how do I address
> pins 7 and 9? One would think, based on the /sys/class/gpio/gpio#
> pattern, that it would be gpio11 and gpio12 ; but those don't work. Any
> suggestions appreciated.
No idea - never used a 2.6 kernel and this particular gpio module.
But I can confirm that those pins are accessable as the correct bits
via the DIO1 address bits, as detailed in the manual. That is, as long as
you haven't hooked up 5 volts logic and blown them!
Jim
----------------------------------------------------------------------------
HomePage: http://www.comp.leeds.ac.uk/jj
TS7200 Page: http://www.comp.leeds.ac.uk/jj/linux/arm-sbc.html
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|