Dear all,
We are building the linux image using Petalinux (version 2022.2) for a ZCU-102 and an AD9081-FMCA-EBZ connected to it. We have included both adi-layers of analogdevicesinc/meta-adi 2022_R2 and so far everything works fine. We have a custom hdl project in which we are using only DAC0.
We are encountering an issue where the out_voltage0_i_main_nco_frequency
attribute is not available in the /sys/bus/iio/devices/iio:deviceX
directory when using the AD9081 MxFE Linux driver.
Unlikely linux-drivers/iio-mxfe_ad9081 most of the attributes channels are not available in the AD9081 MxFE Linux Driver.
If we do as suggested in the the link, we obtain:
dummy_usr:~# cd /sys/bus/iio/devices/
dummy_usr:/sys/bus/iio/devices# ls
iio:device0 iio:device1 iio:device2 iio_sysfs_trigger
dummy_usr:/sys/bus/iio/devices# cd iio:device2
dummy_usr:/sys/bus/iio/devices/iio:device2# ls -al
total 0
drwxr-xr-x 3 root root 0 Nov 25 10:07 .
drwxr-xr-x 5 root root 0 Nov 25 10:07 ..
-r--r--r-- 1 root root 4096 Nov 25 10:07 name
lrwxrwxrwx 1 root root 0 Nov 25 10:07 of_node -> ../../../../../firmware/devicetree/base/fpga-axi@0/axi-ad9081-tx-hpc@84b10000
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage0_TX1_I_F1_frequency
-r--r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage0_TX1_I_F1_label
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage0_TX1_I_F1_phase
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage0_TX1_I_F1_raw
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage0_TX1_I_F1_scale
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage1_TX1_I_F2_frequency
-r--r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage1_TX1_I_F2_label
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage1_TX1_I_F2_phase
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage1_TX1_I_F2_raw
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage1_TX1_I_F2_scale
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage2_TX1_Q_F1_frequency
-r--r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage2_TX1_Q_F1_label
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage2_TX1_Q_F1_phase
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage2_TX1_Q_F1_raw
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage2_TX1_Q_F1_scale
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage3_TX1_Q_F2_frequency
-r--r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage3_TX1_Q_F2_label
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage3_TX1_Q_F2_phase
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage3_TX1_Q_F2_raw
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage3_TX1_Q_F2_scale
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_altvoltage_sampling_frequency
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_voltage0_i_calibphase
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_voltage0_i_calibscale
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_voltage0_q_calibphase
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_voltage0_q_calibscale
-rw-r--r-- 1 root root 4096 Nov 25 10:07 out_voltage_sampling_frequency
drwxr-xr-x 2 root root 0 Nov 25 10:07 power
lrwxrwxrwx 1 root root 0 Nov 25 10:07 subsystem -> ../../../../../bus/iio
-rw-r--r-- 1 root root 4096 Nov 25 10:07 sync_start_enable
-r--r--r-- 1 root root 4096 Nov 25 10:07 sync_start_enable_available
-rw-r--r-- 1 root root 4096 Nov 25 10:07 uevent
dummy_usr:/sys/bus/iio/devices/iio:device2#
While some of the attributes are available in the petalinux building, some of them, for example the out_voltage0_i_main_nco_frequency are not present in the building.
What could be the reason for the missing attributes, and how can we modify our setup to make them available? Is there a specific device tree or driver configuration required to expose these attributes?
Thank you in advance for your assistance!
Bruno.