AnsweredAssumed Answered

ADIS16488 on Raspberrypi 3 Unable to refill buffer: Connection timed out

Question asked by joesmith on Jan 16, 2017
Latest reply on Jan 17, 2017 by larsc

I'm trying to read from ADIS16488 device using libiio (iio_readdev), by this command

$ ./iio_readdev -t adis16480-dev0 adis16480

WARNING: High-speed mode not enabled

Unable to refill buffer: Connection timed out

 

I'm using this devicetree:

/*

* adis16480-overlay.dts

*

* ADIS16480 IMU (inertial measurement unit) connected to spi0 on Raspberry Pi

*

*/

 

/dts-v1/;

/plugin/;

 

/ {

    compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";

 

    /* the interrupt pin of the adis device */

    fragment@0 {

        target = <&gpio>;

        __overlay__ {

        adis_pins: adis_pins {

                brcm,pins = <25>;

                brcm,function = <0>; /* input */

                bcrm,pull = <0>; /* disable pull-over */

            };

        };

    };

 

    fragment@1 {

        target = <&spi0>;

        __overlay__ {

            status = "okay";

 

            /* needed to avoid dtc warning */

            #address-cells = <1>;

            #size-cells = <0>;

 

            spidev@0{

                status = "disabled";

            };

 

            imu@0 {

                compatible = "adi,adis16480";

                reg = <0>;

                spi-cpol;

                spi-cpha;

                spi-max-frequency = <10000000>;

 

                interrupt-parent = <&gpio>;

                interrupts = <25 1>; /* IRQ_TYPE_EDGE_RISING */

 

                pinctrl-names = "default";

                pinctrl-0 = <&adis_pins>;

            };

        };

    };

};

Thanks in advance.

Outcomes