FMCOMMS3/4/5 Linux driver -- controlling the GPO Lines

I am trying to manually control the four GPO lines on the AD9361. What is the best way to do this using the AD9361 Linux driver? I couldn't find any straightforward way to do it via any of the sysfs handles exposed. debugfs seems to directly expose the AD9361's SPI registers through the direct_reg_access handle; however, I'm not exactly sure how to use it.

The driver currently has not support for manually controlling the GPO lines. We will look into adding support for this, but the person maintaining the driver is currently on vacation, so there might be some delay.

Meanwhile you could use the direct_reg_access sysfs file to directly poke at the register. But we do not recommend to build a application around this interface as it is meant for debugging only. To write a register you write 'reg value' to the file. e.g. echo 0x10 0x1234 > direct_reg_access. You first write 'reg' to the file and then read the value. E.g. echo 0x10 > direct_reg_access; cat direct_reg_access.

The driver currently has not support for manually controlling the GPO lines. We will look into adding support for this, but the person maintaining the driver is currently on vacation, so there might be some delay.

Meanwhile you could use the direct_reg_access sysfs file to directly poke at the register. But we do not recommend to build a application around this interface as it is meant for debugging only. To write a register you write 'reg value' to the file. e.g. echo 0x10 0x1234 > direct_reg_access. You first write 'reg' to the file and then read the value. E.g. echo 0x10 > direct_reg_access; cat direct_reg_access.