mikroBUS kernel driver for instantiating mikroElektronika Click Boards from Manifest descriptors, See eLinux/mikrobus for more information.
debian@beaglebone:~/mikrobus$ cat /etc/dogtag
BeagleBoard.org Debian Buster IoT Image 2020-04-06
debian@beaglebone:~/mikrobus$ uname -a
Linux beaglebone 5.7.0-rc5-bone4 #1buster PREEMPT Mon May 11 16:23:42 UTC 2020 armv7l GNU/Linux
git clone https://github.com/vaishnav98/mikrobus.git
cd mikrobus
make all
sudo insmod mikrobus.ko
- Basic Clicks and Clicks with IRQ Requirement working
- Debug Interfaces for adding and Removing mikroBUS ports
- Multiple Devices on a Click(in single manifest)
- Manifest Parsing Logic complete
- Fetching Manifest from EEPROM
- Devices under an i2c-gate
- Devices with gpio_cs
printf "%b" '\x01\x00\x00\x59\x32\x17' > /sys/bus/mikrobus/add_port
The bytes in the byte array sequence are (in order):
- i2c_adap_nr
- spi_master_nr
- serdev_ctlr_nr
- rst_gpio_nr
- pwm_gpio_nr
- int_gpio_nr
Note:- Attaching the mikrobus driver automatically probes an EEPROM on the I2C bus and if the probe is succesful, the driver tries to load a manifest from the eeprom and instantiate the click devices on the mikrobus port.
See manifesto tool for creating manifest blobs and instantiating clicks on the mikrobus port.