Post Go back to editing

Default SPI configuration file for ad9695 (or ad9208)

Category: Software
Product Number: AD9695

Hi, 

I'm using our custom board with ad9695s connecting with a zcu102. I'd like to set "Timestamp" synchronization method automatically during the booting process, so I need to write several SPI registers according to the datasheet. 

I know it's easy to modify the device tree file as indicated by this page. The ad9695 use ad9208's driver so we can set some jesd paramters in the spi section, for ex. control-bits-per-sample=2. But I can't find any intructions about how to set the other registers so I guess I need to modify a certain file that defines SPI default written values in the linux folder. 

I took a deeper look into it and found in "linux/drivers/iio/adc/ad9208/ad9208_jesd_api.c" line 627 it calls the function I'd like to set. Could you point out for which file sets the actual parameters in this function?

Thanks!