I am currently attempting to interface AD7616 with the Raspberry Pi CM4 over SPI and have encountered significant challenges in defining the device tree overlay to properly load the AD7606 kernel module. I have been primarily following the guidance provided in the Analog Device wiki. And this is the DTS file I have come up with so far (pastebin link).
The overlay configurations in my config.txt is:However the ad7606 kernel module is complaining the resource is busy. Here is the dmesg log with debug flag enabled:If I remove the line `spi6-2cs`, ad7606 will load, but reading any channels on this device will result in the communication timeout error (-110)
I tried a full device tree dump. The spi6 section (7e204c00) does have spidev@1 disabled. I am now clueless about why the resource is busy during probe.
Thanks.
The overlay configurations in my config.txt is:
Code:
dtoverlay=spi6-2cs,cs1_spidev=offdtoverlay=ad7616,spi6,addr=1,spi-max-frequency=4000000
Code:
[ 5.440246] OF: of_irq_parse_one: dev=/soc/spi@7e204c00/spidev@0, index=0[ 5.494090] OF: of_irq_parse_one: dev=/soc/spi@7e204c00/adc@1, index=0[ 5.494415] ad7606: probe of spi6.1 failed with error -16
I tried a full device tree dump. The spi6 section (7e204c00) does have spidev@1 disabled. I am now clueless about why the resource is busy during probe.
Thanks.
Statistics: Posted by hftsai256 — Sat Nov 09, 2024 8:54 pm — Replies 2 — Views 51