For ad9361-phy, i can see the device attributes in device tree that seems to be the power up values. but when i changes these values and recompiled the device tree, my device disappears on boot up. here are the values that i changed
adi,rf-rx-bandwidth-hz = <0x2FAF080>; adi,rf-tx-bandwidth-hz = <0x2FAF080>; adi,rx-synthesizer-frequency-hz = <0x0 0x908A9040>; adi,tx-synthesizer-frequency-hz = <0x0 0x908A9040>; adi,rx-path-clock-frequencies = <0x3a980000 0x1d4c0000 0xea60000 0x7530000 0x3a98000 0x3a98000>; adi,tx-path-clock-frequencies = <0x3a980000 0x1d4c0000 0xea60000 0x7530000 0x3a98000 0x3a98000>;
I'm trying to make
RX_sampling rate=TX_sampling rate=61.44Mhz
before editing device tree, i verified these values by manually changing from (/sys/bus/iio/devices). I also verified the clock frequencies from rx and tx clock paths.
2. When we boot the board, by default DDS is enabled at DAC. But i want to enable DMA when i boot up. I found this thread. is there device attribute that can be used for this purpose? or i need the patch as explained in that thread? If i update the driver then i have to build the kernel again. right?
I'm using adrv9361-7035 with adr1CRR-fmc with kernel version 2018_R1
1. Based on the fact that your edited values are in HEX I think you decompiled the devicetree blob. You can try to clone our repository, edit the file: zynq-adrv9361-z7035.dtsi and compile the DTB. Please also inspect DMESG for errors related to adrv9361 driver probe.
2. You can try to set the devicetree attribute adi,axi-dds-default-scale = <0>; under cf_ad9361_dac_core_0: cf-ad9361-dds-core-lpc@79024000 node. Take care that this will start DDS with 0 output scale but it will still be the default source for DAC. If you want DMA to be the default source you have to apply the patch and build the kernel again.