Hi,
When I try to use the ADC buffer using iio_readdev, I got the following output:
iio_readdev -u local: -b 256 -s 1024 cf-ad9361-lpc unable to refill buffer: Connection timed out
The timeout happens within the device_check_ready function, during the polling.
Any hint about how to debug this? Before that I also enabled the buffer to be sure, with "echo 1 > buffer/enable", but it doesn't change the result.
Here is my device-tree:
rx_dma: dma@XXX84000 {
compatible = "adi,axi-dmac-1.00.a";
reg = <0xXXX84000 0x1000>;
#dma-cells = <1>;
#clock-cells = <0>;
clocks = <&misc_clk_2>;
interrupt-parent = <&ad9361_if_ic_0>;
interrupts = <6 2>;
adi,channels {
#size-cells = <0>;
#address-cells = <1>;
dma-channel@0 {
reg = <0>;
adi,source-bus-width = <64>;
adi,source-bus-type = <1>;
adi,destination-bus-width = <64>;
adi,destination-bus-type = <0>;
};
};
};
tx_dma: dma@XXX87000 {
compatible = "adi,axi-dmac-1.00.a";
reg = <0xXXX87000 0x1000>;
#dma-cells = <1>;
#clock-cells = <0>;
clocks = <&misc_clk_2>;
interrupt-parent = <&ad9361_if_ic_0>;
interrupts = <9 2>;
adi,channels {
#size-cells = <0>;
#address-cells = <1>;
dma-channel@0 {
reg = <0>;
adi,source-bus-width = <64>;
adi,source-bus-type = <0>;
adi,destination-bus-width = <64>;
adi,destination-bus-type = <1>;
};
};
};
cf_ad9361_adc_core_0: cf-ad9361-lpc@XXX90000 {
compatible = "adi,axi-ad9361-6.00.a";
reg = <0xXXX90000 0x6000>;
dmas = <&rx_dma 0>;
dma-names = "rx";
spibus-connected = <&adc0_ad9361>;
};
cf_ad9361_dac_core_0: cf-ad9361-dds-core-lpc@XXX94000 {
compatible = "adi,axi-ad9361-dds-6.00.a";
reg = <0xXXX94000 0x1000>;
clocks = <&adc0_ad9361 13>;
clock-names = "sampl_clk";
dmas = <&tx_dma 0>;
dma-names = "tx";
adi,axi-dds-1-rf-channel-default-scale = <0>;
adi,axi-dds-1-rf-channel;
};
Thanks.
Edit Notes
Add device-tree nodes[edited by: Neutrinoxy at 11:55 AM (GMT -5) on 9 Mar 2021]