Eval-ad5370 device tree questions


I am new to AD537x DACs. Currently I want to control the evaluation board eval-ad5370 via SPI directly with my Raspberry Pi 4. I built the kernel (wiki.analog.com/.../raspberrypi) and add the Linux iio drivers for Eval-ad5370 via "make menuconfig" . However, I encounter troubles when writing the device tree overlay file. I copied and change the codes on dtbo file of ad5686 from (https://github.com/analogdevicesinc/linux/commit/4a5b5b72149ad91fe7aa857a75d24fc97f13722e#diff-dc041e47200262dfab1ff9f9e0ef64c7). The code is shown as follows:



/ {

	compatible = "brcm,bcm2708";

	fragment@0 {

		target-path = "/";

		__overlay__ {

			adc_vref: fixedregulator@0 {

				compatible = "regulator-fixed";

				regulator-name = "fixed-supply";

				regulator-min-microvolt = <3000000>;

				regulator-max-microvolt = <3000000>;





	fragment@1 {

		target = <&spi0>;

		__overlay__ {

			#address-cells = <1>;

			#size-cells = <0>;

			status = "okay";


				compatible = "adi,ad5370";

				reg = <0>;

				spi-max-frequency = <1000000>;


				vcc-supply = <&adc_vref>;





The codes actually compiled with one warning, using  "dtc -I dts -O dtb -o" commands. However, it fails to makefile using

sudo dtoverlay rpi-ad5370-overlay.dtbo

I also did not see my dac is connected using  

cd /sys/bus/iio/devices/

So I think my codes for device tree file has issues. I am wondering if someone can help me with the correct setting. I may need the required properties to build the device tree, such as this link (github.com/.../dac) or this link (wiki.analog.com/.../ad5676)

I think there are some threads talking about using Raspberry Pi to control the ad5370. However, I am not sure how they successfully added the device tree.

My ultimate goal is using python codes to control it, such as this link (github.com/.../AD5370). So I think after successfully adding the device tree overlay, I can achieve my goal.

Another option is using windows. However, I may need to program the channels and make a system with feedback(No speed requirements). If there are APIs on python with on windows platform, it will also be great.

Thanks a lot in advance for your help!