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
- The driver should create a class "bone_gpios" under /sys/class (class_create)
- For every detected GPIO in the device tree, the driver should create a device under /sys/class/bone_gpios (device_create)
- 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) - Implement show and store methods for the attributes