Hello,
We are using AD5764 DAC, which is on spi interface
added the following dac device tree
vdac: fixedregulator0 {
compatible = "regulator-fixed";
regulator-name = "vdac";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-boot-on;
};
dac@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "adi,ad5764";
reg = <0x0>;
spi-max-frequency = <25000000>;
vrefAB-supply = <&vdac>;
vrefCD-supply = <&vdac>;
status = "okay";
};
I'm able to see DAC device files, But when i try to read dac output i'm getting the following error,
root@Q4241:/sys/devices/platform/ffe000000.soc/ffe110000.spi/spi_master/spi0/spi0.0/iio:device0# cat out_voltage0_scale
cat: read error: Invalid argument
Thanks,
Balaji.G