Post Go back to editing

adar1000 SPI driver/device tree question

Category: Software

I download the ADI-Kuiper image from swdownloads.analog.com/.../image_2024-06-18-ADI-Kuiper-full.zip, then use Raspberry Pi Imager to burn image to SD card.

As my undertanding, CN0566 contains two adar1000, but the dts file only contain adar1000_0@0 BEAM0, there is no BEAM1? is it correct?
github.com/.../rpi-adar1000-overlay.dts

Also the config.txt, the SPI is disabled, adar1000 is SPI interface, what is the SPI setting of Raspberry pi?
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

If we want to setup 4 SPI interface from Raspberry GPIO, each SPI control 4 adar1000, how to setup config.txt/device tree/adar1000 driver?

rpi-adar1000-overlay.dts
/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";

	fragment@0 {
		target = <&spi0>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			adar1000@0 {
				compatible = "adi,adar1000";
				reg = <0>;
				spi-max-frequency = <1000000>;

				#address-cells = <1>;
				#size-cells = <0>;

				adar1000_0@0 {
					reg = <0>;
					label = "BEAM0";
					adi,phasetable-name = "adar1000_std_phasetable";
				};
				adar1000_1@1 {
					reg = <1>;
					label = "BEAM1";
				};
				adar1000_2@2 {
					reg = <2>;
					label = "BEAM2";
				};
				adar1000_3@3 {
					reg = <3>;
					label = "BEAM3";
				};
			};
		};
	};

	fragment@1 {
		target = <&spidev0>;
		__overlay__ {
			status = "disabled";
		};
	};

	fragment@2 {
		target = <&spidev1>;
		__overlay__ {
			status = "disabled";
		};
	};
};

Thanks