Here[1] are some notes I wrote for my students for accessing GPIO via /dev/mem on the BB Black. I'm not sure how much carries over to the AI.
--Mark [1] https://elinux.org/EBC_Exercise_11b_gpio_via_mmap On Friday, March 27, 2020 at 1:13:57 PM UTC-4, Dennis Bieber wrote: > > On Fri, 27 Mar 2020 05:37:02 -0700 (PDT), in > gmane.comp.hardware.beagleboard.user John Allwine > <john-1it3R60xZilYWFyfZ/[email protected]> wrote: > > > >What is or how do I find the control register address for the AM5x? The > system > >manual > >< > https://github.com/beagleboard/beaglebone-ai/wiki/System-Reference-Manual#connector-p8> > > seems > >to list the offsets from the control register, but I'm unsure what that > is. > > > > Probably in the TI technical reference manual SPRUHZ6L ( > > https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwirrfuAk7voAhUOQK0KHbWUBAsQFjAAegQIBBAB&url=http%3A%2F%2Fwww.ti.com%2Flit%2Fug%2Fspruhz6l%2Fspruhz6l.pdf&usg=AOvVaw2uBbdusraPEVEasMDIT-r7 > > ). Section 27.6 seems a candidate... > > """ > 27.6.1 General-Purpose Interface Instance Summary > Table 27-16 summarizes the general-purpose interface instance. > Table 27-16. Instance Summary > Module Name Module Base Address Size > GPIO7 0x4805 1000 408 Bytes > GPIO8 0x4805 3000 408 Bytes > GPIO2 0x4805 5000 408 Bytes > GPIO3 0x4805 7000 408 Bytes > GPIO4 0x4805 9000 408 Bytes > GPIO5 0x4805 B000 408 Bytes > GPIO6 0x4805 D000 408 Bytes > GPIO1 0x4AE1 0000 408 Bytes > """ > > > -- > Dennis L Bieber > > -- 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/0550e92c-41b8-4c60-8670-e563c6fac9e1%40googlegroups.com.
