Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Created October 20, 2015 22:18
Show Gist options
  • Select an option

  • Save RobertCNelson/177209b7778e359d7977 to your computer and use it in GitHub Desktop.

Select an option

Save RobertCNelson/177209b7778e359d7977 to your computer and use it in GitHub Desktop.
todo: 20151020
<zmatt> rcn-ee: btw, could you maybe include the modprobe rule and udev rule (or variation) for uio in your rootfs? it shouldn't affect any non-uio users, but it would allow using uio with nothing more than an overlay
<zmatt> http://pastebin.com/GrHwgYiR <-- contains the two files and a DT fragment example
<rcn-ee> zmatt, looks cool, i'll add it.. do you want to fork beagle/bb.org-overlays and push a bbb-adc-uio.dts option?
<zmatt> well the adc is just an example, you can use almost peripheral using uio
<rcn-ee> true, many of those are just examples. ;)
<zmatt> you can also use it to create interrupts to userspace simpler than the sysfs mechanism
<zmatt> e.g. http://pastebin.com/Yxb7Q8CY
<zmatt> (the reg declaration is simply because I also wanted access to that address range for the example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment