You can get that info from the AM335x TRM I beleive but what I do to get
this information is to do something such as this:

root@wgd:~/# ls /sys/devices/platform/ocp/*.gpio/gpio/
/sys/devices/platform/ocp/*44e07000*.gpio/gpio/:
gpio2  gpio22  gpio23  gpio26  gpio3  gpiochip0

/sys/devices/platform/ocp/*4804c000*.gpio/gpio/:
gpio44  gpio45  gpio46  gpio47  gpio48  gpio49  gpio50  gpio51  gpio60
gpiochip32

/sys/devices/platform/ocp/*481ac000*.gpio/gpio/:
gpio86  gpio87  gpio88  gpiochip64

/sys/devices/platform/ocp/*481ae000*.gpio/gpio/:
gpio110  gpio111  gpio112  gpio115  gpio117  gpiochip96

gpiochip0 being bank 0 gpiochip96 being bank 3. The added benefit to doing
this the way I'm showing above. Is that if you're configuring your pins via
an overlay, This will tell you which pins are a part of which GPIO bank(at
a glance )

On Fri, May 26, 2017 at 9:16 AM, jmelson <[email protected]> wrote:

> Hello,  I have a TCP server I wrote using the old Beagle Board that
> controlled a device in an area that could not be occupied when a particle
> accelerator was running.  As the Beagle Board is no longer available, I'm
> now porting the server to the Bone.
> I used mmap to create access to the GPIO registers.  The new docs are
> different, and I'm trying to check that I understand them.
> So, if I want to set bits in GPIO 1, would I add 0x4804c000 (gpio1 offset)
> and 0x194 (setdataout) to create the address of the set data register?
>
> For mmap, you'd open a region at 4804c000, and then use an index of 194/4
> for word access or 194/2 for halfword access.
>
> Is this right?
>
> (The original version set up the port mapping with pinconf, now I can use
> devicetree.)
>
> Thanks very much,
>
> Jon
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/5cd26a07-41fd-44c6-8938-fc95bfb9a038%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/5cd26a07-41fd-44c6-8938-fc95bfb9a038%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORr6DxP-n1mY3FEdjWYhp2n6fk1zV5ZGCt4bnGEyF-j3%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to