AnsweredAssumed Answered

AD9265-FMC-125EBZ evaluation board and Peta Linux

Question asked by Idmaze on Dec 4, 2015
Latest reply on Mar 21, 2016 by mhennerich
Branched from an earlier discussion

Hello,

I try to insert in Petalinux the driver for the AD9265-FMC-125EBZ evaluation board.

Following these indications:

 

https://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/axi-adc-hdl

 

I copy the files in in Petalinux linux directory.

drivers/iio/adc/ad9467.c

drivers/iio/adc/ad9361-phy.c this file doesn't exists any more

drivers/iio/adc/cf_axi_adc_core.c

drivers/iio/adc/cf_axi_adc_ring.c

drivers/iio/adc/cf_axi_adc_ring_stream.c

drivers/iio/adc/cf_axi_adc.h

 

I have looked in the repository of 2015_R1, and there is not any ad9265.c

 

Then I have added in zynq-zc706.dts
 

&fmc_spi { adc_ad9265: ad9265@0 { #address-cells = <1>; #size-cells = <0>; compatible = "ad9265"; reg = <0>; spi-max-frequency = <10000000>; clocks = <&clk_ad9517 3>; clock-names = "adc_clk";  adi,spi-3wire-enable; }; };  &fpga_axi { rx_dma: rx-dmac@44A30000 { compatible = "adi,axi-dmac-1.00.a"; reg = <0x44A30000 0x10000>; #dma-cells = <1>; interrupts = <0 57 0>; clocks = <&clkc 16>;  dma-channel { adi,type = <0>; }; };  cf_ad9265_core_0: cf-ad9265-core-lpc@44A00000 { compatible = "xlnx,cf-ad9265-core-1.00.a"; reg = <0x44A00000 0x10000>; dmas = <&rx_dma 0>; dma-names = "rx"; spibus-connected = <&adc_ad9467>; } ;


I can check that SPI_XILINX = Y, SPI_ZYNQ_QSP = Y in kernel config.


I try to build the kernel and I get the following errors:

zynq-zc706.dts:179.2-3 label or path, 'fmc_spi', not found

zynq-zc706.dts:201.2-3 label or path, 'fpga_axi', not found

 

Please could you specify what to do for inserting the board?


 

Thanks a lot,

Outcomes