Post Go back to editing

DAC AD5362 Issue

Hi,

 I am using AD5362 in my design which is interfaced with sitara processor.I modified kernel and added device tree node. Device is getting enumerated in /sys/bus/iio/devices.

The Vout of the DAC is fixed at 0.114V and not changing at all and I am not able to write any value to it (read error: Invalid argument is the error i am getting) following are the logs-

root@am57xx-evm:/sys/bus/iio/devices/iio:device2# ls
dev                      out_voltage2_raw         out_voltage5_scale
name                     out_voltage2_scale       out_voltage6_calibbias
of_node                  out_voltage3_calibbias   out_voltage6_calibscale
out_voltage0_calibbias   out_voltage3_calibscale  out_voltage6_offset
out_voltage0_calibscale  out_voltage3_offset      out_voltage6_raw
out_voltage0_offset      out_voltage3_raw         out_voltage6_scale
out_voltage0_raw         out_voltage3_scale       out_voltage7_calibbias
out_voltage0_scale       out_voltage4_calibbias   out_voltage7_calibscale
out_voltage1_calibbias   out_voltage4_calibscale  out_voltage7_offset
out_voltage1_calibscale  out_voltage4_offset      out_voltage7_raw
out_voltage1_offset      out_voltage4_raw         out_voltage7_scale
out_voltage1_raw         out_voltage4_scale       out_voltage_powerdown
out_voltage1_scale       out_voltage5_calibbias   power
out_voltage2_calibbias   out_voltage5_calibscale  subsystem
out_voltage2_calibscale  out_voltage5_offset      uevent
out_voltage2_offset      out_voltage5_raw
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat name
ad5362
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage0_raw
1024
ale @am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage0_calibsca
25600
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage0_raw
1024
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage1_raw
1152
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage2_raw
1280
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage3_raw
1408
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage4_raw
1536
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage5_raw
1664
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage6_raw
1792
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage7_raw
1920
root@am57xx-evm:/sys/bus/iio/devices/iio:device2#
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage0_scale
cat: read error: Invalid argument
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage1_scale
cat: read error: Invalid argument
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage2_scale
cat: read error: Invalid argument
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage3_scale
cat: read error: Invalid argument
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage4_scale
cat: read error: Invalid argument
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# echo 1000 > out_voltage0_raw
root@am57xx-evm:/sys/bus/iio/devices/iio:device2# cat out_voltage0_raw
1024