Skip to content

bone-gpio-sysfs is a GPIO sysfs driver to handle GPIOs of the beagle bone black am335x hardware through Sysfs interface.

License

Notifications You must be signed in to change notification settings

harishcpu/bone-gpio-sysfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bone-gpio-sysfs

bone-gpio-sysfs is a GPIO sysfs driver to handle GPIOs of the beagle bone black AM335x hardware through Sysfs interface.

The driver should support the below functionality

  1. The driver should create a class "bone_gpios" under /sys/class (class_create)
  2. For every detected GPIO in the device tree, the driver should create a device under /sys/class/bone_gpios (device_create)
  3. The driver should also create 3 sysfs files(attributes) for gpio device
       Attributes:
       1. direction: used to configure gpio direction
            possible values: 'in' and 'out'
            mode: read/write
       2. value: used to enquire the state of the gpio or to write a new value to the gpio
          possible values: 0 and 1 (read/write)
       3. label: used to enquire label of the gpio (read only)
  4. Implement show and store methods for the attributes

About

bone-gpio-sysfs is a GPIO sysfs driver to handle GPIOs of the beagle bone black am335x hardware through Sysfs interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published