Added freq ioctl and bytearray API to SPI