AnsweredAssumed Answered

AD5628 No Device Handle

Question asked by akshay123 on Nov 28, 2016
Latest reply on Dec 22, 2016 by akshay123

Hi all,

 

I am using ad5628 DAC with RaspberryPi 3 Board , I have found drivers for ad5604 (Linux/drivers/iio/dac/ad5064.c - Linux Cross Reference - Free Electrons ) , I belive that it will work for ad5628 also . 

 

I have enabled the ad5604 in the linux kernel and created a new Device tree file spi-ad5064-overlay.dts

 

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2708";

fragment@0 {
target = <&spidev0>;
__dormant__ {
status = "disabled";
};
};

fragment@1 {
target = <&spi0>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

ad5064@0 {
compatible = "adi,ad5064";
reg = <4>;
spi-max-frequency = <10000000>;
adi,use-external-reference;
vref-supply = <&vref_supply>;
};
};
};

__overrides__ {
ad5064 = <0>, "=0=1";
};
};

 

Now i tried to find the device handle for the DAC at the path

 

 /sys/bus/iio/devices/

 

But there are no devices at there , so please help me to solve this issue and specify me the further steps to obtain the device handle 

 

i have attached the driver file of ad5064 . i have made some minor modifications like adding printk statements there 

Attachments

Outcomes