Other Parts Discussed in Thread: AM5728, ADS8688
Hi,
We are using ADS8684 in our design and interfaced with AM5728 using SPI interface. we are able to create dts node and enable the linux driver. Driver is also getting attached but we are not able to read the raw values from the device.All channels are connected to 6volts. All the channels are showing raw values as zero.
Following is the dmesg log -
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am57xx-evm ttyS2
Arago 2019.11 am57xx-evm ttyS2
am57xx-evm login: r[ 33.752289] vmmcwl_fixed: disabling
[ 33.755801] com_3v6: disabling
[ 33.758870] vdd_3v3: disabling
[ 33.761937] aic_dvdd_fixed: disabling
[ 33.775580] pbias_mmc_omap5: disabling
oot
root@am57xx-evm:~#
root@am57xx-evm:~#
root@am57xx-evm:~# cd /sys/bus/iio/devices/iio\:device0
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# cat in_voltage0_
in_voltage0_offset in_voltage0_raw in_voltage0_scale
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# cat in_voltage0_raw
0
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# cat in_voltage1_raw
0
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# cat in_voltage2_raw
0
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# cat in_voltage3_raw
0
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# dmesg | grep spi
[ 3.047374] spi spi2.0: setup: speed 1000000, sample leading edge, clk normal
[ 3.047388] spi spi2.0: setup mode 0, 8 bits/w, 1000000 Hz max --> 0
[ 3.047546] omap2_mcspi 480ba000.spi: registered child spi2.0
[ 3.317260] ads8688 spi2.0: Looking up vref-supply from device tree
[ 3.317274] ads8688 spi2.0: Looking up vref-supply property in node /ocp/spi@480ba000/vol_ctl_adc@0 failed
[ 3.317306] ads8688 spi2.0: setup: speed 1000000, sample trailing edge, clk normal
root@am57xx-evm:/sys/bus/iio/devices/iio:device0# Š’ºrŠ²Ê’ªŠêrUE¥’U¥ÍÑ•É•‘‚ɽÿtocol family 15
[ 127.286199] Initializing XFRM netlink socket
root@am57xx-evm:/sys/bus/iio/devices/iio:device0#
root@am57xx-evm:/sys/bus/iio/devices/iio:device0#
root@am57xx-evm:/sys/bus/iio/devices/iio:device0#
Please help us to resolve the issue.
Regards,
Vijay